wok view gimp/receipt @ rev 24599
updated giac (1.5.0.85 -> 1.7.0.47)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 02 07:39:53 2022 +0100 (2022-03-02) |
parents | 1f133ca0ddf5 |
children | bc2b9d9bed6f |
line source
1 # SliTaz package receipt.
3 PACKAGE="gimp"
4 VERSION="2.8.20"
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="https://www.gimp.org/"
11 WGET_URL="http://download.gimp.org/pub/gimp/v${VERSION%.*}/$TARBALL"
12 SUGGESTED="gimp-plug-ins gimp-brushes gimp-console gimp-plugin-ufraw"
14 DEPENDS="libart_lgpl babl gegl libgio tiff xorg-libXdamage xorg-libXmu \
15 xorg-libXt gdk-pixbuf gtk+ libexif json-glib"
16 BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev libgio-dev \
17 intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \
18 gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev jasper-dev \
19 json-glib-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://download.gimp.org/pub/$PACKAGE/$( \
25 wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \
26 sed "/latest/d;/\[DIR/!d;/v[0-9]/!d;s|.*href=.\\(.*\\)/.*\".*|\\1|" | sort -Vr | sed q) 2>/dev/null | \
27 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
34 # Fix some build issues, as suggested by BLFS manual
36 sed -i '/gegl/s/2/3/' configure &&
37 sed -i '70,75 d' app/core/gimpparamspecs-duplicate.c
39 ./configure \
40 --prefix=/usr \
41 --sysconfdir=/etc \
42 --infodir=/usr/share/info \
43 --mandir=/usr/share/man \
44 --with-html-dir=/usr/share/doc \
45 --without-print \
46 --disable-python \
47 --without-poppler \
48 --without-libcurl \
49 --without-alsa \
50 --without-librsvg \
51 --without-dbus \
52 --without-webkit \
53 $CONFIGURE_ARGS &&
54 make $MAKEFLAGS && make install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps
62 cp -a $install/etc $fs
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/lib/*.so* $fs/usr/lib
65 cp -a $install/usr/lib/gimp $fs/usr/lib
67 cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \
68 $fs/usr/share/pixmaps/gimp.png
70 # The gimp-console goes in a separate package
71 rm $fs/usr/bin/gimp-console*
73 # Most plug-ins goes in a separate package
74 rm -rf $fs/usr/lib/gimp/2.0/plug-ins/*
75 for i in file-jpeg file-png pixelize screenshot
76 do
77 cp $install/usr/lib/gimp/2.0/plug-ins/$i \
78 $fs/usr/lib/gimp/2.0/plug-ins
79 done
81 # Include only Basic brushes --> gimp-brushes
82 cp -a $install/usr/share/gimp $fs/usr/share
83 for i in gimp-* Legacy Media Sketch Splatters Texture
84 do
85 rm -rf $fs/usr/share/gimp/2.0/brushes/$i
86 done
88 # Remove devel files
89 rm $fs/usr/lib/gimp/2.0/modules/*.*a
91 # Put a nice splash with a spider
92 cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images
93 }