Ignore:
Timestamp:
Sep 23, 2011, 10:38:05 PM (8 years ago)
Author:
devans@…
Message:

gimp2-devel:

  • update to version 2.7.3
  • backport patch from post 2.7.3 upstream git master to allow building +quartz.
  • +quartz variant builds 32 bit only, see #25962.
  • variants simplified, no +no_x11 +x11 just +quartz, builds with X11 support by default.
  • variants added for +python25 +python26 +python27.
  • livecheck url updated.
Location:
trunk/dports/graphics/gimp2-devel
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/gimp2-devel/Portfile

    r82553 r84366  
    66name            gimp2-devel
    77conflicts       gimp2
    8 # please remember to update the gimp metapackage to match
    9 version         2.7.1
    10 revision        5
     8version         2.7.3
    119categories      graphics
    1210maintainers     devans
    1311homepage        http://www.gimp.org/
    1412platforms       darwin
     13
    1514
    1615description     The GNU Image Manipulation Program
     
    2120        manipulation, painting, processing, and rendering tools.
    2221
     22#
     23#  Native Mac OS X GUI (+quartz) uses 32 bit only Carbon API
     24#
     25
     26if {[variant_isset quartz]} {
     27    supported_archs i386 ppc
     28}
     29
    2330universal_variant  no
    2431
     
    2633master_sites    gimp:gimp/v${branch}/
    2734
    28 checksums       md5     4932a0a1645ecd5b23ea6155ddda013d \
    29                 sha1    3dcfc08ddccbdf541449e4ea6be252b449f6d872 \
    30                 rmd160  0d90735de80cc8aeeef43f6441ffcbdf6fee32c9
     35checksums       sha1    bea6edc3423774ace8dd86222314f4ef2278cdd8 \
     36                rmd160  5740b1b62b0fca255d0ca046477c21ab9c57a5ca
    3137
    3238distname        gimp-${version}
     39
    3340use_bzip2       yes
    34 
    35 patchfiles      patch-etc-gimprc.diff \
    36                 patch-plug-ins-twain-tw_mac.c.diff
    3741
    3842depends_build   port:pkgconfig \
     
    5256                port:libwmf \
    5357                port:lcms \
    54                 port:dbus-glib \
    55                 port:py26-gtk
     58                port:dbus-glib
    5659
    57 platform 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
     60patchfiles      patch-etc-gimprc.diff \
     61                patch-plug-ins-twain-tw_mac.c.diff \
     62                patch-app-gui-ige-mac-menu.c.diff
     63
     64pre-configure {
     65    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
     66        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
     67        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
     68        if {[variant_isset quartz] && ${gtk_not_quartz}} {
     69            error "+quartz variant selected, but gtk2+x11 is installed"
     70        } elseif {[variant_isset x11] && ${gtk_not_x11}} {
     71            error "+quartz variant is not selected, but gtk2+quartz is installed"
     72        }
     73    } else {
     74            error "Cannot find gdkconfig.h"
    6175    }
    6276}
    6377
    64 use_parallel_build  yes
    65 configure.python    ${prefix}/bin/python2.6
    66 set python_framework ${frameworks_dir}/Python.framework/Versions/2.6
    67 configure.pkg_config_path ${python_framework}/lib/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig
    68 configure.env   PATH=${python_framework}/bin:$env(PATH)
    6978configure.args  --build=${configure.build_arch}-apple-${os.platform}${os.version} \
    7079                --enable-mp \
    7180                --with-pdbgen \
    7281                --with-x \
    73                 --without-hal \
    7482                --without-alsa \
     83                --without-gudev \
    7584                --without-gvfs \
    7685                --without-webkit \
     
    7887                --enable-gimp-console
    7988
     89variant python25 conflicts no_python python26 python27 description {Use python 2.5} {
     90    configure.python          ${prefix}/bin/python2.5
     91    depends_lib-append        port:py25-gtk
     92    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.5
     93    configure.pkg_config_path ${python_framework}/lib/pkgconfig
     94    configure.env             PATH=${python_framework}/bin:$env(PATH)
     95}
     96
     97variant python26 conflicts no_python python25 python27 description {Use python 2.6} {
     98    configure.python          ${prefix}/bin/python2.6
     99    depends_lib-append        port:py26-gtk
     100    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
     101    configure.pkg_config_path ${python_framework}/lib/pkgconfig
     102    configure.env             PATH=${python_framework}/bin:$env(PATH)
     103}
     104
     105variant python27 conflicts no_python python25 python26 description {Use python 2.7} {
     106    configure.python          ${prefix}/bin/python2.7
     107    depends_lib-append        port:py27-gtk
     108    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
     109    configure.pkg_config_path ${python_framework}/lib/pkgconfig
     110    configure.env             PATH=${python_framework}/bin:$env(PATH)
     111}
     112
    80113variant no_python description {Disable Python scripts and filters} {
    81     depends_lib-delete      port:py26-gtk
    82114    configure.args-append   --disable-python
     115}
     116
     117if {![variant_isset no_python] && ![variant_isset python25] && ![variant_isset python26]} {
     118    default_variants +python27
    83119}
    84120
     
    101137}
    102138
    103 if {[variant_isset no_x11]} {
    104     default_variants    +quartz
    105 }
    106 
    107 if {![variant_isset quartz]} {
    108     default_variants    +x11
    109 }
    110 
    111 pre-fetch {
    112     if {![variant_isset quartz] && ![variant_isset x11]} {
    113         error "Either +x11 or +quartz is required"
    114     }
    115 }
    116 
    117 pre-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 
    131 variant quartz requires no_x11 conflicts x11 {
     139variant quartz {
     140    configure.args-delete --with-x
     141    configure.args-append --without-x
    132142    configure.ldflags-append   -framework Carbon
    133143}
    134144
    135 variant x11 conflicts quartz description {Enable rendering in X11} {
    136 }
    137 
    138 variant no_x11 {
    139     configure.args-delete --with-x
    140     configure.args-append --without-x
    141 }
     145default_variants +debug
    142146
    143147livecheck.type  regex
    144 livecheck.url   ftp://ftp.gtk.org/pub/gimp/v${branch}/
     148livecheck.url   ftp://ftp.gimp.org/pub/gimp/v${branch}/
    145149livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"
  • trunk/dports/graphics/gimp2-devel/files/patch-etc-gimprc.diff

    r70258 r84366  
    1 --- etc/gimprc.orig     2010-06-21 23:11:43.000000000 -0700
    2 +++ etc/gimprc  2010-08-02 10:24:40.000000000 -0700
    3 @@ -691,12 +691,16 @@
     1--- etc/gimprc.orig     2011-08-21 10:09:47.000000000 -0700
     2+++ etc/gimprc  2011-09-05 09:16:36.000000000 -0700
     3@@ -675,12 +675,16 @@
    44 #
    55 # (help-browser gimp)
     
    1818 # 'user-manual-online' is enabled.  This is a string value.
    1919 #
    20 @@ -708,6 +712,8 @@
     20@@ -692,6 +696,8 @@
    2121 #
    2222 # (dock-window-hint utility)
Note: See TracChangeset for help on using the changeset viewer.