wok-next diff irrlicht/receipt @ rev 20456

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 03:33:54 2018 +0200 (2018-03-02)
parents 7639f09792cf
children d5aab818505e
line diff
     1.1 --- a/irrlicht/receipt	Wed Feb 28 13:56:24 2018 +0200
     1.2 +++ b/irrlicht/receipt	Fri Mar 02 03:33:54 2018 +0200
     1.3 @@ -3,19 +3,18 @@
     1.4  PACKAGE="irrlicht"
     1.5  VERSION="1.8.4"
     1.6  CATEGORY="development"
     1.7 -SHORT_DESC="high performance realtime 3D engine written in C++"
     1.8 +SHORT_DESC="High performance realtime 3D engine written in C++"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="zlib/libpng"
    1.11 +WEB_SITE="http://irrlicht.sourceforge.net/"
    1.12 +
    1.13  TARBALL="$PACKAGE-$VERSION.zip"
    1.14 -WEB_SITE="http://irrlicht.sourceforge.net/"
    1.15  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16  
    1.17  BUILD_DEPENDS="xorg-dev mesa-dev"
    1.18 -SPLIT="irrlicht irrlicht-dev"
    1.19 +SPLIT="irrlicht-dev"
    1.20  
    1.21 -# Rules to configure and make the package.
    1.22 -compile_rules()
    1.23 -{
    1.24 +compile_rules() {
    1.25  	cd $src/source/Irrlicht
    1.26  	sed -i "s|^INSTALL_DIR.*|INSTALL_DIR = $DESTDIR/usr/lib|" Makefile
    1.27  	make sharedlib &&
    1.28 @@ -23,20 +22,17 @@
    1.29  	make install
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 -genpkg_rules()
    1.34 -{
    1.35 +genpkg_rules() {
    1.36  	case $PACKAGE in
    1.37 -	irrlicht)
    1.38 -		DEPENDS="mesa gcc-lib-base xorg-libxcb xorg-libXfixes"
    1.39 -		mkdir -p $fs/usr
    1.40 -		cp -a $install/usr/lib $fs/usr
    1.41 -		;;
    1.42 -	irrlicht-dev)
    1.43 -		CAT="development|high performance realtime 3D engine written in C++"
    1.44 -		DEPENDS="irrlicht"
    1.45 -		mkdir -p $fs/usr
    1.46 -		cp -a $install/usr/include $fs/usr
    1.47 -		;;
    1.48 +		irrlicht)
    1.49 +			mkdir -p $fs/usr
    1.50 +			cp -a $install/usr/lib $fs/usr
    1.51 +			DEPENDS="mesa gcc-lib-base xorg-libxcb xorg-libXfixes"
    1.52 +			;;
    1.53 +		*-dev)
    1.54 +			mkdir -p $fs/usr
    1.55 +			cp -a $install/usr/include $fs/usr
    1.56 +			DEPENDS="irrlicht"
    1.57 +			;;
    1.58  	esac
    1.59  }