# -*- 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
PortGroup compiler_blacklist_versions 1.0
PortGroup gobject_introspection 1.0
set git_commit 4b45d2842c16779a70541b8fad1a0f9963cf0320
version 0.4.13-${git_date}
maintainers {devans @dbevans}
description GEGL is a graph based image processing framework.
long_description GEGL is a graph based image processing framework offering image processing and \
compositing on large images. GEGL is suitable for projects ranging from small \
one-off projects to interactive applications. This is the development version \
based on a recent snapshot of upstream git master.
homepage http://gegl.org/
master_sites https://gitlab.gnome.org/GNOME/${git_name}/-/archive/${git_commit}/
distname ${git_name}-${git_commit}
checksums rmd160 c59a4e783dbde73acbfc1e900a8874ae8de92868 \
sha256 24b2d92b56197954896d36cfbf4119703d62ce603dfca5138f2884c66da4863a \
depends_build port:pkgconfig \
depends_lib port:babl-devel \
path:lib/libavcodec.dylib:ffmpeg \
port:SuiteSparse_UMFPACK \
patchfiles patch-configure.ac.diff
# http://trac.macports.org/ticket/35148
reinplace "s|OpenGL/CGLDevice.h|OpenGL/CGLTypes.h|" ${worksrcpath}/gegl/opencl/cl_gl.h
gobject_introspection yes
# blacklist compilers that do not support C11 (redefinition of typedef 'GeglDownscale2x2Fun' in gegl-algorithms.h at line 51)
# tweak gcc blacklisting for 10.5 ppc
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 300}
configure.python ${prefix}/bin/python2.7
configure.args --disable-docs \
# use version specific binary suffix to avoid conflict with gegl, gegl-0.3
foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {