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 99890 2012-11-21 02:59:43Z rmstonecipher@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name mplayer2 |
---|
7 | epoch 3 |
---|
8 | categories multimedia |
---|
9 | platforms darwin |
---|
10 | license Restrictive |
---|
11 | maintainers cal openmaintainer |
---|
12 | description mplayer2 is an advanced general-purpose video player. A fork of the original MPlayer project, it contains significant \ |
---|
13 | further development and supports a number of features not available in other Unix players. \ |
---|
14 | \ |
---|
15 | this port is dirty fix for missing cdio/da.h file |
---|
16 | long_description ${description} |
---|
17 | |
---|
18 | homepage http://www.mplayer2.org/ |
---|
19 | version 2.0-20121108 |
---|
20 | fetch.type git |
---|
21 | git.url git://git.mplayer2.org/mplayer2.git |
---|
22 | git.branch b5349bb946d481e0f74449960b8f81839b47bd3c |
---|
23 | |
---|
24 | # disable livecheck, because it seems upstream isn't going to do any releases |
---|
25 | livecheck.type none |
---|
26 | |
---|
27 | conflicts MPlayer mplayer-devel |
---|
28 | |
---|
29 | depends_build-append port:pkgconfig \ |
---|
30 | port:yasm \ |
---|
31 | port:autoconf \ |
---|
32 | port:python32 \ |
---|
33 | port:py27-docutils |
---|
34 | |
---|
35 | depends_lib-append path:lib/pkgconfig/sdl.pc:libsdl \ |
---|
36 | path:lib/libavcodec.dylib:ffmpeg \ |
---|
37 | port:XviD \ |
---|
38 | port:a52dec \ |
---|
39 | port:enca \ |
---|
40 | port:faad2 \ |
---|
41 | port:fontconfig \ |
---|
42 | port:freetype \ |
---|
43 | port:fribidi \ |
---|
44 | port:gettext \ |
---|
45 | port:jpeg \ |
---|
46 | port:lame \ |
---|
47 | port:lcms2 \ |
---|
48 | port:libass \ |
---|
49 | port:libdca \ |
---|
50 | port:libdv \ |
---|
51 | port:libdvdnav \ |
---|
52 | port:libdvdread \ |
---|
53 | port:libiconv \ |
---|
54 | port:libmad \ |
---|
55 | port:libmng \ |
---|
56 | port:libogg \ |
---|
57 | port:libpng \ |
---|
58 | port:libquvi \ |
---|
59 | port:libtheora \ |
---|
60 | port:libvorbis \ |
---|
61 | port:mesa \ |
---|
62 | port:ncurses \ |
---|
63 | port:speex \ |
---|
64 | port:zlib |
---|
65 | |
---|
66 | universal_variant no |
---|
67 | |
---|
68 | patchfiles patch-Makefile.diff |
---|
69 | |
---|
70 | post-patch { |
---|
71 | reinplace "s|#!/usr/bin/env python3|#!$prefix/bin/python3.2|g" \ |
---|
72 | ${worksrcpath}/TOOLS/file2string.py \ |
---|
73 | ${worksrcpath}/TOOLS/matroska.py \ |
---|
74 | ${worksrcpath}/TOOLS/vdpau_functions.py |
---|
75 | } |
---|
76 | |
---|
77 | configure.cppflags-append \ |
---|
78 | -I$prefix/include/freetype2 |
---|
79 | |
---|
80 | configure.args-append --enable-termcap \ |
---|
81 | --disable-termios \ |
---|
82 | --enable-iconv \ |
---|
83 | --disable-lirc \ |
---|
84 | --disable-lircc \ |
---|
85 | --disable-joystick \ |
---|
86 | --enable-apple-remote \ |
---|
87 | --disable-apple-ir \ |
---|
88 | --disable-xf86keysym \ |
---|
89 | --disable-radio \ |
---|
90 | --disable-radio-capture \ |
---|
91 | --disable-radio-v4l2 \ |
---|
92 | --disable-radio-bsdbt848 \ |
---|
93 | --disable-tv \ |
---|
94 | --disable-tv-v4l1 \ |
---|
95 | --disable-tv-v4l2 \ |
---|
96 | --disable-tv-bsdbt848 \ |
---|
97 | --disable-pvr \ |
---|
98 | --disable-rtc \ |
---|
99 | --enable-networking \ |
---|
100 | --disable-winsock2_h \ |
---|
101 | --disable-smb \ |
---|
102 | --enable-libquvi \ |
---|
103 | --enable-lcms2 \ |
---|
104 | --enable-vcd \ |
---|
105 | --disable-bluray \ |
---|
106 | --enable-dvdnav \ |
---|
107 | --enable-dvdread \ |
---|
108 | --disable-dvdread-internal \ \ |
---|
109 | --disable-libdvdcss-internal \ |
---|
110 | --disable-unrarexec \ |
---|
111 | --enable-sortsub \ |
---|
112 | --enable-enca \ |
---|
113 | --enable-macosx-finder \ |
---|
114 | --enable-macosx-bundle \ |
---|
115 | --enable-inet6 \ |
---|
116 | --enable-gethostbyname2 \ |
---|
117 | --enable-ftp \ |
---|
118 | --disable-vstream \ |
---|
119 | --enable-pthreads \ |
---|
120 | --disable-w32threads \ |
---|
121 | --disable-rpath \ |
---|
122 | --enable-libpostproc \ |
---|
123 | --disable-gif \ |
---|
124 | --enable-png \ |
---|
125 | --enable-mng \ |
---|
126 | --enable-jpeg \ |
---|
127 | --disable-win32dll \ |
---|
128 | --disable-qtx \ |
---|
129 | --disable-xanim \ |
---|
130 | --disable-real \ |
---|
131 | --enable-xvid \ |
---|
132 | --disable-libnut \ |
---|
133 | --enable-libav \ |
---|
134 | --enable-libvorbis \ |
---|
135 | --disable-tremor \ |
---|
136 | --enable-speex \ |
---|
137 | --enable-theora \ |
---|
138 | --enable-faad \ |
---|
139 | --disable-ladspa \ |
---|
140 | --disable-libbs2b \ |
---|
141 | --enable-libdv \ |
---|
142 | --disable-mpg123 \ |
---|
143 | --enable-mad \ |
---|
144 | --disable-xmms \ |
---|
145 | --enable-libdca \ |
---|
146 | --enable-liba52 \ |
---|
147 | --disable-musepack \ |
---|
148 | --enable-gl \ |
---|
149 | --enable-sdl \ |
---|
150 | --disable-caca \ |
---|
151 | --disable-direct3d \ |
---|
152 | --disable-directx \ |
---|
153 | --disable-v4l2 \ |
---|
154 | --disable-dvb \ |
---|
155 | --disable-xv \ |
---|
156 | --disable-vdpau \ |
---|
157 | --disable-vm \ |
---|
158 | --disable-xinerama \ |
---|
159 | --disable-x11 \ |
---|
160 | --disable-xshape \ |
---|
161 | --disable-xss \ |
---|
162 | --disable-directfb \ |
---|
163 | --disable-tga \ |
---|
164 | --disable-pnm \ |
---|
165 | --disable-md5sum \ |
---|
166 | --disable-yuv4mpeg \ |
---|
167 | --enable-corevideo \ |
---|
168 | --enable-cocoa \ |
---|
169 | --enable-sharedbuffer \ |
---|
170 | --disable-alsa \ |
---|
171 | --disable-ossaudio \ |
---|
172 | --disable-rsound \ |
---|
173 | --disable-pulse \ |
---|
174 | --disable-portaudio \ |
---|
175 | --disable-jack \ |
---|
176 | --disable-openal \ |
---|
177 | --enable-coreaudio \ |
---|
178 | --enable-translation \ |
---|
179 | --disable-select \ |
---|
180 | --cc=${configure.cc} \ |
---|
181 | --disable-static \ |
---|
182 | --extra-cflags=\"${configure.cppflags} ${configure.optflags} [get_canonical_archflags cc] -Wno-pointer-sign\" \ |
---|
183 | --extra-ldflags=\"${configure.ldflags} [get_canonical_archflags ld]\" \ |
---|
184 | --extra-libs=\"-liconv -lncurses -lpng -lz -lmng -lz -ljpeg -ldvdread -lfreetype -lfontconfig -lass -lfribidi -lenca -lz -lmad -lvorbis -logg -lspeex -ltheora -logg -la52 -ldca -lfaad -lavutil -lavcodec -lavformat -lswscale -lpostproc -ldv -lxvidcore -lm -ldvdnavmini -lpthread -lm -framework IOKit -framework Cocoa -framework OpenGL -framework QuartzCore -lSDLmain -lSDL -framework CoreAudio -framework AudioUnit -framework AudioToolbox -lintl -llcms2 -lquvi \" |
---|
185 | |
---|
186 | # leave out libass, as configure doesn't handle it correctly |
---|
187 | # --enable-libass \ |
---|
188 | |
---|
189 | build.target mplayer |
---|
190 | build.args-append V=1 |
---|
191 | build.env-append CC=${configure.cc} \ |
---|
192 | CPP=${configure.cpp} \ |
---|
193 | CFLAGS="${configure.optflags} [get_canonical_archflags cc]" \ |
---|
194 | CPPFLAGS="${configure.cppflags}" \ |
---|
195 | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" |
---|
196 | |
---|
197 | variant smb description {Enable Samba support} { |
---|
198 | depends_lib-append port:samba3 |
---|
199 | configure.args-delete --disable-smb |
---|
200 | configure.args-append --enable-smb |
---|
201 | } |
---|