source: trunk/dports/graphics/gimp-gap-devel/Portfile

Last change on this file was 142975, checked in by devans@…, 2 years ago

gimp-gap-devel: update to git branch gap-2-8 as of 20151108, configuration, add +quartz variant and use active_variants to check for correct flavor of gimp2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- 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
2# $Id: Portfile 142975 2015-11-30 18:54:27Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       active_variants 1.1
6
7name            gimp-gap-devel
8conflicts       gimp-gap
9set git_name    gimp-gap
10set git_commit  dc902cc25d103e5602a114f69a6932587cf3ea52
11set git_date    20151108
12version         2.7.0-${git_date}
13license         GPL-2+
14categories      graphics
15maintainers     devans
16
17description     The Gimp Animation Package.
18
19long_description \
20                GIMP-GAP, the GIMP Animation Package, is a collection of plug-ins to \
21                extend GIMP with capabilities to edit and create animations as \
22                sequences of single frames. This is the unstable development branch \
23                leading up to a stable version 2.8.
24
25universal_variant  no
26use_parallel_build no
27configure.ccache   no
28
29homepage        http://www.gimp.org/
30platforms       darwin
31
32master_sites    https://git.gnome.org/browse/${git_name}/snapshot/
33
34distname        ${git_name}-${git_commit}
35
36checksums       rmd160  a400caec0a761d2fc74f6dc6f30707d6b8ad1d21 \
37                sha256  9e628bd896b7a33c7445ef32d46a212817877e43b5f89a91eb96b24e118b6cfb
38
39pre-patch       {
40                    system "cd ${worksrcpath}/extern_libs && gzip -dc ffmpeg.tar.gz | tar -xf -"
41                }
42
43patchfiles      patch-extern_libs-configure_options_ffmpeg.txt.diff \
44                patch-automake-1.13.diff
45
46post-patch     {
47                   set ffmpeg_extras "--cc=${configure.cc} --arch=${build_arch}"
48                   reinplace "s|MP_FFMPEG_EXTRAS|${ffmpeg_extras}|" ${worksrcpath}/extern_libs/configure_options_ffmpeg.txt
49               }
50
51depends_build   port:git \
52                port:pkgconfig \
53                port:autoconf \
54                port:automake \
55                port:intltool \
56                port:gmake \
57                port:yasm
58
59depends_lib     path:lib/pkgconfig/gimp-2.0.pc:gimp2 \
60                port:libsdl \
61                port:lame \
62                port:XviD \
63                port:bzip2 \
64                port:zlib
65
66#
67# make mplayer-devel the default as MPlayer doesn't build on Snow Leopard
68# sox is required for audio resampling features
69# ufraw is required for processing of raw image sequences such as
70# .cr2 timelapse sequences shot on a Canon EOS DSLR camera
71#
72
73depends_run     path:bin/mplayer:mplayer-devel \
74                port:sox \
75                port:ufraw
76
77configure.cmd    ./autogen.sh
78
79configure.args  --enable-audio-support-sdl \
80                --disable-audio-support-wavplay \
81                --disable-libmpeg3 \
82                --disable-ff-libfaac \
83                --disable-ff-libx264 \
84                --enable-gdkpixbuf-pview \
85                --with-ffmpegsrcdir=${worksrcpath}/extern_libs/ffmpeg \
86                --with-ff-extra-cflags=-I${prefix}/include \
87                --with-ff-extra-ldflags=-L${prefix}/lib
88
89post-destroot {
90    foreach dir {howto reference} {
91        xinstall -d ${destroot}${prefix}/share/${name}/$dir
92        foreach txt [glob -d ${worksrcpath}/docs/$dir/txt *.txt] {
93            xinstall -m 644 $txt ${destroot}${prefix}/share/${name}/$dir
94        }
95    }
96}
97
98variant quartz {}
99
100if {[variant_isset quartz]} {
101    require_active_variants gimp2 quartz
102} else {
103    require_active_variants gimp2 "" quartz
104}
105
106livecheck.type  none
Note: See TracBrowser for help on using the repository browser.