wok-6.x rev 2726
Add: freeimage,freeimage-dev
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Apr 24 07:30:24 2009 +0000 (2009-04-24) |
parents | 209255ef5a73 |
children | 469a559611b0 |
files | freeimage-dev/receipt freeimage/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/freeimage-dev/receipt Fri Apr 24 07:30:24 2009 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="freeimage-dev" 1.7 +VERSION="3110" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="freeimage devel files" 1.10 +MAINTAINER="jozee@slitaz.org" 1.11 +WANTED="freeimage" 1.12 +SOURCE="FreeImage" 1.13 +WEB_SITE="http://freeimage.sourceforge.net/" 1.14 + 1.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.16 +genpkg_rules() 1.17 +{ 1.18 + mkdir -p $fs/usr/lib 1.19 + pkgdir=$WOK/$WANTED/$SOURCE/_pkg 1.20 + cp -a $pkgdir/usr/lib/*.*a $fs/usr/lib 1.21 + cp -a $pkgdir/usr/include $fs/usr 1.22 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/freeimage/receipt Fri Apr 24 07:30:24 2009 +0000 2.3 @@ -0,0 +1,38 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="freeimage" 2.7 +VERSION="3110" 2.8 +CATEGORY="graphics" 2.9 +SHORT_DESC="library to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others" 2.10 +MAINTAINER="jozee@slitaz.org" 2.11 +DEPENDS="" 2.12 +BUILD_DEPENDS="gcc-lib-base" 2.13 +SOURCE="FreeImage" 2.14 +TARBALL="$SOURCE$VERSION.zip" 2.15 +WEB_SITE="http://freeimage.sourceforge.net/" 2.16 +WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL" 2.17 + 2.18 +# Rules to configure and make the package. 2.19 +compile_rules() 2.20 +{ 2.21 + cd $SOURCE 2.22 + pkgdir=$PWD/_pkg 2.23 + incl=$pkgdir/usr/include 2.24 + dest=$pkgdir/usr/lib 2.25 + install -d $dest 2.26 + install -d $incl 2.27 + sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu 2.28 + sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu 2.29 + sed -e "s|ldconfig||g" -i Makefile.gnu 2.30 + make 2.31 + make DESTDIR=$pkgdir install 2.32 +} 2.33 + 2.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.35 +genpkg_rules() 2.36 +{ 2.37 + mkdir -p $fs/usr/lib 2.38 + pkgdir=$PWD/$SOURCE/_pkg 2.39 + cp -a $pkgdir/usr/lib/*.so* $fs/usr/lib 2.40 + 2.41 +}