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

Last change on this file since 70310 was 70310, checked in by devans@…, 9 years ago

gimp2-devel: enable links to default names for executables.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 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 70310 2010-08-05 22:47:40Z devans@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        1
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                port:p5-xml-parser
41
42depends_lib     port:iso-codes \
43                port:gegl \
44                port:gtk2 \
45                port:libmng \
46                port:libexif \
47                port:aalib \
48                port:librsvg \
49                port:poppler \
50                port:gnome-vfs \
51                port:libgnomeui \
52                port:curl \
53                port:libwmf \
54                port:lcms \
55                port:dbus-glib \
56                port:py26-gtk
57
58platform darwin 9 {
59    post-patch {
60        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.am
61        reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.in
62    }
63}
64
65use_parallel_build  yes
66configure.python    ${prefix}/bin/python2.6
67configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \
68                --enable-mp \
69                --with-pdbgen \
70                --with-x \
71                --without-hal \
72                --without-alsa \
73                --without-gvfs \
74                --without-webkit \
75                --enable-default-binary \
76                --enable-gimp-console
77
78variant no_python description {Disable Python scripts and filters} {
79    depends_lib-delete      port:py26-gtk
80    configure.args-append   --disable-python
81}
82
83variant gvfs description {Enable gvfs support} {
84    depends_lib-append      port:gvfs
85    configure.args-delete   --without-gvfs
86}
87
88variant remote description {Enable building of obsolete gimp-remote helper app} {
89    configure.args-append   --enable-gimp-remote
90}
91
92variant help_browser description {Enable Gimp help browser} {
93    depends_lib-append      port:webkit-gtk
94    configure.args-delete   --without-webkit
95}
96
97variant debug description {Enable debugging} {
98    configure.args-append  --enable-debug
99}
100
101if {[variant_isset no_x11]} {
102    default_variants    +quartz
103}
104
105if {![variant_isset quartz]} {
106    default_variants    +x11
107}
108
109pre-fetch {
110    if {![variant_isset quartz] && ![variant_isset x11]} {
111        error "Either +x11 or +quartz is required"
112    }
113}
114
115pre-configure {
116    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
117        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
118        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
119        if {[variant_isset quartz] && ${gtk_not_quartz}} {
120            error "+quartz variant selected, but gtk2+x11 is installed"
121        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
122            error "+x11 variant selected, but gtk2+quartz is installed"
123        }
124    } else {
125            error "Cannot find gdkconfig.h"
126    }
127}
128
129variant quartz requires no_x11 conflicts x11 {
130    configure.ldflags-append   -framework Carbon
131}
132
133variant x11 conflicts quartz description {Enable rendering in X11} {
134}
135
136variant no_x11 {
137    configure.args-delete --with-x
138    configure.args-append --without-x
139}
140
141livecheck.type  regex
142livecheck.url   ftp://ftp.gimp.org/pub/gimp/v${branch}/
143livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.