talimat 670 B

1234567891011121314151617181920212223
  1. # Tanım: Çok işlevli bir bilimsel grafik hesap makinesi
  2. # URL: http://extcalc-linux.sourceforge.net
  3. # Paketçi: Cihan Alkan
  4. # Gerekler: qt4 cmake
  5. # Grup: bilim
  6. isim=extcalc
  7. surum=0.9.3
  8. devir=1
  9. kaynak=(http://downloads.sourceforge.net/$isim-linux/$isim-$surum-1.tar.gz)
  10. derle() {
  11. cd $SRC/$isim-$surum-1
  12. CXXFLAGS="$CXXFLAGS -Wno-write-strings -Wno-unused-result"
  13. sed -i 's|${QT_LIBRARIES}|${QT_LIBRARIES} ${OPENGL_LIBRARIES}|' CMakeLists.txt
  14. sed -i "s|FIND_PACKAGE|FIND_PACKAGE(OpenGL REQUIRED)\nFIND_PACKAGE|" CMakeLists.txt
  15. sed -i 's|/usr/local|/usr|' CMakeLists.txt
  16. cmake -DCMAKE_INSTALL_PREFIX="/usr"
  17. make -Wno-write-strings
  18. make DESTDIR="$PKG" install
  19. }