Ticket #37080: Portfile

File Portfile, 4.4 KB (added by thijsvermeir@…, 11 years ago)
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 98028 2012-09-23 09:46:40Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# https://bugzilla.gnome.org/show_bug.cgi?id=636134
7PortGroup   muniversal 1.0
8
9name            gst-plugins-bad
10version         1.0.3
11revision        1
12description         A set of plug-ins for GStreamer that need more quality.
13long_description    \
14    GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared \
15    to the rest. They might be close to being good quality, but they're missing \
16    something - be it a good code review, some documentation, a set of tests, a \
17    real live maintainer, or some actual wide use.
18license             GPL LGPL
19maintainers         rmstonecipher openmaintainer
20categories          gnome
21platforms           darwin
22homepage            http://gstreamer.freedesktop.org/modules/${name}.html
23master_sites        http://gstreamer.freedesktop.org/src/${name}/
24use_xz              yes
25
26checksums           rmd160  2ce60a28424f7d32e2c81dfc550cc9657d1d9bad \
27                    sha256  2eae746be0b4c7fa2f1e057c91bd36940d7c25593ab612b707904461360031f0
28
29depends_build port:pkgconfig
30depends_lib port:gst-plugins-base \
31            port:XviD \
32            port:dirac \
33            port:exempi \
34            port:faac \
35            port:faad2 \
36            port:jasper \
37            port:libdc1394 \
38            port:libdca \
39            port:libexif \
40            port:libglade2 \
41            port:libmms \
42            port:libmodplug \
43            port:libmpcdec \
44            port:libmusicbrainz2 \
45            port:libvpx \
46            port:soundtouch \
47            port:neon \
48            port:schroedinger
49
50#
51# could depend on tons for multimedia stuff +variants
52# the following ports are available but don't configure
53# and/or build correctly
54#
55# port:mjpegtools (mpeg2enc mplex build fails) need to disable mpeg2enc mplex explicitly in case mjpegtools is installed
56# path:lib/pkgconfig/sdl.pc:libsdl (builds but sdlvideosink is broken)
57# port:slv2 (builds but lv2 plugin fails to load and slv2 is not universal) disable lv2 explicitly in case slv2 is installed
58# port:swfdec (configure wants pkg-config swfdec-0.3, we have swfdec-0.8)
59#
60
61configure.args              --disable-apple_media \
62                            --disable-silent-rules \
63                            --disable-quicktime \
64                            --disable-mpeg2enc \
65                            --disable-mplex \
66                            --disable-lv2 \
67                            --disable-jack \
68                            --disable-sdltest \
69                            --disable-opencv \
70                            --enable-experimental \
71                            --enable-static
72
73#
74# port:soundtouch (fails on autoreconf on darwin 8 & 9, see #27533) disable soundtouch on these platforms
75#
76
77if { ${os.major} < 10 } {
78        depends_lib-delete port:soundtouch
79        configure.args-append --disable-soundtouch
80}
81
82configure.cppflags-append   "-L${prefix}/lib"
83configure.cflags-append     -funroll-loops -fstrict-aliasing
84configure.env-append        "HAVE_CXX=yes"
85
86patchfiles  modplug.patch
87
88post-patch {
89    reinplace "s|-flat_namespace -undefined suppress|-undefined define_a_way|g" \
90        ${worksrcpath}/configure
91    reinplace "s|libSoundTouch|soundtouch-1.0|g" \
92        ${worksrcpath}/configure
93}
94
95variant no_x11 {
96        configure.args-append --disable-examples
97}
98
99variant jack description {enable use of jack backend} {
100    depends_lib-append      port:jack
101    configure.args-delete   --disable-jack
102}
103
104if {[variant_isset universal]} {
105    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
106    set merger_host(i386) i686-apple-${os.platform}${os.major}
107    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
108    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
109} elseif {${build_arch} == "i386"} {
110    configure.args-append \
111        --host=i686-apple-${os.platform}${os.major} \
112        --build=i686-apple-${os.platform}${os.major}
113} elseif {${build_arch} == "x86_64"} {
114    configure.args-append \
115        --host=${build_arch}-apple-${os.platform}${os.major} \
116        --build=${build_arch}-apple-${os.platform}${os.major}
117}
118
119livecheck.type  regex
120livecheck.url   ${master_sites}
121livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"