freeimage

This commit is contained in:
milisbir 2018-01-03 09:40:41 +02:00
parent d3198ba572
commit ee8ec36b21
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# Tanım: Popüler grafik görüntü formatlarını desteklemek isteyen geliştiriciler için Kütüphane projesi
# URL: http://freeimage.sourceforge.net/
# Paketçi: Cihan Alkan
# Gerekler: clang
# Grup: kütüphane
isim=freeimage
surum=3.17.0
devir=1
kaynak=(http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${surum}/FreeImage${surum//./}.zip)
derle() {
cp -r FreeImage FreeImagefip
export CFLAGS+=" -O3 -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS"
export CXXFLAGS+=" -O3 -fPIC -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy"
export CC="clang"
export CXX="clang++"
cd FreeImage
make
cd ${SRC}/FreeImagefip
CXX=clang++ make -f Makefile.fip
cd ${SRC}/FreeImage
make DESTDIR=${PKG} install
cd ${SRC}/FreeImagefip
make -f Makefile.fip DESTDIR=${PKG} install
install -D -m644 ${SRC}/FreeImage/license-fi.txt ${PKG}/usr/share/licenses/${isim}/LICENSE
}