# -*- 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 conflicts gimp2 gimp2-devel set git_name gimp set git_commit fc73b3249d8b223bfa0a0434ea18d2c5b3bc57b8 set git_date 20160330 version 2.99.0-${git_date} revision 3 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 daf2b0319f58753bc7e3e10d520d941d076755b4 \ sha256 4a94d30de01e46177ea66bb79a36f860e0d8f9220431df082f25464459a8e8a0 depends_build port:pkgconfig \ port:intltool \ port:gtk-doc \ port:autoconf \ port:automake \ port:libtool 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:openexr \ port:gexiv2 \ port:aalib \ port:xpm \ port:librsvg \ port:poppler \ port:curl \ port:libwmf \ port:jasper \ path:lib/pkgconfig/libmypaint.pc:MyPaint-devel \ port:lcms2 \ port:dbus-glib \ port:libxml2 \ port:libxslt \ port:xorg-libXcursor \ port:xorg-libXmu \ port:xorg-libXext \ port:xorg-libXfixes # gcc-4.2 5493 and 5666.3_13: gimpcpuaccel.c:180: error: can't find a register in class 'BREG' while reloading 'asm' # redefinition of typedef is invalid in C [-Wtypedef-redefinition] (#50329) compiler.blacklist *gcc* {clang < 300} patchfiles patch-etc-gimprc.diff \ patch-plug-ins-common-web-browser.c.diff 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 \ --disable-python \ --without-alsa \ --without-gudev \ --without-webkit # --without-mac-twain: # Leopard's 64bit Carbon is missing QuitApplicationEventLoop # It doesn't build any more anyway: # https://trac.macports.org/ticket/35168 configure.args-append \ --without-mac-twain variant python27 description {Build with python plugin support using python 2.7} { configure.args-delete --disable-python 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 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-gtk3 configure.args-delete --with-x \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib configure.args-append --without-x } # # set default variants # default_variants +python27 # create unversioned symbolic link to versioned executable for compatibility with gimp-app post-destroot { ln -s ${prefix}/bin/gimp-2.99 ${destroot}${prefix}/bin/gimp } 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