wok-next diff ftgl/receipt @ rev 20228

update some bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 06 00:09:37 2017 +0100 (2017-11-06)
parents 17e313b5b9c1
children c0521c689857
line diff
     1.1 --- a/ftgl/receipt	Tue Feb 17 09:42:47 2015 +0100
     1.2 +++ b/ftgl/receipt	Mon Nov 06 00:09:37 2017 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="ftgl"
     1.8  VERSION="2.1.3-rc5"
     1.9 @@ -10,13 +10,13 @@
    1.10  WEB_SITE="http://ftgl.wiki.sourceforge.net/"
    1.11  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.12  
    1.13 -DEPENDS="freetype freeglut mesa libglu-mesa"
    1.14 -BUILD_DEPENDS="$DEPENDS freetype-dev freeglut-dev mesa-dev libglu-mesa-dev"
    1.15 +BUILD_DEPENDS="$DEPENDS freetype-dev freeglut-dev mesa-dev libglu-mesa-dev \
    1.16 +expat-dev xorg-libxshmfence-dev"
    1.17 +SPLIT="ftgl-dev"
    1.18  
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22 -	cd $src
    1.23  	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    1.24  	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lGL"
    1.25  	./configure \
    1.26 @@ -28,7 +28,19 @@
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	mkdir -p $fs/usr/lib
    1.31 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.32 +	case $PACKAGE in
    1.33 +	ftgl)
    1.34 +		DEPENDS="freetype freeglut mesa libglu-mesa"
    1.35 +		mkdir -p $fs/usr/lib
    1.36 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.37 +		;;
    1.38 +	ftgl-dev)
    1.39 +		CAT="development|devel files"
    1.40 +		DEPENDS="ftgl pkg-config"
    1.41 +		mkdir -p $fs/usr/lib
    1.42 +		cp -a $install/usr/include $fs/usr
    1.43 +		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.44 +		cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.45 +		;;
    1.46 +	esac
    1.47  }
    1.48 -