milis/talimatname/genel/e/extcalc/talimat

23 lines
672 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Çok işlevli bir bilimsel grafik hesap makinesi
# URL: http://extcalc-linux.sourceforge.net
# Paketçi: Cihan Alkan
# Gerekler: qt4 cmake
# Grup: eğitim
isim=extcalc
surum=0.9.3
devir=1
kaynak=(http://downloads.sourceforge.net/$isim-linux/$isim-$surum-1.tar.gz)
derle() {
cd $SRC/$isim-$surum-1
CXXFLAGS="$CXXFLAGS -Wno-write-strings -Wno-unused-result"
sed -i 's|${QT_LIBRARIES}|${QT_LIBRARIES} ${OPENGL_LIBRARIES}|' CMakeLists.txt
sed -i "s|FIND_PACKAGE|FIND_PACKAGE(OpenGL REQUIRED)\nFIND_PACKAGE|" CMakeLists.txt
sed -i 's|/usr/local|/usr|' CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX="/usr"
make -Wno-write-strings
make DESTDIR="$PKG" install
}