New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

root/trunk/dports/graphics/gimp2/Portfile

Revision 51455, 4.0 KB (checked in by devans@…, 6 weeks ago)

various webkit-gtk dependents: increment revision to force build against new webkit-gtk library revision.

  • 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.6
8revision        2
9categories      graphics
10maintainers     devans
11homepage        http://www.gimp.org/
12platforms       darwin
13
14description     The GNU Image Manipulation Program
15long_description \
16        The GNU Image Manipulation Program (GIMP) is a powerful \
17        tool for the preparation and manipulation of digital images. \
18        The GIMP provides the user with a wide variety of image \
19        manipulation, painting, processing, and rendering tools.
20
21universal_variant  no
22
23set branch      [join [lrange [split ${version} .] 0 1] .]
24master_sites    gimp:gimp/v${branch}/
25
26checksums       md5     23d880dd09cd62c936ed04666a53f8e4 \
27                sha1    71aec5cd671a2431daa91dea91abb6d3822a896b \
28                rmd160  9a171baf6007d3a8acfce6ff5e880e412f4225ae
29
30distname        gimp-${version}
31use_bzip2       yes
32
33patchfiles      patch-etc-gimprc.diff
34
35depends_lib     port:gegl \
36                port:dbus-glib \
37                port:aalib \
38                port:curl \
39                port:libart_lgpl \
40                port:libexif \
41                port:libgnomeui \
42                port:libmng \
43                port:librsvg \
44                port:libwmf \
45                port:p5-xml-parser \
46                port:poppler \
47                port:py25-gtk
48
49platform darwin 7 {
50    # poppler currently can't be built on 10.3 (see #15603)
51    depends_lib-delete port:poppler
52    configure.args-append --without-poppler
53}
54
55platform darwin 9 {
56    post-patch {
57        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.am
58        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.in
59    }
60}
61
62use_parallel_build  yes
63configure.python    ${prefix}/bin/python2.5
64configure.args  --enable-mp \
65                --with-pdbgen \
66                --with-x \
67                --without-hal \
68                --without-alsa \
69                --without-gvfs \
70                --without-webkit
71
72variant no_python description {Disable Python scripts and filters} {
73    depends_lib-delete      port:py25-gtk
74    configure.args-append   --disable-python
75}
76
77variant gvfs description {Enable gvfs support} {
78    depends_lib-append      port:gvfs
79    configure.args-delete   --without-gvfs
80}
81
82variant remote description {Enable building of obsolete gimp-remote helper app} {
83    configure.args-append   --enable-gimp-remote
84}
85
86variant help_browser description {Enable Gimp help browser} {
87    depends_lib-append      port:webkit-gtk
88    configure.args-delete   --without-webkit
89}
90
91if {[variant_isset no_x11]} {
92    default_variants    +quartz
93}
94
95if {![variant_isset quartz]} {
96    default_variants    +x11
97}
98
99pre-fetch {
100    if {![variant_isset quartz] && ![variant_isset x11]} {
101        error "Either +x11 or +quartz is required"
102    }
103}
104
105pre-configure {
106    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
107        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
108        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
109        if {[variant_isset quartz] && ${gtk_not_quartz}} {
110            error "+quartz variant selected, but gtk2+x11 is installed"
111        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
112            error "+x11 variant selected, but gtk2+quartz is installed"
113        }
114    } else {
115            error "Cannot find gdkconfig.h"
116    }
117}
118
119variant quartz requires no_x11 conflicts x11 description {Enable Quartz rendering} {
120    configure.ldflags-append   -framework Carbon
121}
122
123variant x11 conflicts quartz description {Enable rendering in X11 (default)} {
124}
125
126variant no_x11 {
127    configure.args-delete --with-x
128    configure.args-append --without-x
129}
130
131livecheck.check regex
132livecheck.url   http://www.gimp.org/downloads/
133livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the browser.