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

Last change on this file since 117346 was 117346, checked in by devans@…, 7 years ago

gimp-gap-devel: update to latest upstream gap-2-8 branch, bug fixes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 117346 2014-02-23 06:09:49Z devans@macports.org $
3
4PortSystem      1.0
5
6name            gimp-gap-devel
7conflicts       gimp-gap
8set git_name    gimp-gap
9set git_commit  c032805e55af814e0af9f744cf9906fcf602de98
10set git_date    20140215
11version         2.7.0-${git_date}
12license         GPL-2+
13categories      graphics
14maintainers     devans
15
16description     The Gimp Animation Package.
17
18long_description \
19                GIMP-GAP, the GIMP Animation Package, is a collection of plug-ins to \
20                extend GIMP with capabilities to edit and create animations as \
21                sequences of single frames. This is the unstable development branch \
22                leading up to a stable version 2.8.
23
24universal_variant  no
25use_parallel_build no
26configure.ccache   no
27
28homepage        http://www.gimp.org/
29platforms       darwin
30
31master_sites    https://git.gnome.org/browse/${git_name}/snapshot/
32
33distname        ${git_name}-${git_commit}
34
35checksums       rmd160  a30091253a0200e5eec21ddd0e1e3ec5c446f616 \
36                sha256  11560edbab805fee3a4fe2e57b60ca32c505e0a12d38e42909e165f647b4e2b4
37
38pre-patch       {
39                    system "cd ${worksrcpath}/extern_libs && gzip -dc ffmpeg.tar.gz | tar -xf -"
40                }
41
42patchfiles      patch-extern_libs-configure_options_ffmpeg.txt.diff \
43                patch-autogen.sh.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-core \
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
77# TODO: Fix the actual bug.  This just masks the problem to build successfully
78if {[string match *clang* ${configure.compiler}]} {
79    configure.cflags-append -Wno-return-type
80}
81
82configure.cmd    ./autogen.sh
83
84configure.args  --enable-audio-support-sdl \
85                --disable-audio-support-wavplay \
86                --disable-libmpeg3 \
87                --disable-ff-libfaac \
88                --disable-ff-libx264 \
89                --enable-gdkpixbuf-pview \
90                --with-ffmpegsrcdir=${worksrcpath}/extern_libs/ffmpeg \
91                --with-ff-extra-cflags=-I${prefix}/include \
92                --with-ff-extra-ldflags=-L${prefix}/lib
93
94post-destroot {
95    foreach dir {howto reference} {
96        xinstall -d ${destroot}${prefix}/share/${name}/$dir
97        foreach txt [glob -d ${worksrcpath}/docs/$dir/txt *.txt] {
98            xinstall -m 644 $txt ${destroot}${prefix}/share/${name}/$dir
99        }
100    }
101}
102
103livecheck.type  none
Note: See TracBrowser for help on using the repository browser.