wok-next view freeimage/receipt @ rev 18633
libmms: apply patch
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 27 00:31:34 2015 +0200 (2015-11-27) |
parents | fcdd50638150 |
children | a9236dc0f5fb |
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 make &&
31 make DESTDIR=$pkgdir install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }