wok-next diff fltk/receipt @ rev 20113

Add some bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 30 09:29:31 2017 +0100 (2017-10-30)
parents e1759a3c14ec
children 0159f236d2ed
line diff
     1.1 --- a/fltk/receipt	Sat Oct 15 19:21:45 2016 +0200
     1.2 +++ b/fltk/receipt	Mon Oct 30 09:29:31 2017 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="fltk"
     1.8  VERSION="1.3.3"
     1.9 @@ -11,15 +11,9 @@
    1.10  WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL"
    1.11  HOST_ARCH="i486 arm"
    1.12  
    1.13 -DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \
    1.14 -xorg-libXext xorg-libXft xorg-libXrender zlib gcc-lib-base mesa libglu-mesa"
    1.15  BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \
    1.16  xorg-libXinerama-dev xorg-libXft-dev"
    1.17 -
    1.18 -# Handle SliTaz arch
    1.19 -case "$SLITAZ_ARCH" in
    1.20 -	arm*) DEPENDS="expat fontconfig freetype jpeg libpng xorg-libXft" ;;
    1.21 -esac
    1.22 +SPLIT="fltk-dev fltk-doc"
    1.23  
    1.24  # Handle cross compilation.
    1.25  case "$ARCH" in
    1.26 @@ -47,8 +41,33 @@
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps
    1.31 -	cp -a $install/usr/bin/fluid $fs/usr/bin
    1.32 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.33 -	cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
    1.34 +	case $PACKAGE in
    1.35 +	fltk)
    1.36 +		# Handle SliTaz arch
    1.37 +		case "$SLITAZ_ARCH" in
    1.38 +		arm*) DEPENDS="expat fontconfig freetype jpeg libpng \
    1.39 +				xorg-libXft" ;;
    1.40 +		*) DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 \
    1.41 +			xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \
    1.42 +			xorg-libXrender zlib gcc-lib-base mesa libglu-mesa"
    1.43 +		esac
    1.44 +		mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps
    1.45 +		cp -a $install/usr/bin/fluid $fs/usr/bin
    1.46 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.47 +		cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png
    1.48 +		;;
    1.49 +	fltk-dev)
    1.50 +		CAT="development|Fast Light Tool Kit devel files."
    1.51 +		DEPENDS="fltk"
    1.52 +		mkdir -p $fs/usr/bin $fs/usr/lib
    1.53 +		cp -a $install/usr/bin/fltk-config $fs/usr/bin
    1.54 +		cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.55 +		cp -a $install/usr/include $fs/usr
    1.56 +		;;
    1.57 +	fltk-doc)
    1.58 +		CAT="development|Fast Light Tool Kit documentation and examples."
    1.59 +		mkdir -p $fs/usr/share
    1.60 +		cp -a $install/usr/share/doc $fs/usr/share
    1.61 +		;;
    1.62 +	esac
    1.63  }