Ticket #18672: Portfile.2

File Portfile.2, 2.6 KB (added by acho@…, 16 years ago)

explicitly get externals + additional port deps.

Line 
1# $Id$
2
3PortSystem          1.0
4
5name                mplayer-devel
6version             29181
7revision            0
8categories          multimedia
9maintainers         ecronin openmaintainer
10platforms           darwin
11
12description         MPlayer is a movie player which runs on many systems.
13long_description    ${description} It plays most MPEG/VOB, AVI, Ogg/OGM, \
14                    VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, \
15                    NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, \
16                    supported by many native, XAnim, and Win32 DLL codecs. \
17                    You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV \
18                    and even H.264 movies.
19homepage            http://www.mplayerhq.hu/
20
21livecheck.check     none
22
23depends_build       port:pkgconfig port:yasm
24depends_lib \
25    path:include/gif_lib.h:giflib \
26    port:jpeg \
27    port:libiconv \
28    port:libmng \
29    port:libpng \
30    port:live555 \
31    port:lzo2 \
32    port:ncurses \
33    port:x264 \
34    port:lame \
35    port:zlib \
36    port:fontconfig \
37    port:freetype \
38    port:bzip2 \
39    port:libmad \
40    port:speex \
41    port:libtheora \
42    port:libogg \
43    port:liboil \
44    port:dirac \
45    port:schroedinger \
46    port:faac \
47    port:xorg-libX11
48
49fetch.type          svn
50svn.tag             ${version}
51svn.url             svn://svn.mplayerhq.hu/mplayer/trunk
52worksrcdir          trunk
53
54fetch {
55    system "svn export -r${version} --ignore-externals svn://svn.mplayerhq.hu/mplayer/trunk ${worksrcpath}/"
56    system "svn export -r1167 svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src ${worksrcpath}/libdvdnav/"
57    system "svn export -r1167 svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src ${worksrcpath}/libdvdread4/"
58    system "svn export -r18522 svn://svn.ffmpeg.org/ffmpeg/trunk/libavcodec ${worksrcpath}/libavcodec/"
59    system "svn export -r18522 svn://svn.ffmpeg.org/ffmpeg/trunk/libavutil ${worksrcpath}/libavutil/"
60    system "svn export -r18522 svn://svn.ffmpeg.org/ffmpeg/trunk/libavformat ${worksrcpath}/libavformat/"
61    system "svn export -r18522 svn://svn.ffmpeg.org/ffmpeg/trunk/libpostproc ${worksrcpath}/libpostproc/"
62}
63# Do not use the following environment variables, otherwise the build phase
64# will fail.
65configure.cflags    {}
66configure.cppflags  {}
67configure.cxxflags  {}
68configure.ldflags   {}
69
70# Do not use pipes, otherwise the build phase will fail.
71configure.pipe      no
72
73configure.args \
74    --disable-smb
75
76variant samba description {Enable Samba support} {
77    depends_lib-append port:samba3
78
79    configure.args-append --enable-smb
80    configure.args-delete --disable-smb
81}