Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/graphics/gimp2/Portfile

Revision 42995, 6.5 KB (checked in by devans@…, 24 hours ago)

gimp2: update to version 2.6.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name            gimp2
7version         2.6.3
8categories      graphics
9maintainers     devans
10homepage        http://www.gimp.org/
11platforms       darwin
12
13description     The GNU Image Manipulation Program
14long_description \
15        The GNU Image Manipulation Program (GIMP) is a powerful \
16        tool for the preparation and manipulation of digital images. \
17        The GIMP provides the user with a wide variety of image \
18        manipulation, painting, processing, and rendering tools.
19
20set branch      [join [lrange [split ${version} .] 0 1] .]
21master_sites    ftp://ftp.gimp.org/pub/gimp/v${branch}/ \
22                ftp://ftp.gtk.org/pub/gimp/v${branch}/ \
23                http://ftp.gtk.org/pub/gimp/v${branch}/ \
24                ftp://ftp.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/v${branch}/ \
25                http://www.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/v${branch}/ \
26                http://gimp.mirrors.hoobly.com/gimp/v${branch}/ \
27                http://mirror.umoss.org/gimp/gimp/v${branch}/ \
28                ftp://gd.tuwien.ac.at/graphics/gimp/gimp/v${branch}/ \
29                ftp://ftp.funet.fi/pub/sci/graphics/packages/gimp/v${branch}/ \
30                http://ftp.iut-bm.univ-fcomte.fr/gimp/gimp/v${branch}/ \
31                http://gimp.krecio.pl/gimp/v${branch}/ \
32                ftp://ftp.gwdg.de/pub/misc/grafik/gimp/gimp/v${branch}/ \
33                http://ftp.gwdg.de/pub/misc/grafik/gimp/gimp/v${branch}/ \
34                http://mirrors.zerg.biz/gimp/v${branch}/ \
35                ftp://ftp.esat.net/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \
36                http://ftp.esat.net/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \
37                ftp://ftp.heanet.ie/mirrors/ftp.gimp.org/pub/gimp/gimp/v${branch}/ \
38                http://ftp.heanet.ie/mirrors/ftp.gimp.org/pub/gimp/gimp/v${branch}/ \
39                ftp://ftp.u-aizu.ac.jp/pub/graphics/tools/gimp/gimp/v${branch}/ \
40                ftp://ftp.ring.gr.jp/pub/graphics/gimp/v${branch}/ \
41                http://www.ring.gr.jp/pub/graphics/gimp/v${branch}/ \
42                ftp://ftp.snt.utwente.nl/pub/software/gimp/gimp/v${branch}/ \
43                http://ftp.snt.utwente.nl/pub/software/gimp/gimp/v${branch}/ \
44                ftp://sunsite.uio.no/pub/gimp/v${branch}/ \
45                ftp://sunsite.icm.edu.pl/pub/graphics/gimp/v${branch}/ \
46                ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \
47                http://piotrkosoft.net/pub/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \
48                ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.gimp.org/v${branch}/ \
49                http://ftp.iasi.roedu.net/mirrors/ftp.gimp.org/v${branch}/ \
50                ftp://ftp.sai.msu.su/pub/unix/graphics/gimp/mirror/gimp/v${branch}/ \
51                ftp://ftp.is.co.za/mirror/ftp.gimp.org/gimp/v${branch}/ \
52                http://sunsite.rediris.es/mirror/gimp/v${branch}/ \
53                ftp://ftp.rediris.es/mirror/gimp/v${branch}/ \
54                ftp://ftp.acc.umu.se/pub/gimp/gimp/v${branch}/ \
55                ftp://ftp.sunet.se/pub/gnu/gimp/v${branch}/ \
56                http://ftp.sunet.se/pub/gnu/gimp/v${branch}/
57
58checksums       md5     39c30867511b79391eb9177c86c8b79a \
59                sha1    5e64c03d9d05fa28656c6041039c26cd7c09deab \
60                rmd160  ac736b1e49918f4aa23215fce9ab56c359c586f0
61
62distname        gimp-${version}
63use_bzip2       yes
64
65patchfiles      patch-etc-gimprc.diff
66
67depends_lib     port:gegl \
68                port:aalib \
69                port:curl \
70                port:libart_lgpl \
71                port:libexif \
72                port:libgnomeui \
73                port:libmng \
74                port:librsvg \
75                port:libwmf \
76                port:p5-xml-parser \
77                port:poppler \
78                port:py25-gtk
79
80platform darwin 7 {
81    # poppler currently can't be built on 10.3 (see #15603)
82    depends_lib-delete port:poppler
83    configure.args-append --without-poppler
84}
85
86platform darwin 9 {
87    post-patch {
88        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.am
89        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.in
90    }
91}
92
93use_parallel_build  yes
94configure.python    ${prefix}/bin/python2.5
95configure.args  --enable-mp \
96                --with-pdbgen \
97                --with-x \
98                --without-dbus \
99                --without-hal \
100                --without-alsa \
101                --without-gvfs \
102                --without-webkit
103
104variant no_python description {Disable Python scripts and filters} {
105    depends_lib-delete      port:py25-gtk
106    configure.args-append   --disable-python
107}
108
109variant dbus description {Enable dbus support} {
110    depends_lib-append      port:dbus-glib
111    configure.args-delete   --without-dbus
112}
113
114variant gvfs description {Enable gvfs support} {
115    depends_lib-append      port:gvfs
116    configure.args-delete   --without-gvfs
117}
118
119variant help_browser description {Enable Gimp help browser} {
120    depends_lib-append      port:webkit-gtk
121    configure.args-delete   --without-webkit
122}
123
124if {[variant_isset no_x11]} {
125    default_variants    +quartz
126}
127
128if {![variant_isset quartz]} {
129    default_variants    +x11
130}
131
132pre-fetch {
133    if {![variant_isset quartz] && ![variant_isset x11]} {
134        error "Either +x11 or +quartz is required"
135    }
136}
137
138pre-configure {
139    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
140        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
141        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
142        if {[variant_isset quartz] && ${gtk_not_quartz}} {
143            error "+quartz variant selected, but gtk2+x11 is installed"
144        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
145            error "+x11 variant selected, but gtk2+quartz is installed"
146        }
147    } else {
148            error "Cannot find gdkconfig.h"
149    }
150}
151
152variant quartz requires no_x11 conflicts x11 description {Enable Quartz rendering} {
153    configure.ldflags-append   -framework Carbon
154}
155
156variant x11 conflicts quartz description {Enable rendering in X11 (default)} {
157}
158
159variant no_x11 description {Build without X Windows support} {
160    configure.args-delete --with-x
161    configure.args-append --without-x
162}
163
164livecheck.check regex
165livecheck.url   http://www.gimp.org/downloads/
166livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the browser.