wok-next diff freeimage/receipt @ rev 20607

perdition: up 2.2
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 15:57:59 2018 +0300 (2018-04-19)
parents a9236dc0f5fb
children a18af897de8e
line diff
     1.1 --- a/freeimage/receipt	Sat Oct 21 17:21:52 2017 +0200
     1.2 +++ b/freeimage/receipt	Thu Apr 19 15:57:59 2018 +0300
     1.3 @@ -1,41 +1,36 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="freeimage"
     1.8  VERSION="3141"
     1.9  CATEGORY="graphics"
    1.10 -SHORT_DESC="library to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others"
    1.11 +SHORT_DESC="Library to support popular graphics image formats like PNG, BMP, \
    1.12 +JPEG, TIFF and others"
    1.13  MAINTAINER="jozee@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15 -SOURCE="FreeImage"
    1.16 -TARBALL="$SOURCE$VERSION.zip"
    1.17  WEB_SITE="http://freeimage.sourceforge.net/" 
    1.18 +
    1.19 +TARBALL="FreeImage$VERSION.zip"
    1.20  WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL"
    1.21  
    1.22 -DEPENDS="gcc-lib-base"
    1.23 -BUILD_DEPENDS="gcc-lib-base"
    1.24 +SPLIT="freeimage-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 -	cd $src
    1.30 -	patch -Np1 -i $stuff/gcc4.5_ln.patch
    1.31 +compile_rules() {
    1.32  	pkgdir=$DESTDIR
    1.33  	incl=$pkgdir/usr/include
    1.34 -    dest=$pkgdir/usr/lib
    1.35 +	dest=$pkgdir/usr/lib
    1.36  	install -d $dest
    1.37  	install -d $incl
    1.38 -	sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu 
    1.39 -	sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu  
    1.40 -	sed -e "s|ldconfig||g" -i Makefile.gnu  
    1.41 +	sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu
    1.42 +	sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu
    1.43 +	sed -e "s|ldconfig||g" -i Makefile.gnu
    1.44  	export CXXFLAGS="-Wno-narrowing"
    1.45  	make &&
    1.46  	make DESTDIR=$pkgdir install
    1.47  }
    1.48  
    1.49 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.50 -genpkg_rules()
    1.51 -{
    1.52 -	mkdir -p $fs/usr/lib
    1.53 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.54 -
    1.55 +genpkg_rules() {
    1.56 +	case $PACKAGE in
    1.57 +		freeimage) copy @std;;
    1.58 +		*-dev)     copy @dev;;
    1.59 +	esac
    1.60  }