# -*- 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 active_variants 1.1
set git_commit 6c7ce40a4f74fe08b1607465758c658006b4b12f
version 2.7.0-${git_date}
maintainers {devans @dbevans}
description The Gimp Animation Package.
GIMP-GAP, the GIMP Animation Package, is a collection of plug-ins to \
extend GIMP with capabilities to edit and create animations as \
sequences of single frames. This is the unstable development branch \
leading up to a stable version 2.8.
homepage http://www.gimp.org/
master_sites https://git.gnome.org/browse/${git_name}/snapshot/
distname ${git_name}-${git_commit}
checksums rmd160 efb79db1b5527ecbe52aca6b0d79b429132fdfa2 \
sha256 adbe097ce6089f7b595014b617ce448f2a3355cce264028794be15093139ee90 \
system "cd ${worksrcpath}/extern_libs && gzip -dc ffmpeg.tar.gz | tar -xf -"
patchfiles patch-extern_libs-configure_options_ffmpeg.txt.diff \
patch-automake-1.13.diff \
patch-gap_colordiff.c.diff
set ffmpeg_extras "--cc=${configure.cc} --arch=${build_arch}"
reinplace "s|MP_FFMPEG_EXTRAS|${ffmpeg_extras}|" ${worksrcpath}/extern_libs/configure_options_ffmpeg.txt
depends_build port:pkgconfig \
depends_lib path:lib/pkgconfig/gimp-2.0.pc:gimp2 \
# make mplayer-devel the default as MPlayer doesn't build on Snow Leopard
# sox is required for audio resampling features
# ufraw is required for processing of raw image sequences such as
# .cr2 timelapse sequences shot on a Canon EOS DSLR camera
depends_run path:bin/mplayer:mplayer-devel \
configure.cmd ./autogen.sh
configure.args --enable-audio-support-sdl \
--disable-audio-support-wavplay \
--enable-gdkpixbuf-pview \
--with-ffmpegsrcdir=${worksrcpath}/extern_libs/ffmpeg \
--with-ff-extra-cflags=-I${prefix}/include \
--with-ff-extra-ldflags=-L${prefix}/lib
foreach dir {howto reference} {
xinstall -d ${destroot}${prefix}/share/${name}/$dir