wok-next view gimp/receipt @ rev 21105
Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 04 17:29:48 2019 +0200 (2019-01-04) |
parents | 6f5739796e82 |
children | 29128929e4f9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gimp"
4 VERSION="2.10.2"
5 CATEGORY="graphics"
6 SHORT_DESC="GNU Image Manipulation Program"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gimp.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="intltool iso-codes-dev babl-dev gegl-dev atk-dev glib-dev \
15 glib-networking libx11-dev libice-dev gtk2-dev gexiv2-dev \
16 libxmu-dev libxfixes-dev ghostscript-dev libmng-dev aalib-dev \
17 libxpm-dev openexr-dev ilmbase-dev libwebp-dev libheif-dev libmypaint-dev \
18 mypaint-brushes-dev librsvg-dev poppler-dev poppler-data libwmf-dev \
19 openjpeg2-dev libxcursor-dev libgudev-dev xdg-utils libxslt \
20 shared-mime-info-dev desktop-file-utils-extra gtk-doc tiff-dev"
21 SPLIT="$PACKAGE-brushes $PACKAGE-console $PACKAGE-dev $PACKAGE-plug-ins \
22 $PACKAGE"
24 compile_rules() {
25 ./configure \
26 --with-html-dir=/usr/share/doc \
27 --without-print \
28 --disable-python \
29 --without-alsa \
30 --without-webkit \
31 $CONFIGURE_ARGS &&
32 fix libtool &&
33 make $MAKEFLAGS &&
34 make install
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 *-brushes)
40 copy gimp/2.0/brushes/
41 rm -r $fs/usr/share/gimp/2.0/brushes/Basic/ # -> main package
42 CAT="graphics|brushes set"
43 DEPENDS="gimp"
44 ;;
45 *-console)
46 copy bin/gimp-console*
47 CAT="graphics|console"
48 DEPENDS="babl libcairo fontconfig freetype gdk-pixbuf gegl gexiv2 \
49 gimp glib lcms2 libharfbuzz libmypaint pango zlib"
50 ;;
51 *-dev)
52 copy @dev
53 DEPENDS="gimp gimp-brushes gimp-console gimp-plug-ins \
54 cairo-dev gdk-pixbuf-dev gegl-dev gtk2-dev"
55 ;;
56 *-plug-ins)
57 copy gimp/2.0/plug-ins/
58 find $fs \( -name file-jpeg -o -name file-png -o -name pixelize \
59 -o -name screenshot \) -delete # -> main package
60 CAT="graphics|plug-ins suite for advanced users"
61 DEPENDS="aalib babl libbzip2 libcairo gdk-pixbuf gegl gexiv2 gimp glib \
62 gtk2 ilmbase lcms2 libheif libjpeg-turbo liblzma libmng libpng \
63 librsvg libwebp libwmf openexr openjpeg2 pango libpoppler libtiff \
64 libx11 libxcursor libxpm zlib"
65 ;;
66 gimp)
67 copy @std @rm # all the rest
68 DEPENDS="babl libcairo fontconfig freetype gdk-pixbuf gegl gexiv2 \
69 glib gtk2 lcms2 libgudev libharfbuzz libjpeg-turbo libmypaint \
70 libpng pango libx11 libxext libxfixes libxmu \
71 zlib"
72 SUGGESTED="gimp-plug-ins gimp-brushes gimp-console \
73 gimp-plugin-ufraw mypaint-brushes gegl-extra"
74 ;;
75 esac
76 }