summaryrefslogtreecommitdiffstats
path: root/extra/gimp/Pkgfile
blob: 3d3660537dba162094d04fac900751822b65dca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Description: Programme de retouche et manipulation d'image GNU
# URL: http://www.gimp.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gtk, pygtk, curl, libgtkhtml, libexif, xorg-libxmu, xorg-libxpm, openexr, gegl, poppler-glib, libmng, alsa-lib
# Run on: gtk,pygtk,curl,libgtkhtml,libexif,xorg-libxmu,xorg-libxpm,openexr,gegl,poppler-glib,libmng,alsa-lib

name=gimp
version=2.6.11
release=1
source=(ftp://ftp.gimp.org/pub/gimp/v2.6/gimp-$version.tar.bz2 \
	http://nutyx.meticul.eu/files/patchs/gimp/gimp-splash-2009-2.png
	gimp-2.6.11-libpng-1.5.1.patch)


build() {
	cd $name-$version
	patch -Np1 -i ../gimp-2.6.11-libpng-1.5.1.patch

	./configure --prefix=/usr \
		--sysconfdir=/etc \
    		--enable-mp \
		--enable-gimp-console \
		--enable-gimp-remote \
    		--enable-python \
		--with-gif-compression=lzw \
    		--without-aa
	make
	make DESTDIR=$PKG install
	sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' $PKG/usr/lib/gimp/2.0/plug-ins/*.py
	rm -f $PKG/usr/share/gimp/2.0/images/gimp-splash.png
	install -m664 ../gimp-splash-2009-2.png $PKG/usr/share/gimp/2.0/images/gimp-splash.png
}