wok-next view gimp/receipt @ rev 20137

mariadb: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 31 21:42:04 2017 +0100 (2017-10-31)
parents e70c0b9c5adf
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gimp"
4 VERSION="2.8.14"
5 CATEGORY="graphics"
6 SHORT_DESC="Gnu Image Manipulation Program or GIMP!"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.gimp.org/"
11 WGET_URL="http://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL"
13 BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev glib-dev \
14 intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \
15 gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev"
16 SPLIT="gimp gimp-brushes gimp-console gimp-dev gimp-plug-ins"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 --with-html-dir=/usr/share/doc \
28 --without-print \
29 --disable-python \
30 --without-poppler \
31 --without-libcurl \
32 --without-alsa \
33 --without-librsvg \
34 --without-dbus \
35 --without-webkit \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 case $PACKAGE in
44 gimp)
45 SUGGESTED="gimp-plug-ins gimp-brushes gimp-console \
46 gimp-plugin-ufraw"
47 DEPENDS="libart_lgpl babl gegl glib tiff xorg-libXdamage \
48 xorg-libXmu xorg-libXt gdk-pixbuf gtk+ libexif"
49 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
51 cp -a $install/etc $fs
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/*.so* $fs/usr/lib
54 cp -a $install/usr/lib/gimp $fs/usr/lib
56 cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
57 $fs/usr/share/pixmaps/gimp.png
59 # The gimp-console goes in a separate package
60 rm $fs/usr/bin/gimp-console*
62 # Most plug-ins goes in a separate package
63 rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
64 for i in file-jpeg file-png pixelize screenshot
65 do
66 cp $install/usr/lib/gimp/2.0/plug-ins/$i \
67 $fs/usr/lib/gimp/2.0/plug-ins
68 done
70 # Include only Basic brushes --> gimp-brushes
71 cp -a $install/usr/share/gimp $fs/usr/share
72 for i in gimp-* Legacy Media Sketch Splatters Texture
73 do
74 rm -rf $fs/usr/share/gimp/2.0/brushes/$i
75 done
77 # Remove devel files
78 rm $fs/usr/lib/gimp/2.0/modules/*.*a
80 # Put a nice splash with a spider
81 cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
82 ;;
83 gimp-brushes)
84 CAT="graphics|Gimp brushes set."
85 DEPENDS="gimp"
86 mkdir -p $fs/usr/share/gimp/2.0
87 cp -a $install/usr/share/gimp/2.0/brushes $fs/usr/share/gimp/2.0
88 rm -rf $fs/usr/share/gimp/2.0/brushes/Basic
89 ;;
90 gimp-console)
91 CAT="graphics|The GIMP console."
92 DEPENDS="babl pango cairo gimp glib xorg-libX11 xorg-libXau"
93 mkdir -p $fs/usr/bin
94 cp -a $install/usr/bin/gimp-console* $fs/usr/bin
95 ;;
96 gimp-dev)
97 CAT="development|Gnu Image Manipulation Program or GIMP devel files."
98 DEPENDS="gimp pkg-config"
99 mkdir -p $fs/usr
100 cp -a $install/usr/include $fs/usr
101 cp -a $install/usr/lib $fs/usr
102 # Remove libraries files
103 rm -rf $fs/usr/lib/*.so*
104 rm -rf $fs/usr/lib/gimp/2.0/modules/*.so*
105 rm -rf $fs/usr/lib/gimp/2.0/environ
106 rm -rf $fs/usr/lib/gimp/2.0/interpreters
107 rm -rf $fs/usr/lib/gimp/2.0/plug-ins
108 ;;
109 gimp-plug-ins)
110 CAT="graphics|The GIMP image editor plug-ins suite for advanced users."
111 DEPENDS="gimp lcms xorg-libXpm libmng aalib libexif tiff"
112 mkdir -p $fs/usr/lib/gimp/2.0
113 cp -a $install/usr/lib/gimp/2.0/plug-ins $fs/usr/lib/gimp/2.0
115 # Remove plug-ins provided by the main package.
116 for i in file-jpeg file-png pixelize screenshot
117 do
118 rm $fs/usr/lib/gimp/2.0/plug-ins/$i
119 done
120 ;;
121 esac
122 }