Revision: 70258 http://trac.macports.org/changeset/70258 Author: devans@macports.org Date: 2010-08-03 16:37:43 -0700 (Tue, 03 Aug 2010) Log Message: ----------- gimp2-devel: new port of gimp unstable branch 2.7.1. Added Paths: ----------- trunk/dports/graphics/gimp2-devel/ trunk/dports/graphics/gimp2-devel/Portfile trunk/dports/graphics/gimp2-devel/files/ trunk/dports/graphics/gimp2-devel/files/gimp trunk/dports/graphics/gimp2-devel/files/gimp-remote trunk/dports/graphics/gimp2-devel/files/patch-etc-gimprc.diff trunk/dports/graphics/gimp2-devel/files/patch-plug-ins-twain-tw_mac.c.diff Added: trunk/dports/graphics/gimp2-devel/Portfile =================================================================== --- trunk/dports/graphics/gimp2-devel/Portfile (rev 0) +++ trunk/dports/graphics/gimp2-devel/Portfile 2010-08-03 23:37:43 UTC (rev 70258) @@ -0,0 +1,140 @@ +# -*- 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 +# $Id$ + +PortSystem 1.0 + +name gimp2-devel +conflicts gimp2 +# please remember to update the gimp metapackage to match +version 2.7.1 +categories graphics +maintainers devans +homepage http://www.gimp.org/ +platforms darwin + +description The GNU Image Manipulation Program +long_description \ + The GNU Image Manipulation Program (GIMP) is a powerful \ + tool for the preparation and manipulation of digital images. \ + The GIMP provides the user with a wide variety of image \ + manipulation, painting, processing, and rendering tools. + +universal_variant no + +set branch [join [lrange [split ${version} .] 0 1] .] +master_sites gimp:gimp/v${branch}/ + +checksums md5 4932a0a1645ecd5b23ea6155ddda013d \ + sha1 3dcfc08ddccbdf541449e4ea6be252b449f6d872 \ + rmd160 0d90735de80cc8aeeef43f6441ffcbdf6fee32c9 + +distname gimp-${version} +use_bzip2 yes + +patchfiles patch-etc-gimprc.diff \ + patch-plug-ins-twain-tw_mac.c.diff + +depends_build port:pkgconfig \ + port:intltool \ + port:p5-xml-parser + +depends_lib port:iso-codes \ + port:gegl \ + port:gtk2 \ + port:libmng \ + port:libexif \ + port:aalib \ + port:librsvg \ + port:poppler \ + port:gnome-vfs \ + port:libgnomeui \ + port:curl \ + port:libwmf \ + port:lcms \ + port:dbus-glib \ + port:py26-gtk + +platform darwin 9 { + post-patch { + reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.am + reinplace "s|-export-symbols-regex.*||g" ${worksrcpath}/plug-ins/pygimp/Makefile.in + } +} + +use_parallel_build yes +configure.python ${prefix}/bin/python2.6 +configure.args --build=${configure.build_arch}-apple-${os.platform}${os.version} \ + --enable-mp \ + --with-pdbgen \ + --with-x \ + --without-hal \ + --without-alsa \ + --without-gvfs \ + --without-webkit + +variant no_python description {Disable Python scripts and filters} { + depends_lib-delete port:py26-gtk + configure.args-append --disable-python +} + +variant gvfs description {Enable gvfs support} { + depends_lib-append port:gvfs + configure.args-delete --without-gvfs +} + +variant remote description {Enable building of obsolete gimp-remote helper app} { + configure.args-append --enable-gimp-remote +} + +variant help_browser description {Enable Gimp help browser} { + depends_lib-append port:webkit-gtk + configure.args-delete --without-webkit +} + +variant debug description {Enable debugging} { + configure.args-append --enable-debug +} + +if {[variant_isset no_x11]} { + default_variants +quartz +} + +if {![variant_isset quartz]} { + default_variants +x11 +} + +pre-fetch { + if {![variant_isset quartz] && ![variant_isset x11]} { + error "Either +x11 or +quartz is required" + } +} + +pre-configure { + if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} { + set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}] + set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}] + if {[variant_isset quartz] && ${gtk_not_quartz}} { + error "+quartz variant selected, but gtk2+x11 is installed" + } elseif {[variant_isset x11] && ${gtk_not_x11}} { + error "+x11 variant selected, but gtk2+quartz is installed" + } + } else { + error "Cannot find gdkconfig.h" + } +} + +variant quartz requires no_x11 conflicts x11 { + configure.ldflags-append -framework Carbon +} + +variant x11 conflicts quartz description {Enable rendering in X11} { +} + +variant no_x11 { + configure.args-delete --with-x + configure.args-append --without-x +} + +livecheck.type regex +livecheck.url ftp://ftp.gimp.org/pub/gimp/v${branch}/ +livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}" Property changes on: trunk/dports/graphics/gimp2-devel/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/graphics/gimp2-devel/files/gimp =================================================================== --- trunk/dports/graphics/gimp2-devel/files/gimp (rev 0) +++ trunk/dports/graphics/gimp2-devel/files/gimp 2010-08-03 23:37:43 UTC (rev 70258) @@ -0,0 +1,5 @@ +#!/bin/sh + +export PATH=__PREFIX__/bin:$PATH + +dbus-launch $0-__VERSION__ "$@" Added: trunk/dports/graphics/gimp2-devel/files/gimp-remote =================================================================== --- trunk/dports/graphics/gimp2-devel/files/gimp-remote (rev 0) +++ trunk/dports/graphics/gimp2-devel/files/gimp-remote 2010-08-03 23:37:43 UTC (rev 70258) @@ -0,0 +1,5 @@ +#!/bin/sh + +export PATH=__PREFIX__/bin:$PATH + +dbus-launch gimp-remote-__VERSION__ "$@" Added: trunk/dports/graphics/gimp2-devel/files/patch-etc-gimprc.diff =================================================================== --- trunk/dports/graphics/gimp2-devel/files/patch-etc-gimprc.diff (rev 0) +++ trunk/dports/graphics/gimp2-devel/files/patch-etc-gimprc.diff 2010-08-03 23:37:43 UTC (rev 70258) @@ -0,0 +1,28 @@ +--- etc/gimprc.orig 2010-06-21 23:11:43.000000000 -0700 ++++ etc/gimprc 2010-08-02 10:24:40.000000000 -0700 +@@ -691,12 +691,16 @@ + # + # (help-browser gimp) + ++(help-browser web-browser) ++ + # When enabled, the online user manual will be used by the help system. + # Otherwise the locally installed copy is used. Possible values are yes and + # no. + # + # (user-manual-online no) + ++(user-manual-online yes) ++ + # The location of the online user manual. This is used if + # 'user-manual-online' is enabled. This is a string value. + # +@@ -708,6 +712,8 @@ + # + # (dock-window-hint utility) + ++(dock-window-hint normal) ++ + # Sets the pixel format to use for mouse pointers. Possible values are + # bitmap and pixbuf. + # Added: trunk/dports/graphics/gimp2-devel/files/patch-plug-ins-twain-tw_mac.c.diff =================================================================== --- trunk/dports/graphics/gimp2-devel/files/patch-plug-ins-twain-tw_mac.c.diff (rev 0) +++ trunk/dports/graphics/gimp2-devel/files/patch-plug-ins-twain-tw_mac.c.diff 2010-08-03 23:37:43 UTC (rev 70258) @@ -0,0 +1,15 @@ +--- plug-ins/twain/tw_mac.c.orig 2010-06-22 21:52:14.000000000 -0700 ++++ plug-ins/twain/tw_mac.c 2010-08-02 10:28:16.000000000 -0700 +@@ -192,10 +192,12 @@ + + /* Voodoo magic fix inspired by java_swt launcher */ + /* Without this the icon setting doesn't work about half the time. */ ++#ifndef __LP64__ + CGrafPtr p = BeginQDContextForApplicationDockTile(); + EndQDContextForApplicationDockTile(p); + + SetApplicationDockTileImage (icon); ++#endif + } + + int