#Packager: Dimitris Tzemos . pkgname=freeimage pkgver=3.18.0 pkgrel=1dj source=("http://downloads.sourceforge.net/freeimage/FreeImage3180.zip") docs=("README.linux" "license-*.txt" "Whatsnew.txt" "Examples/" "TestAPI/") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "FreeImage (image library)" "FreeImage is an Open Source library project for developers who" "want to support popular graphics image formats like PNG, BMP," "JPEG, TIFF and others needed by today's multimedia applications." "FreeImage is easy to use, fast, and multithreading safe." "FreeImagePlus is a C++ wrapper for FreeImage." "" "Homepage: http://freeimage.sourceforge.net/" ) build() { cd FreeImage CFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -DNO_LCMS" \ CXXFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy -std=c++14" \ make INSTALLDIR=$PKG/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG make install INSTALLDIR=$PKG/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG CFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -DNO_LCMS" \ CXXFLAGS="$SLKCFLAGS -fexceptions -fvisibility=hidden -Wno-ctor-dtor-privacy" \ make -f Makefile.fip INSTALLDIR=$PKG/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG make -f Makefile.fip install INSTALLDIR=$PKG/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG }