# -*- 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 version 2.6.2 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. set branch [join [lrange [split ${version} .] 0 1] .] master_sites ftp://ftp.gimp.org/pub/gimp/v${branch}/ \ ftp://ftp.gtk.org/pub/gimp/v${branch}/ \ http://ftp.gtk.org/pub/gimp/v${branch}/ \ ftp://ftp.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/v${branch}/ \ http://www.mirrorservice.org/sites/ftp.gimp.org/pub/gimp/v${branch}/ \ http://gimp.mirrors.hoobly.com/gimp/v${branch}/ \ http://mirror.umoss.org/gimp/gimp/v${branch}/ \ ftp://gd.tuwien.ac.at/graphics/gimp/gimp/v${branch}/ \ ftp://ftp.funet.fi/pub/sci/graphics/packages/gimp/v${branch}/ \ http://ftp.iut-bm.univ-fcomte.fr/gimp/gimp/v${branch}/ \ http://gimp.krecio.pl/gimp/v${branch}/ \ ftp://ftp.gwdg.de/pub/misc/grafik/gimp/gimp/v${branch}/ \ http://ftp.gwdg.de/pub/misc/grafik/gimp/gimp/v${branch}/ \ http://mirrors.zerg.biz/gimp/v${branch}/ \ ftp://ftp.esat.net/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \ http://ftp.esat.net/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \ ftp://ftp.heanet.ie/mirrors/ftp.gimp.org/pub/gimp/gimp/v${branch}/ \ http://ftp.heanet.ie/mirrors/ftp.gimp.org/pub/gimp/gimp/v${branch}/ \ ftp://ftp.u-aizu.ac.jp/pub/graphics/tools/gimp/gimp/v${branch}/ \ ftp://ftp.ring.gr.jp/pub/graphics/gimp/v${branch}/ \ http://www.ring.gr.jp/pub/graphics/gimp/v${branch}/ \ ftp://ftp.snt.utwente.nl/pub/software/gimp/gimp/v${branch}/ \ http://ftp.snt.utwente.nl/pub/software/gimp/gimp/v${branch}/ \ ftp://sunsite.uio.no/pub/gimp/v${branch}/ \ ftp://sunsite.icm.edu.pl/pub/graphics/gimp/v${branch}/ \ ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \ http://piotrkosoft.net/pub/mirrors/ftp.gimp.org/pub/gimp/v${branch}/ \ ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.gimp.org/v${branch}/ \ http://ftp.iasi.roedu.net/mirrors/ftp.gimp.org/v${branch}/ \ ftp://ftp.sai.msu.su/pub/unix/graphics/gimp/mirror/gimp/v${branch}/ \ ftp://ftp.is.co.za/mirror/ftp.gimp.org/gimp/v${branch}/ \ http://sunsite.rediris.es/mirror/gimp/v${branch}/ \ ftp://ftp.rediris.es/mirror/gimp/v${branch}/ \ ftp://ftp.acc.umu.se/pub/gimp/gimp/v${branch}/ \ ftp://ftp.sunet.se/pub/gnu/gimp/v${branch}/ \ http://ftp.sunet.se/pub/gnu/gimp/v${branch}/ checksums md5 3664d12f26447c0edc3f611987b9bf2d \ sha1 b6ae56413263d8ea3d4a26af74960eb406ed86fa \ rmd160 baba90572478200f9422d447437c6f669140fc03 distname gimp-${version} use_bzip2 yes patchfiles patch-etc-gimprc.diff depends_lib port:gegl \ port:aalib \ port:curl \ port:libart_lgpl \ port:libexif \ port:libgnomeui \ port:libmng \ port:librsvg \ port:libwmf \ port:p5-xml-parser \ port:poppler \ port:py25-gtk platform darwin 7 { # poppler currently can't be built on 10.3 (see #15603) depends_lib-delete port:poppler configure.args-append --without-poppler } 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.5 configure.args --enable-mp \ --with-pdbgen \ --with-x \ --without-dbus \ --without-hal \ --without-alsa \ --without-gvfs \ --without-webkit variant no_python description {Disable Python scripts and filters} { depends_lib-delete port:py25-gtk configure.args-append --disable-python } variant dbus description {Enable dbus support} { depends_lib-append port:dbus-glib configure.args-delete --without-dbus } variant gvfs description {Enable gvfs support} { depends_lib-append port:gvfs configure.args-delete --without-gvfs } variant help_browser description {Enable Gimp help browser} { depends_lib-append port:webkit-gtk configure.args-delete --without-webkit } 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 description {Enable Quartz rendering} { configure.ldflags-append -framework Carbon } variant x11 conflicts quartz description {Enable rendering in X11 (default)} { } variant no_x11 description {Build without X Windows support} { configure.args-delete --with-x configure.args-append --without-x } livecheck.check regex livecheck.url http://www.gimp.org/downloads/ livecheck.regex "gimp-(${branch}(?:\\.\\d+)*)${extract.suffix}"