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

Last change on this file since 120912 was 120912, checked in by ciserlohn@…, 6 years ago

git, git-core: update to version 2.0.0; rename to git (closes #37279) and update all dependent ports

  • 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 120912 2014-06-11 13:10:52Z ciserlohn@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}
12revision        1
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  a30091253a0200e5eec21ddd0e1e3ec5c446f616 \
37                sha256  11560edbab805fee3a4fe2e57b60ca32c505e0a12d38e42909e165f647b4e2b4
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-autogen.sh.diff \
45                patch-automake-1.13.diff
46
47post-patch     {
48                   set ffmpeg_extras "--cc=${configure.cc} --arch=${build_arch}"
49                   reinplace "s|MP_FFMPEG_EXTRAS|${ffmpeg_extras}|" ${worksrcpath}/extern_libs/configure_options_ffmpeg.txt
50               }
51
52depends_build   port:git \
53                port:pkgconfig \
54                port:autoconf \
55                port:automake \
56                port:intltool \
57                port:gmake \
58                port:yasm
59
60depends_lib     path:lib/pkgconfig/gimp-2.0.pc:gimp2 \
61                port:libsdl \
62                port:lame \
63                port:XviD \
64                port:bzip2 \
65                port:zlib
66
67#
68# make mplayer-devel the default as MPlayer doesn't build on Snow Leopard
69# sox is required for audio resampling features
70# ufraw is required for processing of raw image sequences such as
71# .cr2 timelapse sequences shot on a Canon EOS DSLR camera
72#
73
74depends_run     path:bin/mplayer:mplayer-devel \
75                port:sox \
76                port:ufraw
77
78# TODO: Fix the actual bug.  This just masks the problem to build successfully
79if {[string match *clang* ${configure.compiler}]} {
80    configure.cflags-append -Wno-return-type
81}
82
83configure.cmd    ./autogen.sh
84
85configure.args  --enable-audio-support-sdl \
86                --disable-audio-support-wavplay \
87                --disable-libmpeg3 \
88                --disable-ff-libfaac \
89                --disable-ff-libx264 \
90                --enable-gdkpixbuf-pview \
91                --with-ffmpegsrcdir=${worksrcpath}/extern_libs/ffmpeg \
92                --with-ff-extra-cflags=-I${prefix}/include \
93                --with-ff-extra-ldflags=-L${prefix}/lib
94
95post-destroot {
96    foreach dir {howto reference} {
97        xinstall -d ${destroot}${prefix}/share/${name}/$dir
98        foreach txt [glob -d ${worksrcpath}/docs/$dir/txt *.txt] {
99            xinstall -m 644 $txt ${destroot}${prefix}/share/${name}/$dir
100        }
101    }
102}
103
104livecheck.type  none
Note: See TracBrowser for help on using the repository browser.