# HG changeset patch # User Rohit Joshi # Date 1240558224 0 # Node ID e9042e5ad4b629eb1d0cca37e894cbda942d08a9 # Parent 209255ef5a736ea0d6ac2c0e57276290013ddf5c Add: freeimage,freeimage-dev diff -r 209255ef5a73 -r e9042e5ad4b6 freeimage-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freeimage-dev/receipt Fri Apr 24 07:30:24 2009 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="freeimage-dev" +VERSION="3110" +CATEGORY="development" +SHORT_DESC="freeimage devel files" +MAINTAINER="jozee@slitaz.org" +WANTED="freeimage" +SOURCE="FreeImage" +WEB_SITE="http://freeimage.sourceforge.net/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + pkgdir=$WOK/$WANTED/$SOURCE/_pkg + cp -a $pkgdir/usr/lib/*.*a $fs/usr/lib + cp -a $pkgdir/usr/include $fs/usr +} diff -r 209255ef5a73 -r e9042e5ad4b6 freeimage/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freeimage/receipt Fri Apr 24 07:30:24 2009 +0000 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="freeimage" +VERSION="3110" +CATEGORY="graphics" +SHORT_DESC="library to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others" +MAINTAINER="jozee@slitaz.org" +DEPENDS="" +BUILD_DEPENDS="gcc-lib-base" +SOURCE="FreeImage" +TARBALL="$SOURCE$VERSION.zip" +WEB_SITE="http://freeimage.sourceforge.net/" +WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $SOURCE + pkgdir=$PWD/_pkg + incl=$pkgdir/usr/include + dest=$pkgdir/usr/lib + install -d $dest + install -d $incl + sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu + sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu + sed -e "s|ldconfig||g" -i Makefile.gnu + make + make DESTDIR=$pkgdir install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + pkgdir=$PWD/$SOURCE/_pkg + cp -a $pkgdir/usr/lib/*.so* $fs/usr/lib + +}