[114582] trunk/dports/graphics
devans at macports.org
devans at macports.org
Tue Dec 10 10:08:40 PST 2013
Revision: 114582
https://trac.macports.org/changeset/114582
Author: devans at macports.org
Date: 2013-12-10 10:08:40 -0800 (Tue, 10 Dec 2013)
Log Message:
-----------
gimp3-devel: new experimental development version of GIMP based on a recent snapshot of the git gtk3-port branch.
Added Paths:
-----------
trunk/dports/graphics/gimp3-devel/
trunk/dports/graphics/gimp3-devel/Portfile
trunk/dports/graphics/gimp3-devel/files/
trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff
trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff
trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff
trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff
Added: trunk/dports/graphics/gimp3-devel/Portfile
===================================================================
--- trunk/dports/graphics/gimp3-devel/Portfile (rev 0)
+++ trunk/dports/graphics/gimp3-devel/Portfile 2013-12-10 18:08:40 UTC (rev 114582)
@@ -0,0 +1,220 @@
+# -*- 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
+PortGroup compiler_blacklist_versions 1.0
+
+name gimp3-devel
+set git_name gimp
+set git_commit c59fc854a6656934cd20fedba6b6e88bd93af913
+conflicts gimp2 gimp2-devel
+version 2.99.0
+revision 20131118
+license GPL-3+
+categories graphics
+maintainers devans
+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. \
+ This is the experimental GTK3 based development version leading \
+ to a future 3.0 release branch based on a recent snapshot of \
+ the GTK3 git development branch.
+
+homepage http://www.gimp.org/
+master_sites https://git.gnome.org/browse/${git_name}/snapshot/
+
+distname ${git_name}-${git_commit}
+
+checksums rmd160 ddaec558a0f4d31e3efed7d11c8170d1ae924213 \
+ sha256 6ec585d354231cf7f5b863d6904cf6f6bb8eb747143c4c67e76e6faca1f60642
+
+depends_build port:pkgconfig \
+ port:autoconf \
+ port:automake \
+ port:libtool \
+ port:intltool \
+ port:gtk-doc
+
+depends_lib port:desktop-file-utils \
+ port:iso-codes \
+ port:babl-devel \
+ port:gegl-devel \
+ port:atk \
+ port:gtk3 \
+ port:fontconfig \
+ port:freetype \
+ port:tiff \
+ port:jpeg \
+ port:zlib \
+ port:bzip2 \
+ port:ghostscript \
+ port:libpng \
+ port:libmng \
+ port:gexiv2 \
+ port:aalib \
+ port:xpm \
+ port:librsvg \
+ port:poppler \
+ port:curl \
+ port:libwmf \
+ port:jasper \
+ port:lcms \
+ port:dbus-glib \
+ port:libxml2 \
+ port:libxslt \
+ port:xorg-libXcursor \
+ port:xorg-libXmu \
+ port:xorg-libXext \
+ port:xorg-libXfixes
+
+depends_run path:share/gimp/2.0/help:gimp-help-en
+
+platform darwin {
+ set cxx_stdlib {}
+
+ if {[info exists configure.cxx_stdlib] &&
+ ${configure.cxx_stdlib} ne {} &&
+ [string match *clang* ${configure.cxx}]} {
+ set cxx_stdlib ${configure.cxx_stdlib}
+ } elseif {[string match *clang* ${configure.cxx}] &&
+ ${os.major} >= 13} {
+ set cxx_stdlib libc++
+ } else {
+ set cxx_stdlib libstdc++
+ }
+}
+
+patchfiles patch-configure.ac.diff \
+ patch-etc-gimprc.diff \
+ patch-freetype-includes.diff \
+ patch-plug-ins-twain-tw_mac.c.diff
+
+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
+ }
+}
+
+compiler.blacklist-append {gcc-4.2 >= 5646}
+
+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. Install gtk2+quartz."
+ } elseif {![variant_isset quartz] && ${gtk_not_x11}} {
+ error "+quartz variant is not selected, but gtk2+quartz is installed. Install gtk2+x11."
+ }
+ } else {
+ error "Cannot find gdkconfig.h"
+ }
+}
+
+configure.cmd ./autogen.sh
+
+configure.args --build=${configure.build_arch}-apple-${os.platform}${os.version} \
+ --enable-mp \
+ --with-pdbgen \
+ --with-x \
+ --x-includes=${prefix}/include \
+ --x-libraries=${prefix}/lib \
+ --disable-silent-rules \
+ --without-alsa \
+ --without-gvfs \
+ --without-gudev \
+ --without-webkit \
+ --without-mac-twain
+
+# --without-mac-twain:
+# Leopard's 64bit Carbon is missing QuitApplicationEventLoop
+# It doesn't build any more anyways:
+# https://trac.macports.org/ticket/35168
+
+variant python26 conflicts no_python python27 description {Use python 2.6} {
+ configure.python ${prefix}/bin/python2.6
+ depends_lib-append port:py26-pygtk
+ set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
+ configure.pkg_config_path ${python_framework}/lib/pkgconfig
+ configure.env PATH=${python_framework}/bin:$env(PATH)
+}
+
+variant python27 conflicts no_python python26 description {Use python 2.7} {
+ configure.python ${prefix}/bin/python2.7
+ depends_lib-append port:py27-pygtk
+ set python_framework ${frameworks_dir}/Python.framework/Versions/2.7
+ configure.pkg_config_path ${python_framework}/lib/pkgconfig
+ configure.env PATH=${python_framework}/bin:$env(PATH)
+}
+
+variant no_python description {Disable Python scripts and filters} {
+ configure.args-append --disable-python
+}
+
+if {![variant_isset no_python] && ![variant_isset python26]} {
+ default_variants +python27
+}
+
+variant gvfs description {Enable GIO/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 debug description {Enable debugging} {
+ configure.args-append --enable-debug
+}
+
+variant quartz {
+ depends_lib-delete port:xorg-libXcursor \
+ port:xorg-libXmu \
+ port:xorg-libXext \
+ port:xorg-libXfixes \
+ port:xpm
+ depends_lib-append port:gtk-osx-application
+ configure.args-delete --with-x \
+ --x-includes=${prefix}/include \
+ --x-libraries=${prefix}/lib
+ configure.args-append --without-x
+ configure.ldflags-append -framework Carbon
+
+#
+# if variant is +quartz lcms plugin uses 32 bit only Carbon API
+#
+
+ if {${build_arch} eq "x86_64" || ${build_arch} eq "ppc64"} {
+ configure.args-append --without-lcms
+ }
+}
+
+#
+# set default variants
+#
+
+variant help_browser description {Enable Gimp help browser} {
+ configure.args-delete --without-webkit
+
+ if {${cxx_stdlib} == "libstdc++"} {
+ depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
+ } else {
+ depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
+ }
+}
+
+default_variants +help_browser
+
+post-activate {
+ system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
+ system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
+}
+
+livecheck.type none
Property changes on: trunk/dports/graphics/gimp3-devel/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-configure.ac.diff 2013-12-10 18:08:40 UTC (rev 114582)
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2013-11-18 10:27:30.000000000 -0800
++++ configure.ac 2013-11-30 21:21:54.000000000 -0800
+@@ -1007,7 +1007,7 @@
+ GTK_CHECK_BACKEND([x11], [gtk_required_version],
+ [have_gtk_x11=yes], [have_gtk_x11=no])
+
+-have_libxmu="no (building for `pkg-config --variable=targets gtk-3.0`)"
++have_libxmu="no (building for `pkg-config --variable=targets gtk+-3.0`)"
+
+ if test "x$have_gtk_x11" = "xyes"; then
+
Added: trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff
===================================================================
--- trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-etc-gimprc.diff 2013-12-10 18:08:40 UTC (rev 114582)
@@ -0,0 +1,11 @@
+--- etc/gimprc.orig 2012-04-02 16:28:33.000000000 -0700
++++ etc/gimprc 2012-07-10 08:55:00.000000000 -0700
+@@ -689,6 +689,8 @@
+ #
+ # (dock-window-hint utility)
+
++(dock-window-hint utility)
++
+ # Sets the pixel format to use for mouse pointers. Possible values are
+ # bitmap and pixbuf.
+ #
Added: trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff
===================================================================
--- trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-freetype-includes.diff 2013-12-10 18:08:40 UTC (rev 114582)
@@ -0,0 +1,12 @@
+--- app/text/gimpfont.c.orig 2013-11-18 10:27:30.000000000 -0800
++++ app/text/gimpfont.c 2013-11-30 21:33:19.000000000 -0800
+@@ -28,7 +28,8 @@
+
+ #define PANGO_ENABLE_ENGINE 1 /* Argh */
+ #include <pango/pango-ot.h>
+-#include <freetype/tttables.h>
++#include <ft2build.h>
++#include FT_TRUETYPE_TABLES_H
+
+ #include "text-types.h"
+
Added: trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff
===================================================================
--- trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-twain-tw_mac.c.diff 2013-12-10 18:08:40 UTC (rev 114582)
@@ -0,0 +1,15 @@
+--- plug-ins/twain/tw_mac.c.orig 2012-03-12 12:18:11.000000000 -0700
++++ plug-ins/twain/tw_mac.c 2012-07-10 08:57:29.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131210/b9228f60/attachment.html>
More information about the macports-changes
mailing list