Ticket #18672: Portfile

File Portfile, 1.7 KB (added by lperry (Perry Lee), 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                mplayer-devel
6version             28755
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
34fetch.type          svn
35svn.tag             ${version}
36svn.url             svn://svn.mplayerhq.hu/mplayer/trunk
37worksrcdir          trunk
38
39# Do not use the following environment variables, otherwise the build phase
40# will fail.
41configure.cflags    {}
42configure.cppflags  {}
43configure.cxxflags  {}
44configure.ldflags   {}
45
46# Do not use pipes, otherwise the build phase will fail.
47configure.pipe      no
48
49configure.args \
50    --disable-smb \
51    --with-extraincdir=${prefix}/lib/live \
52    --with-extralibdir=${prefix}lib/samba3
53
54variant samba description {Enable Samba support} {
55    depends_lib-append port:samba3
56
57    configure.args-append --enable-smb
58    configure.args-delete --disable-smb
59}