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

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

various poppler dependents: increment revision to force rebuild against new libpoppler.13. Old version was libpoppler.12.

  • 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 77764 2011-04-11 22:12:37Z 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        4
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
67set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
68configure.pkg_config_path ${python_framework}/lib/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig
69configure.env   PATH=${python_framework}/bin:$env(PATH)
70configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \
71                --enable-mp \
72                --with-pdbgen \
73                --with-x \
74                --without-hal \
75                --without-alsa \
76                --without-gvfs \
77                --without-webkit \
78                --enable-default-binary \
79                --enable-gimp-console
80
81variant no_python description {Disable Python scripts and filters} {
82    depends_lib-delete      port:py26-gtk
83    configure.args-append   --disable-python
84}
85
86variant gvfs description {Enable gvfs support} {
87    depends_lib-append      port:gvfs
88    configure.args-delete   --without-gvfs
89}
90
91variant remote description {Enable building of obsolete gimp-remote helper app} {
92    configure.args-append   --enable-gimp-remote
93}
94
95variant help_browser description {Enable Gimp help browser} {
96    depends_lib-append      port:webkit-gtk
97    configure.args-delete   --without-webkit
98}
99
100variant debug description {Enable debugging} {
101    configure.args-append  --enable-debug
102}
103
104if {[variant_isset no_x11]} {
105    default_variants    +quartz
106}
107
108if {![variant_isset quartz]} {
109    default_variants    +x11
110}
111
112pre-fetch {
113    if {![variant_isset quartz] && ![variant_isset x11]} {
114        error "Either +x11 or +quartz is required"
115    }
116}
117
118pre-configure {
119    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
120        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
121        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
122        if {[variant_isset quartz] && ${gtk_not_quartz}} {
123            error "+quartz variant selected, but gtk2+x11 is installed"
124        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
125            error "+x11 variant selected, but gtk2+quartz is installed"
126        }
127    } else {
128            error "Cannot find gdkconfig.h"
129    }
130}
131
132variant quartz requires no_x11 conflicts x11 {
133    configure.ldflags-append   -framework Carbon
134}
135
136variant x11 conflicts quartz description {Enable rendering in X11} {
137}
138
139variant no_x11 {
140    configure.args-delete --with-x
141    configure.args-append --without-x
142}
143
144livecheck.type  regex
145livecheck.url   ftp://ftp.gtk.org/pub/gimp/v${branch}/
146livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.