wok-next diff gimp/receipt @ rev 20180

opencc: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 12:28:56 2017 +0100 (2017-11-02)
parents e70c0b9c5adf
children d43bf7aae921
line diff
     1.1 --- a/gimp/receipt	Fri Jun 16 15:39:43 2017 +0300
     1.2 +++ b/gimp/receipt	Thu Nov 02 12:28:56 2017 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="gimp"
     1.8  VERSION="2.8.14"
     1.9 @@ -9,17 +9,16 @@
    1.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.11  WEB_SITE="http://www.gimp.org/"
    1.12  WGET_URL="http://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL"
    1.13 -SUGGESTED="gimp-plug-ins gimp-brushes gimp-console gimp-plugin-ufraw"
    1.14  
    1.15 -DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage xorg-libXmu \
    1.16 -xorg-libXt gdk-pixbuf gtk+ libexif"
    1.17  BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev glib-dev \
    1.18  intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \
    1.19  gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev"
    1.20 +SPLIT="gimp gimp-brushes gimp-console gimp-dev gimp-plug-ins"
    1.21  
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {
    1.25 +	export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
    1.26  	./configure \
    1.27  		--prefix=/usr \
    1.28  		--sysconfdir=/etc \
    1.29 @@ -41,37 +40,83 @@
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 -	mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
    1.34 +	case $PACKAGE in
    1.35 +	gimp)
    1.36 +		SUGGESTED="gimp-plug-ins gimp-brushes gimp-console \
    1.37 +			gimp-plugin-ufraw"
    1.38 +		DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage \
    1.39 +			xorg-libXmu xorg-libXt gdk-pixbuf gtk+ libexif"
    1.40 +		mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
    1.41  
    1.42 -	cp -a $install/etc $fs
    1.43 -	cp -a $install/usr/bin $fs/usr
    1.44 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.45 -	cp -a $install/usr/lib/gimp $fs/usr/lib
    1.46 +		cp -a $install/etc $fs
    1.47 +		cp -a $install/usr/bin $fs/usr
    1.48 +		cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.49 +		cp -a $install/usr/lib/gimp $fs/usr/lib
    1.50  
    1.51 -	cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
    1.52 -		$fs/usr/share/pixmaps/gimp.png
    1.53 +		cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
    1.54 +			$fs/usr/share/pixmaps/gimp.png
    1.55  
    1.56 -	# The gimp-console goes in a separate package
    1.57 -	rm $fs/usr/bin/gimp-console*
    1.58 +		# The gimp-console goes in a separate package
    1.59 +		rm $fs/usr/bin/gimp-console*
    1.60  
    1.61 -	# Most plug-ins goes in a separate package
    1.62 -	rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
    1.63 -	for i in file-jpeg file-png pixelize screenshot
    1.64 -	do
    1.65 -		cp $install/usr/lib/gimp/2.0/plug-ins/$i \
    1.66 -			$fs/usr/lib/gimp/2.0/plug-ins
    1.67 -	done
    1.68 +		# Most plug-ins goes in a separate package
    1.69 +		rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
    1.70 +		for i in file-jpeg file-png pixelize screenshot
    1.71 +		do
    1.72 +			cp $install/usr/lib/gimp/2.0/plug-ins/$i \
    1.73 +				$fs/usr/lib/gimp/2.0/plug-ins
    1.74 +		done
    1.75  
    1.76 -	# Include only Basic brushes --> gimp-brushes
    1.77 -	cp -a $install/usr/share/gimp $fs/usr/share
    1.78 -	for i in gimp-* Legacy Media Sketch Splatters Texture
    1.79 -	do
    1.80 -		rm -rf $fs/usr/share/gimp/2.0/brushes/$i
    1.81 -	done
    1.82 +		# Include only Basic brushes --> gimp-brushes
    1.83 +		cp -a $install/usr/share/gimp $fs/usr/share
    1.84 +		for i in gimp-* Legacy Media Sketch Splatters Texture
    1.85 +		do
    1.86 +			rm -rf $fs/usr/share/gimp/2.0/brushes/$i
    1.87 +		done
    1.88  
    1.89 -	# Remove devel files
    1.90 -	rm $fs/usr/lib/gimp/2.0/modules/*.*a
    1.91 +		# Remove devel files
    1.92 +		rm $fs/usr/lib/gimp/2.0/modules/*.*a
    1.93  
    1.94 -	# Put a nice splash with a spider
    1.95 -	cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
    1.96 +		# Put a nice splash with a spider
    1.97 +		cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
    1.98 +		;;
    1.99 +	gimp-brushes)
   1.100 +		CAT="graphics|Gimp brushes set."
   1.101 +		DEPENDS="gimp"
   1.102 +		mkdir -p $fs/usr/share/gimp/2.0
   1.103 +		cp -a $install/usr/share/gimp/2.0/brushes $fs/usr/share/gimp/2.0
   1.104 +		rm -rf $fs/usr/share/gimp/2.0/brushes/Basic
   1.105 +		;;
   1.106 +	gimp-console)
   1.107 +		CAT="graphics|The GIMP console."
   1.108 +		DEPENDS="babl pango cairo gimp glib xorg-libX11 xorg-libXau"
   1.109 +		mkdir -p $fs/usr/bin
   1.110 +		cp -a $install/usr/bin/gimp-console* $fs/usr/bin
   1.111 +		;;
   1.112 +	gimp-dev)
   1.113 +		CAT="development|Gnu Image Manipulation Program or GIMP devel files."
   1.114 +		DEPENDS="gimp pkg-config"
   1.115 +		mkdir -p $fs/usr
   1.116 +		cp -a $install/usr/include $fs/usr
   1.117 +		cp -a $install/usr/lib $fs/usr
   1.118 +		# Remove libraries files
   1.119 +		rm -rf $fs/usr/lib/*.so*
   1.120 +		rm -rf $fs/usr/lib/gimp/2.0/modules/*.so*
   1.121 +		rm -rf $fs/usr/lib/gimp/2.0/environ
   1.122 +		rm -rf $fs/usr/lib/gimp/2.0/interpreters
   1.123 +		rm -rf $fs/usr/lib/gimp/2.0/plug-ins
   1.124 +		;;
   1.125 +	gimp-plug-ins)
   1.126 +		CAT="graphics|The GIMP image editor plug-ins suite for advanced users."
   1.127 +		DEPENDS="gimp lcms xorg-libXpm libmng aalib libexif tiff"
   1.128 +		mkdir -p $fs/usr/lib/gimp/2.0
   1.129 +		cp -a $install/usr/lib/gimp/2.0/plug-ins $fs/usr/lib/gimp/2.0
   1.130 +
   1.131 +		# Remove plug-ins provided by the main package.
   1.132 +		for i in file-jpeg file-png pixelize screenshot
   1.133 +		do
   1.134 +			rm $fs/usr/lib/gimp/2.0/plug-ins/$i
   1.135 +		done
   1.136 +		;;
   1.137 +	esac
   1.138  }