wok-next annotate freeimage/receipt @ rev 20008

audacious-plugins, connman-ui, qtpanel: update bdeps; cdrdao, freeimage: add CXXFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 21 17:21:52 2017 +0200 (2017-10-21)
parents ee5c8b018b62
children 4396aed7eb01
rev   line source
jozee@2726 1 # SliTaz package receipt.
jozee@2726 2
jozee@2726 3 PACKAGE="freeimage"
slaxemulator@6833 4 VERSION="3141"
jozee@2726 5 CATEGORY="graphics"
jozee@2726 6 SHORT_DESC="library to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others"
jozee@2726 7 MAINTAINER="jozee@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
jozee@2726 9 SOURCE="FreeImage"
jozee@2726 10 TARBALL="$SOURCE$VERSION.zip"
jozee@2726 11 WEB_SITE="http://freeimage.sourceforge.net/"
jozee@2726 12 WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL"
jozee@2726 13
pascal@15588 14 DEPENDS="gcc-lib-base"
pascal@15588 15 BUILD_DEPENDS="gcc-lib-base"
pascal@15588 16
jozee@2726 17 # Rules to configure and make the package.
jozee@2726 18 compile_rules()
jozee@2726 19 {
slaxemulator@8438 20 cd $src
slaxemulator@9700 21 patch -Np1 -i $stuff/gcc4.5_ln.patch
pascal@15602 22 pkgdir=$DESTDIR
jozee@2726 23 incl=$pkgdir/usr/include
jozee@2726 24 dest=$pkgdir/usr/lib
jozee@2726 25 install -d $dest
jozee@2726 26 install -d $incl
jozee@2726 27 sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu
jozee@2726 28 sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu
jozee@2726 29 sed -e "s|ldconfig||g" -i Makefile.gnu
pascal@20008 30 export CXXFLAGS="-Wno-narrowing"
pascal@5001 31 make &&
jozee@2726 32 make DESTDIR=$pkgdir install
jozee@2726 33 }
jozee@2726 34
jozee@2726 35 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2726 36 genpkg_rules()
jozee@2726 37 {
jozee@2726 38 mkdir -p $fs/usr/lib
pascal@15588 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
jozee@2726 40
jozee@2726 41 }