source: trunk/dports/graphics/gimp2-devel/Portfile @ 82553

Last change on this file since 82553 was 82553, checked in by jmr@…, 8 years ago

update p5-* dependents to use a specific version

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
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: Portfile 82553 2011-08-15 19:22:39Z jmr@macports.org $
3
4PortSystem 1.0
5
6name            gimp2-devel
7conflicts       gimp2
8# please remember to update the gimp metapackage to match
9version         2.7.1
10revision        5
11categories      graphics
12maintainers     devans
13homepage        http://www.gimp.org/
14platforms       darwin
15
16description     The GNU Image Manipulation Program
17long_description \
18        The GNU Image Manipulation Program (GIMP) is a powerful \
19        tool for the preparation and manipulation of digital images. \
20        The GIMP provides the user with a wide variety of image \
21        manipulation, painting, processing, and rendering tools.
22
23universal_variant  no
24
25set branch      [join [lrange [split ${version} .] 0 1] .]
26master_sites    gimp:gimp/v${branch}/
27
28checksums       md5     4932a0a1645ecd5b23ea6155ddda013d \
29                sha1    3dcfc08ddccbdf541449e4ea6be252b449f6d872 \
30                rmd160  0d90735de80cc8aeeef43f6441ffcbdf6fee32c9
31
32distname        gimp-${version}
33use_bzip2       yes
34
35patchfiles      patch-etc-gimprc.diff \
36                patch-plug-ins-twain-tw_mac.c.diff
37
38depends_build   port:pkgconfig \
39                port:intltool
40
41depends_lib     port:iso-codes \
42                port:gegl \
43                port:gtk2 \
44                port:libmng \
45                port:libexif \
46                port:aalib \
47                port:librsvg \
48                port:poppler \
49                port:gnome-vfs \
50                port:libgnomeui \
51                port:curl \
52                port:libwmf \
53                port:lcms \
54                port:dbus-glib \
55                port:py26-gtk
56
57platform darwin 9 {
58    post-patch {
59        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.am
60        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.in
61    }
62}
63
64use_parallel_build  yes
65configure.python    ${prefix}/bin/python2.6
66set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
67configure.pkg_config_path ${python_framework}/lib/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig
68configure.env   PATH=${python_framework}/bin:$env(PATH)
69configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \
70                --enable-mp \
71                --with-pdbgen \
72                --with-x \
73                --without-hal \
74                --without-alsa \
75                --without-gvfs \
76                --without-webkit \
77                --enable-default-binary \
78                --enable-gimp-console
79
80variant no_python description {Disable Python scripts and filters} {
81    depends_lib-delete      port:py26-gtk
82    configure.args-append   --disable-python
83}
84
85variant gvfs description {Enable gvfs support} {
86    depends_lib-append      port:gvfs
87    configure.args-delete   --without-gvfs
88}
89
90variant remote description {Enable building of obsolete gimp-remote helper app} {
91    configure.args-append   --enable-gimp-remote
92}
93
94variant help_browser description {Enable Gimp help browser} {
95    depends_lib-append      port:webkit-gtk
96    configure.args-delete   --without-webkit
97}
98
99variant debug description {Enable debugging} {
100    configure.args-append  --enable-debug
101}
102
103if {[variant_isset no_x11]} {
104    default_variants    +quartz
105}
106
107if {![variant_isset quartz]} {
108    default_variants    +x11
109}
110
111pre-fetch {
112    if {![variant_isset quartz] && ![variant_isset x11]} {
113        error "Either +x11 or +quartz is required"
114    }
115}
116
117pre-configure {
118    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
119        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
120        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
121        if {[variant_isset quartz] && ${gtk_not_quartz}} {
122            error "+quartz variant selected, but gtk2+x11 is installed"
123        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
124            error "+x11 variant selected, but gtk2+quartz is installed"
125        }
126    } else {
127            error "Cannot find gdkconfig.h"
128    }
129}
130
131variant quartz requires no_x11 conflicts x11 {
132    configure.ldflags-append   -framework Carbon
133}
134
135variant x11 conflicts quartz description {Enable rendering in X11} {
136}
137
138variant no_x11 {
139    configure.args-delete --with-x
140    configure.args-append --without-x
141}
142
143livecheck.type  regex
144livecheck.url   ftp://ftp.gtk.org/pub/gimp/v${branch}/
145livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.