# -*- 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 PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup perl5 1.0 name gimp3-devel conflicts gimp2 gimp2-devel set git_commit 9046c758e7b82ffe39b1acb93160a0c9c15743ff set git_date 20200223 version 2.99.1-${git_date} revision 13 license GPL-3+ categories graphics maintainers {devans @dbevans} {mascguy @mascguy} 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 GTK3 based development version leading \ to a future 3.0 release based on a recent snapshot of \ git master. homepage https://gimp.org/ fetch.type git git.url --depth 3000 https://gitlab.gnome.org/GNOME/gimp.git git.branch ${git_commit} depends_build port:pkgconfig \ port:appstream-glib \ port:autoconf \ port:automake \ port:libtool \ port:intltool \ port:gtk-doc \ port:perl${perl5.major} depends_lib port:desktop-file-utils \ port:iso-codes \ path:lib/pkgconfig/babl-0.1.pc:babl-devel \ path:lib/pkgconfig/gegl-0.4.pc:gegl-devel \ port:atk \ path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \ port:glib-networking \ path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \ port:fontconfig \ port:freetype \ port:tiff \ path:include/turbojpeg.h:libjpeg-turbo \ port:zlib \ port:bzip2 \ port:ghostscript \ port:libpng \ port:libmng \ port:libheif \ port:openexr \ port:openjpeg \ port:gexiv2 \ port:aalib \ port:xpm \ path:lib/pkgconfig/librsvg-2.0.pc:librsvg \ path:lib/pkgconfig/poppler.pc:poppler \ port:curl \ port:libwmf \ port:libmypaint \ port:mypaint-brushes1 \ port:lcms2 \ port:dbus-glib \ port:libxml2 \ port:libxslt \ port:xdg-utils \ port:xorg-libXcursor \ port:xorg-libXmu \ port:xorg-libXext \ port:xorg-libXfixes depends_run port:adwaita-icon-theme # libgimpwidgets/gimpwidgetsmarshal.h can be referenced by a parallel # build before it is created use_parallel_build no # 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) # as of version 2.10.0 requires a C++14 compatible compiler to configure compiler.cxx_standard 2014 compiler.blacklist-append *gcc-3.* *gcc-4.* {clang < 700} patchfiles patch-etc-gimprc.in.diff \ patch-quartz-32bit.diff \ MYPAINT_BRUSHES_DIR.patch if {${os.platform} eq "darwin" && ${os.major} < 11} { # avoid Cursor type conflict between X11 and Quickdraw # error: typedef redefinition with different types ('struct Cursor' vs 'XID' (aka 'unsigned long')) # not an issue on 10.7 and later patchfiles-append \ patch-x11-widgets-fix.diff } post-patch { # fix pytrhon-console.py shebag to use our python3's installation path reinplace "s|#!/usr/bin/python3|#!${configure.python}|" \ ${worksrcpath}/plug-ins/python/python-console/python-console.py } configure.perl ${perl5.bin} configure.env CC_FOR_BUILD=${configure.cc} if {[vercmp $xcodeversion 4.3] < 0 && [string match "*macports*" ${configure.compiler}]} { # Xcode 4.2 fails with load commands in the newer toolchain depends_build-append port:cctools configure.env-append \ AR=${prefix}/bin/ar \ RANLIB=${prefix}/bin/ranlib } configure.cmd ./autogen.sh configure.args --build=${configure.build_arch}-apple-${os.platform}${os.version} \ --enable-mp \ --with-bug-report-url=https://guide.macports.org/#project.tickets \ --with-pdbgen \ --with-x \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --with-javascript=no \ --with-lua=no \ --disable-silent-rules \ --disable-python \ --without-alsa \ --without-gudev \ --without-webkit \ ac_cv_path_PERL=${configure.perl} # keep empty GIMP font directory # silences warning message on startup: # GIMP-Message: Some fonts failed to load: # - /opt/local/share/gimp/2.99/fonts/ destroot.keepdirs ${destroot}${prefix}/share/gimp/2.99/fonts # requires python >= 3.6.0 variant python38 description {Build with python plugin support using python 3.8} { configure.args-delete --disable-python configure.python ${prefix}/bin/python3.8 depends_lib-append port:py38-cairo \ port:py38-gobject3 set python_framework ${frameworks_dir}/Python.framework/Versions/3.8 configure.pkg_config_path ${python_framework}/lib/pkgconfig configure.env-append PATH=${python_framework}/bin:$env(PATH) } if {![variant_isset python38]} { default_variants +python38 } 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 } # 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-3.0 -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" } livecheck.type none