wok-next annotate freeimage/receipt @ rev 5001
[f-g]*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 28 15:33:01 2010 +0100 (2010-02-28) |
parents | e9042e5ad4b6 |
children | c194790b4277 |
rev | line source |
---|---|
jozee@2726 | 1 # SliTaz package receipt. |
jozee@2726 | 2 |
jozee@2726 | 3 PACKAGE="freeimage" |
jozee@2726 | 4 VERSION="3110" |
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@5001 | 8 DEPENDS="gcc-lib-base" |
jozee@2726 | 9 BUILD_DEPENDS="gcc-lib-base" |
jozee@2726 | 10 SOURCE="FreeImage" |
jozee@2726 | 11 TARBALL="$SOURCE$VERSION.zip" |
jozee@2726 | 12 WEB_SITE="http://freeimage.sourceforge.net/" |
jozee@2726 | 13 WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL" |
jozee@2726 | 14 |
jozee@2726 | 15 # Rules to configure and make the package. |
jozee@2726 | 16 compile_rules() |
jozee@2726 | 17 { |
jozee@2726 | 18 cd $SOURCE |
jozee@2726 | 19 pkgdir=$PWD/_pkg |
jozee@2726 | 20 incl=$pkgdir/usr/include |
jozee@2726 | 21 dest=$pkgdir/usr/lib |
jozee@2726 | 22 install -d $dest |
jozee@2726 | 23 install -d $incl |
jozee@2726 | 24 sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu |
jozee@2726 | 25 sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu |
jozee@2726 | 26 sed -e "s|ldconfig||g" -i Makefile.gnu |
pascal@5001 | 27 make && |
jozee@2726 | 28 make DESTDIR=$pkgdir install |
jozee@2726 | 29 } |
jozee@2726 | 30 |
jozee@2726 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2726 | 32 genpkg_rules() |
jozee@2726 | 33 { |
jozee@2726 | 34 mkdir -p $fs/usr/lib |
jozee@2726 | 35 pkgdir=$PWD/$SOURCE/_pkg |
jozee@2726 | 36 cp -a $pkgdir/usr/lib/*.so* $fs/usr/lib |
jozee@2726 | 37 |
jozee@2726 | 38 } |