-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfile.txt
More file actions
105 lines (85 loc) · 3.62 KB
/
portfile.txt
File metadata and controls
105 lines (85 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# -*- 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
# $Id: Portfile 117382 2014-02-24 20:21:32Z devans@macports.org $
PortSystem 1.0
name gimp-gap
conflicts gimp-gap-devel
version 2.6.0
revision 7
license GPL-2+
set branch [join [lrange [split ${version} .] 0 1] .]
set ffmpeg-vers 0.5.6
set ffmpeg-name ffmpeg-${ffmpeg-vers}
categories graphics
maintainers devans
description The Gimp Animation Package.
long_description \
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.
universal_variant no
use_parallel_build no
homepage http://www.gimp.org/
platforms darwin
master_sites gimp:gimp/plug-ins/v${branch}/gap/:gap \
http://www.ffmpeg.org/releases/:ffmpeg
use_bzip2 yes
distfiles ${distname}${extract.suffix}:gap \
${ffmpeg-name}${extract.suffix}:ffmpeg
checksums ${distname}${extract.suffix} \
md5 249ed829de8b78675c0fe4ef4212089f \
sha1 5ce9b73de4c992bd2a527197847033e15eb2c346 \
rmd160 2121eae37bd02f8e784cd377d1a48515221a97e8 \
${ffmpeg-name}${extract.suffix} \
md5 4dc369e19df67f0e67a87a389a7dafbd \
sha1 1187f2d7dd45c1f72a0eadd47058568b94349a00 \
rmd160 814720c3adbb85053e528783a11b18904dc87f40
patch.dir ${workpath}
patchfiles patch-extern_libs-configure_options_ffmpeg.txt.diff \
patch-extern_libs-Makefile.in.diff \
patch-ffmpeg-Makefile.diff \
patch-configure-ccache.diff
post-patch {
if {${build_arch} ne ""} {
set ffmpeg_extras "--cc=${configure.cc} --arch=${build_arch}"
} else {
set ffmpeg_extras "--cc=${configure.cc}"
}
reinplace "s|MP_FFMPEG_EXTRAS|${ffmpeg_extras}|" ${worksrcpath}/extern_libs/configure_options_ffmpeg.txt
}
depends_build port:pkgconfig \
port:intltool \
port:gmake \
port:yasm
depends_lib path:lib/pkgconfig/gimp-2.0.pc:gimp2 \
port:lame \
port:XviD \
port:bzip2 \
port:zlib
depends_run path:bin/mplayer:MPlayer
# reconfigure with our intltool.m4
use_autoreconf yes
autoreconf.args -fvi
# TODO: Fix the actual bug. This just masks the problem to build successfully
if {[string match *clang* ${configure.compiler}]} {
configure.cflags-append -Wno-return-type
}
configure.args --disable-audio-support \
--disable-libmpeg3 \
--disable-ff-libfaac \
--disable-ff-libfaad \
--disable-ff-libx264 \
--enable-gdkpixbuf-pview \
--with-ffmpegsrcdir=${workpath}/${ffmpeg-name} \
--with-ff-extra-cflags=-I${prefix}/include \
--with-ff-extra-ldflags=-L${prefix}/lib
post-destroot {
foreach dir {howto reference} {
xinstall -d ${destroot}${prefix}/share/${name}/$dir
foreach txt [glob -d ${worksrcpath}/docs/$dir/txt *.txt] {
xinstall -m 644 $txt ${destroot}${prefix}/share/${name}/$dir
}
}
}
livecheck.type regex
livecheck.url ftp://ftp.gtk.org/pub/gimp/plug-ins/v${branch}/gap/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"