wok-next view freeimage/receipt @ rev 20244
Update bdeps: apache-mod-perl, codeblocks, tacacs+, thunar-archive-plugin, tuxpaint, xpenguins
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Nov 07 10:54:15 2017 +0200 (2017-11-07) |
parents | ee5c8b018b62 |
children | 4396aed7eb01 |
line source
1 # SliTaz package receipt.
3 PACKAGE="freeimage"
4 VERSION="3141"
5 CATEGORY="graphics"
6 SHORT_DESC="library to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="FreeImage"
10 TARBALL="$SOURCE$VERSION.zip"
11 WEB_SITE="http://freeimage.sourceforge.net/"
12 WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL"
14 DEPENDS="gcc-lib-base"
15 BUILD_DEPENDS="gcc-lib-base"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 patch -Np1 -i $stuff/gcc4.5_ln.patch
22 pkgdir=$DESTDIR
23 incl=$pkgdir/usr/include
24 dest=$pkgdir/usr/lib
25 install -d $dest
26 install -d $incl
27 sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu
28 sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu
29 sed -e "s|ldconfig||g" -i Makefile.gnu
30 export CXXFLAGS="-Wno-narrowing"
31 make &&
32 make DESTDIR=$pkgdir install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }