Magellan Linux

Annotation of /branches/magellan-next/extras/gimp/gimp-2.6.11-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9537 - (hide annotations) (download)
Tue Dec 6 00:49:41 2011 UTC (12 years, 5 months ago) by niro
File size: 2626 byte(s)
-fixed build against newer poppler
1 niro 9533 # $Id$
2    
3     PNAME="gimp"
4     PVER="2.6.11"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-gfx"
8    
9     DESCRIPTION="The Gimp - GNU Image Manipulation Program."
10     HOMEPAGE="http://www.gimp.org/"
11    
12     DEPEND=">= dev-libs/glib2-2.28
13     >= x11-libs/gtk2+-2.24
14     >= x11-libs/pango-1.
15     >= dev-libs/libxml2-2.7
16     >= dev-libs/libxslt-1.1.28
17     >= x11-themes/hicolor-icon-theme-0.12
18     >= media-libs/freetype-2.4
19     >= media-libs/fontconfig-2.7
20     >= media-libs/libart_lgpl-2.3.21
21     >= media-libs/libpng-1.5
22     >= media-libs/libjasper-1.900
23     >= media-libs/libjpeg-8
24     >= media-libs/libexif-0.6.20
25     >= media-libs/libtiff-3.9.5
26     >= media-libs/libmng-1.0.10
27     >= media-libs/libwmf-0.2.8.4
28     >= media-libs/lcms-1.19
29     >= media-libs/alsa-lib-1.0.24
30     >= sys-libs/zlib-1.2.5
31     >= gnome-base/librsvg-2.34
32     >= app-text/poppler-glib-0.18
33     >= dev-lang/python-2.7
34     >= dev-python/pygtk-2.24
35     >= sys-apps/dbus-1.5
36     >= dev-libs/dbus-glib-0.98
37     >= net-misc/curl-7
38     >= media-libs/gegl-0.1.6
39     >= x11-apps/xdg-utils-1.1"
40    
41     SDEPEND=">= dev-util/pkgconfig-0.26
42     >= dev-util/intltool-0.50
43     >= sys-dev/gettext-0.18"
44    
45     SRCFILE="${PNAME}-${PVER}.tar.bz2"
46     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
47    
48     sminclude mtools mbuild
49    
50     SRC_URI=(
51     ftp://ftp.gimp.org/pub/${PNAME}/v${PVER:0:3}/${SRCFILE}
52     mirror://${PNAME}/${SRCFILE}
53 niro 9534 mirror://${PNAME}/${PNAME}-${PVER}-curl.patch
54 niro 9535 mirror://${PNAME}/${PNAME}-${PVER}-png15.patch
55 niro 9537 mirror://${PNAME}/${PNAME}-${PVER}-poppler018.patch
56 niro 9535 mirror://${PNAME}/${PNAME}-${PVER}-xdg.patch
57 niro 9533 )
58    
59     # grep only 'stable' releases
60     #UP2DATE="updatecmd ${HOMEPAGE}/downloads/ | grep '[0-9].[02468].[0-9].tar.bz2' | sed -n 's/.*-\(.*\)\.t.*/\1/;$ p'"
61     UP2DATE="updatecmd -listonly ftp://ftp.gimp.org/pub/gimp/v2.6/ | grep LATEST | sed 's:.*-\(.*\):\1:'"
62    
63 niro 9534 src_prepare()
64     {
65     munpack ${SRCFILE} || die
66     cd ${SRCDIR}
67    
68     # fix build against newer curl and better uri handling scheme
69     mpatch ${PNAME}-${PVER}-curl.patch || die
70 niro 9537 # fix build with libpng-1.5
71 niro 9535 mpatch ${PNAME}-${PVER}-png15.patch || die
72 niro 9537 # fix build against newer poppler (>=0.18)
73     mpatch ${PNAME}-${PVER}-poppler018.patch || die
74 niro 9535 # use xdg-open instead of default browser
75     mpatch ${PNAME}-${PVER}-xdg.patch || die
76 niro 9534 }
77    
78 niro 9533 src_compile()
79     {
80     cd ${SRCDIR}
81    
82     # gutenprint provides the gimp plugin !
83     mconfigure \
84     --enable-default-binary \
85     --with-x \
86     --with-alsa \
87     --with-dbus \
88     --with-hal \
89     --with-lcms \
90     --with-libcurl \
91     --with-libpng \
92     --with-libjpeg \
93     --with-libexif \
94     --with-libtiff \
95     --with-libmng \
96     --with-librsvg \
97     --with-poppler \
98     --with-wmf \
99     --without-aa \
100     --without-gvfs \
101     --without-gnomevfs \
102     --without-hal \
103     --enable-python \
104     --disable-gnome \
105     --disable-print \
106     --disable-debug \
107     || die
108    
109     mmake || die
110     }