wok annotate gimp/receipt @ rev 14871
musl-libc: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 23 09:36:13 2013 +0000 (2013-07-23) |
parents | 6c70085d1b49 |
children | 2b9f96603415 |
rev | line source |
---|---|
pankso@43 | 1 # SliTaz package receipt. |
pankso@43 | 2 |
pankso@43 | 3 PACKAGE="gimp" |
devl547@13805 | 4 VERSION="2.8.2" |
pankso@207 | 5 CATEGORY="graphics" |
pankso@43 | 6 SHORT_DESC="Gnu Image Manipulation Program or GIMP!" |
pankso@43 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@549 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@43 | 9 WEB_SITE="http://www.gimp.org/" |
pankso@12740 | 10 WGET_URL="ftp://ftp.gimp.org/pub/gimp/v2.8/$TARBALL" |
pankso@12740 | 11 SUGGESTED="gimp-plug-ins gimp-brushes gimp-console gimp-plugin-ufraw" |
pankso@12740 | 12 |
pankso@12740 | 13 DEPENDS="libart_lgpl babl gegl libgio tiff xorg-libXdamage xorg-libXmu \ |
mojo@14518 | 14 xorg-libXt gdk-pixbuf gtk+ libexif" |
pankso@12740 | 15 BUILD_DEPENDS="gettext perl-xml-parser babl-dev gegl-dev libgio-dev \ |
pankso@12740 | 16 intltool expat-dev zlib-dev libart_lgpl-dev lcms-dev xorg-dev-proto \ |
pankso@12740 | 17 gdk-pixbuf-dev gtk+-dev libexif-dev aalib-dev libmng-dev" |
pankso@43 | 18 |
pankso@43 | 19 # Rules to configure and make the package. |
pankso@43 | 20 compile_rules() |
pankso@43 | 21 { |
pankso@43 | 22 cd $src |
pankso@43 | 23 ./configure \ |
pankso@4245 | 24 --prefix=/usr \ |
pankso@4245 | 25 --sysconfdir=/etc \ |
pankso@4245 | 26 --infodir=/usr/share/info \ |
pankso@4245 | 27 --mandir=/usr/share/man \ |
pankso@43 | 28 --with-html-dir=/usr/share/doc \ |
erjo@1646 | 29 --without-print \ |
pankso@549 | 30 --disable-python \ |
erjo@1646 | 31 --without-poppler \ |
erjo@1646 | 32 --without-libcurl \ |
erjo@1646 | 33 --without-alsa \ |
erjo@1646 | 34 --without-librsvg \ |
erjo@1646 | 35 --without-dbus \ |
pankso@4245 | 36 --without-webkit \ |
jozee@2769 | 37 $CONFIGURE_ARGS && |
pankso@12740 | 38 make $MAKEFLAGS && make install |
pankso@43 | 39 } |
pankso@43 | 40 |
pankso@43 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@43 | 42 genpkg_rules() |
pankso@43 | 43 { |
pankso@4260 | 44 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps |
pankso@3955 | 45 |
pankso@12740 | 46 cp -a $install/etc $fs |
pankso@12740 | 47 cp -a $install/usr/bin $fs/usr |
pankso@12740 | 48 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12740 | 49 cp -a $install/usr/lib/gimp $fs/usr/lib |
pankso@12740 | 50 |
pankso@12740 | 51 cp $install/usr/share/icons/hicolor/24x24/apps/gimp.png \ |
pankso@4260 | 52 $fs/usr/share/pixmaps/gimp.png |
pankso@3955 | 53 |
pankso@4260 | 54 # The gimp-console goes in a separate package |
pankso@4260 | 55 rm $fs/usr/bin/gimp-console* |
pankso@4260 | 56 |
pankso@4260 | 57 # Most plug-ins goes in a separate package |
pankso@4260 | 58 rm -rf $fs/usr/lib/gimp/2.0/plug-ins/* |
pankso@4260 | 59 for i in file-jpeg file-png pixelize screenshot |
pankso@4260 | 60 do |
pankso@12740 | 61 cp $install/usr/lib/gimp/2.0/plug-ins/$i \ |
pankso@12740 | 62 $fs/usr/lib/gimp/2.0/plug-ins |
pankso@4260 | 63 done |
pankso@4260 | 64 |
pankso@12740 | 65 # Include only Basic brushes --> gimp-brushes |
pankso@12740 | 66 cp -a $install/usr/share/gimp $fs/usr/share |
pankso@12740 | 67 for i in gimp-* Legacy Media Sketch Splatters Texture |
pankso@12740 | 68 do |
pankso@12740 | 69 rm -rf $fs/usr/share/gimp/2.0/brushes/$i |
pankso@12740 | 70 done |
pankso@12740 | 71 |
pankso@12740 | 72 # Remove devel files |
pankso@12740 | 73 rm $fs/usr/lib/gimp/2.0/modules/*.*a |
pankso@3955 | 74 |
pankso@43 | 75 # Put a nice splash with a spider |
pankso@12740 | 76 cp -a $stuff/gimp-splash.png $fs/usr/share/gimp/2.0/images |
pankso@43 | 77 } |