Lines 2-137
Link Here
|
2 |
# Date created: 10 August 2001 |
2 |
# Date created: 10 August 2001 |
3 |
# Whom: Thomas E. Zander |
3 |
# Whom: Thomas E. Zander |
4 |
# with lots of help from Vladimir Kushnir |
4 |
# with lots of help from Vladimir Kushnir |
5 |
# $FreeBSD: ports/multimedia/mplayer/Makefile,v 1.165 2007/07/28 12:27:28 miwi Exp $ |
5 |
# $FreeBSD: ports/multimedia/mplayer/Makefile,v 1.164 2007/06/13 06:06:59 edwin Exp $ |
6 |
# |
|
|
7 |
# |
8 |
# Some of the knobs are not tunable by the OPTIONS framework. These are |
9 |
# explained here in detail. |
10 |
# |
11 |
# Core funcionality: |
12 |
# |
13 |
# MPLAYER_GENERIC_BUILD |
14 |
# default: undefined |
15 |
# By default, the mplayer port creates a custom build based on personal |
16 |
# preferences. |
17 |
# If you want to build a generic package with certain fixed options, |
18 |
# suitable for any CPU within ${ARCH}, define this knob. |
19 |
# Note: Other knobs and especially OPTIONS |
20 |
# |
21 |
# CPU features: |
22 |
# |
23 |
# The following is only of interest if you haven't enabled |
24 |
# RTCPU in your OPTIONS selection. |
25 |
# The correct instruction set of your processor is normally |
26 |
# auto-detected, so there is probably no necessity to change them. |
27 |
# Note that disabling SIMD via the OPTIONS framework completely |
28 |
# disables utilization of vector engines, i.e. it implies |
29 |
# WITHOUT_MMX, WITHOUT_3DNOW and WITHOUT_SSE |
30 |
# |
31 |
# WITHOUT_MMX |
32 |
# default: autodetected |
33 |
# disables using of mmx code |
34 |
# |
35 |
# WITHOUT_3DNOW |
36 |
# default: autodetected |
37 |
# disables using of 3dNow! instructions on AMD CPUs |
38 |
# |
39 |
# WITHOUT_SSE |
40 |
# default: autodetected |
41 |
# disables all mmx2 and sse/sse2 code |
42 |
# CAUTION: There are some Athlon CPUs which claim to be sse-able but |
43 |
# aren't. If you encounter strange problems on such a CPU, try |
44 |
# to build mplayer with this knob and report the problem |
45 |
# NOTE: SSE is available only if "options CPU_ENABLE_SSE" in your |
46 |
# kernel config. This is standard for 5.x and newer systems on I686_CPU |
47 |
# and later. 4.x users will have to define this explicitly. |
48 |
# |
49 |
# WITH_KERN_HZ=<frequency> |
50 |
# default: 1024 |
51 |
# This option allows you to control the default kern.hz when using RTC support. |
52 |
# If you have a older/slower processor you may want to lower the default level. |
53 |
# ie. 512 seems to produce better quality video on a PII 400MHz than 1024 does |
54 |
# CAUTION: lower than 512 may produce jerky video. |
55 |
# |
56 |
# Feature options: |
57 |
# These options influence some general behaviour of mplayer. Most of the featues, |
58 |
# for example all the codecs, are selected via the OPTIONS framework. |
59 |
# |
60 |
# WITH_DVD_DEVICE=/path/to/desired/device |
61 |
# default 5.x: /dev/acd0 |
62 |
# default 4.x: /dev/acd0c |
63 |
# This option changes the default device where mplayer looks for |
64 |
# a DVD medium |
65 |
# |
66 |
# WITH_CDROM_DEVICE=/path/to/desired/device |
67 |
# default 5.x: /dev/acd0 |
68 |
# default 4.x: /dev/acd0c |
69 |
# This option changes the default cdrom device, maybe useful for VCDs |
70 |
# |
71 |
# WITH_LANG=<your choice> |
72 |
# default: en |
73 |
# Enables language support bg, cz, de, dk, en, es, fr, gr, hu, it, ko, nl, no, pl, pt_BR, ro, ru, sk, tr, uk, zh |
74 |
# |
75 |
# Additional knobs: |
76 |
# |
77 |
# NOPORTDOCS |
78 |
# default: undefined |
79 |
# This knob prevents the ports system from installing additional |
80 |
# documentation. If you define this, only the manpage is going |
81 |
# to be installed. |
82 |
# |
6 |
# |
83 |
|
7 |
|
84 |
PORTNAME= mplayer |
8 |
PORTNAME= mplayer |
85 |
PORTVERSION= 0.99.10 |
9 |
PORTVERSION= ${MPLAYER_PORT_VERSION} |
86 |
PORTREVISION= 12 |
10 |
PORTREVISION= 13 |
87 |
CATEGORIES= multimedia audio |
11 |
COMMENT= High performance media player supporting many formats |
88 |
MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ |
|
|
89 |
http://www2.mplayerhq.hu/MPlayer/releases/ \ |
90 |
http://ftp.lug.udel.edu/MPlayer/releases/ \ |
91 |
http://www4.mplayerhq.hu/MPlayer/releases/ \ |
92 |
http://mirrors.xmission.com/MPlayer/releases/ \ |
93 |
ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \ |
94 |
ftp://ftp2.mplayerhq.hu/MPlayer/releases/ \ |
95 |
ftp://ftp.lug.udel.edu/MPlayer/releases/ \ |
96 |
ftp://mirrors.xmission.com/MPlayer/releases/ \ |
97 |
http://www.rrr.de/~riggs/mplayer/ |
98 |
DISTNAME= MPlayer-1.0rc1 |
99 |
|
100 |
MAINTAINER= riggs@rrr.de |
101 |
COMMENT= High performance media player/encoder supporting many formats |
102 |
|
103 |
PATCH_SITES= http://www.mplayerhq.hu/MPlayer/patches/ |
104 |
PATCHFILES+= asmrules_fix_20061231.diff |
105 |
|
106 |
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png |
107 |
|
108 |
USE_BZIP2= yes |
109 |
USE_GMAKE= yes |
110 |
USE_ICONV= yes |
111 |
GNU_CONFIGURE= yes |
112 |
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
113 |
PTHREAD_LIBS=${PTHREAD_LIBS} \ |
114 |
TMPDIR="${WRKSRC}" |
115 |
CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \ |
116 |
--with-extraincdir=${LOCALBASE}/include \ |
117 |
--cc=${CC} \ |
118 |
--as=${AS} \ |
119 |
--enable-png \ |
120 |
--enable-menu \ |
121 |
--disable-libfame \ |
122 |
--disable-faad-external \ |
123 |
--disable-vidix-external \ |
124 |
--disable-tv-v4l1 \ |
125 |
--disable-tv-v4l2 |
126 |
|
12 |
|
127 |
OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off |
13 |
.include "${.CURDIR}/Makefile.shared" |
128 |
|
14 |
|
129 |
#Collect OPTIONS menu |
15 |
OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off |
130 |
.if !defined(MPLAYER_GENERIC_BUILD) |
|
|
131 |
OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on |
16 |
OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on |
132 |
OPTIONS+= OCFLAGS "Use optimized compiler flags" on |
17 |
OPTIONS+= OCFLAGS "Use optimized compiler flags" on |
133 |
OPTIONS+= SIMD "Allow mplayer to use vector engines (MMX...)" on |
18 |
OPTIONS+= SIMD "Allow mplayer to use vector engines (MMX...)" on |
134 |
OPTIONS+= MENCODER "Support encoding of multimedia files" on |
|
|
135 |
OPTIONS+= IPV6 "Include inet6 network support" on |
19 |
OPTIONS+= IPV6 "Include inet6 network support" on |
136 |
OPTIONS+= X11 "Enable X11 support for mplayer's video output" on |
20 |
OPTIONS+= X11 "Enable X11 support for mplayer's video output" on |
137 |
OPTIONS+= GUI "Enable GTK2 graphical user interface with X11" on |
21 |
OPTIONS+= GUI "Enable GTK2 graphical user interface with X11" on |
Lines 144-150
Link Here
|
144 |
OPTIONS+= ARTS "Enable KDE sound system support" off |
28 |
OPTIONS+= ARTS "Enable KDE sound system support" off |
145 |
OPTIONS+= ESOUND "Enable GNOME esound support" off |
29 |
OPTIONS+= ESOUND "Enable GNOME esound support" off |
146 |
OPTIONS+= JACK "Enable JackIt audio server support" off |
30 |
OPTIONS+= JACK "Enable JackIt audio server support" off |
147 |
OPTIONS+= POLYP "Enable polyp sound server support" off |
31 |
#OPTIONS+= POLYP "Enable polyp sound server support" off |
148 |
OPTIONS+= NAS "Enable NAS sound server support" off |
32 |
OPTIONS+= NAS "Enable NAS sound server support" off |
149 |
OPTIONS+= OPENAL "Enable OpenAL sound support" off |
33 |
OPTIONS+= OPENAL "Enable OpenAL sound support" off |
150 |
OPTIONS+= LIBUNGIF "Enable gif support" on |
34 |
OPTIONS+= LIBUNGIF "Enable gif support" on |
Lines 153-168
Link Here
|
153 |
OPTIONS+= SVGALIB "Enable svgalib support" off |
37 |
OPTIONS+= SVGALIB "Enable svgalib support" off |
154 |
OPTIONS+= LIBDV "Enable libdv support" off |
38 |
OPTIONS+= LIBDV "Enable libdv support" off |
155 |
OPTIONS+= MAD "Enable mad MPEG audio engine support" off |
39 |
OPTIONS+= MAD "Enable mad MPEG audio engine support" off |
156 |
OPTIONS+= TWOLAME "Enable twolame MPEG audio codec support" off |
|
|
157 |
OPTIONS+= DTS "Enable DTS audio codec support" on |
40 |
OPTIONS+= DTS "Enable DTS audio codec support" on |
158 |
OPTIONS+= LIBMPCDEC "Enable libmpcdec support" off |
41 |
OPTIONS+= LIBMPCDEC "Enable libmpcdec support" off |
159 |
OPTIONS+= FAAC "Enable FAAC audio codec support" off |
|
|
160 |
OPTIONS+= LADSPA "Enable LADSPA plugin support" off |
42 |
OPTIONS+= LADSPA "Enable LADSPA plugin support" off |
161 |
OPTIONS+= SPEEX "Enable speex audio codec support" off |
43 |
OPTIONS+= SPEEX "Enable speex audio codec support" off |
162 |
OPTIONS+= TREMOR "Use built-in tremor instead of libvorbis" off |
44 |
OPTIONS+= TREMOR "Use built-in tremor instead of libvorbis" off |
163 |
OPTIONS+= XMMS "Enable XMMS plugin support" off |
45 |
OPTIONS+= XMMS "Enable XMMS plugin support" off |
164 |
OPTIONS+= THEORA "Enable ogg theora video support" off |
46 |
OPTIONS+= THEORA "Enable ogg theora video support" off |
|
|
47 |
.if !defined(PACKAGE_BUILDING) |
165 |
OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on |
48 |
OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on |
|
|
49 |
.endif |
166 |
OPTIONS+= X264 "Enable x264 (H.264) video codec support" off |
50 |
OPTIONS+= X264 "Enable x264 (H.264) video codec support" off |
167 |
OPTIONS+= XANIM "Enable xanim DLL support" off |
51 |
OPTIONS+= XANIM "Enable xanim DLL support" off |
168 |
OPTIONS+= XVID "Enable XVID video codec support" on |
52 |
OPTIONS+= XVID "Enable XVID video codec support" on |
Lines 175-213
Link Here
|
175 |
OPTIONS+= CDPARANOIA "Enable cdparanoia support" off |
59 |
OPTIONS+= CDPARANOIA "Enable cdparanoia support" off |
176 |
OPTIONS+= LIBLZO "Enable external liblzo library" off |
60 |
OPTIONS+= LIBLZO "Enable external liblzo library" off |
177 |
OPTIONS+= JOYSTICK "Enable joystick support" off |
61 |
OPTIONS+= JOYSTICK "Enable joystick support" off |
178 |
.endif |
|
|
179 |
|
62 |
|
180 |
WANT_GNOME= yes |
|
|
181 |
WANT_SDL= yes |
182 |
MAN1= mplayer.1 |
63 |
MAN1= mplayer.1 |
183 |
MANCOMPRESSED= no |
64 |
MANCOMPRESSED= no |
184 |
|
65 |
|
185 |
SUB_FILES= pkg-message |
66 |
SUB_FILES= pkg-message |
186 |
|
67 |
|
187 |
CONFFILES= example.conf input.conf menu.conf dvb-menu.conf |
68 |
CONFFILES= example.conf input.conf menu.conf dvb-menu.conf |
188 |
TOOLFILES= calcbpp.pl countquant.pl dvd2divxscript.pl \ |
|
|
189 |
menc2pass mencvcd mp.pl subedit.pl subsearch.sh \ |
190 |
sws-test w32codec_dl.pl wma2ogg.pl x2mpsub.sh |
191 |
|
69 |
|
192 |
.include <bsd.port.pre.mk> |
70 |
.include <bsd.port.pre.mk> |
193 |
|
71 |
|
194 |
.if ${OSVERSION} < 500000 |
72 |
CONFIGURE_ARGS+= --disable-faac \ |
195 |
USE_GCC= 3.4+ |
73 |
--disable-twolame \ |
196 |
CFLAGS+= -Duint_fast64_t=uint64_t |
74 |
--disable-mencoder |
197 |
CFLAGS+= -Droundf=rintf |
75 |
|
198 |
CFLAGS+= -Dllrint=rint |
76 |
.include "${.CURDIR}/Makefile.options" |
199 |
.if ${ARCH} == "i386" |
|
|
200 |
CFLAGS+= -DPRId64=\\\"lld\\\" |
201 |
CFLAGS+= -DPRIu64=\\\"llu\\\" |
202 |
CFLAGS+= -DPRIx64=\\\"llx\\\" |
203 |
CFLAGS+= -DPRIX64=\\\"llX\\\" |
204 |
.else |
205 |
CFLAGS+= -DPRId64=\\\"ld\\\" |
206 |
CFLAGS+= -DPRIu64=\\\"lu\\\" |
207 |
CFLAGS+= -DPRIx64=\\\"lx\\\" |
208 |
CFLAGS+= -DPRIX64=\\\"lX\\\" |
209 |
.endif |
210 |
.endif |
211 |
|
77 |
|
212 |
#Building of vidix dependent shared libs is only possible |
78 |
#Building of vidix dependent shared libs is only possible |
213 |
#on i386 and amd64 at the moment. |
79 |
#on i386 and amd64 at the moment. |
Lines 224-290
Link Here
|
224 |
PLIST_SUB+= VIDIX="@comment " |
90 |
PLIST_SUB+= VIDIX="@comment " |
225 |
.endif |
91 |
.endif |
226 |
|
92 |
|
227 |
# Esablish de-facto dependencies for either building generic mplayer |
|
|
228 |
# binary-suitable package or custom build |
229 |
|
230 |
.if defined(MPLAYER_GENERIC_BUILD) |
231 |
#Compiler flags |
232 |
CFLAGS= #let mplayer decide the flags |
233 |
|
234 |
#Defaults for generic build |
235 |
INCL_MODULES= RTCPU IPV6 X11 GUI SDL SKINS FREETYPE AALIB TREMOR \ |
236 |
WIN32 XVID |
237 |
EXCL_MODULES= OCFLAGS MENCODER VIDIX NVIDIA RTC ARTS ESOUND \ |
238 |
JACK POLYP NAS OPENAL LIBUNGIF LIBCACA SVGALIB \ |
239 |
LIBDV MAD TWOLAME DTS LIBMPCDEC FAAC LADSPA SPEEX \ |
240 |
XMMS THEORA X264 XANIM REALPLAYER LIVEMEDIA SMB \ |
241 |
FRIBIDI LIRC LIBCDIO CDPARANOIA LIBLZO |
242 |
|
243 |
.for module in ${EXCL_MODULES} |
244 |
WITHOUT_${module}=yes |
245 |
.undef(WITH_${module}) |
246 |
.endfor |
247 |
|
248 |
.for module in ${INCL_MODULES} |
249 |
WITH_${module}=yes |
250 |
.undef(WITHOUT_${module}) |
251 |
.endfor |
252 |
|
253 |
.undef(WITH_DVD_DEVICE) |
254 |
.undef(WITH_CDROM_DEVICE) |
255 |
.undef(WITH_LANG) |
256 |
|
257 |
#Kernel granularity |
258 |
DEFAULT_KERN_HZ=1024 |
259 |
CFLAGS+= -fno-force-addr |
260 |
.endif #MPLAYER_GENERIC_BUILD |
261 |
|
262 |
.if !defined(WITHOUT_X11) |
263 |
USE_XLIB= yes |
264 |
CONFIGURE_ARGS+=--with-x11libdir="${LOCALBASE}/lib" |
265 |
.else |
266 |
WITHOUT_GUI= yes |
267 |
CONFIGURE_ARGS+=--disable-x11 \ |
268 |
--disable-fontconfig |
269 |
.endif |
270 |
|
271 |
.if defined(WITH_LANG) |
272 |
CONFIGURE_ARGS+=--language=${WITH_LANG} |
273 |
.endif |
274 |
|
275 |
.if !defined(WITHOUT_OCFLAGS) |
276 |
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer |
277 |
.endif |
278 |
|
279 |
.if defined(WITHOUT_IPV6) |
280 |
CONFIGURE_ARGS+= --disable-inet6 |
281 |
.else |
282 |
CATEGORIES+= ipv6 |
283 |
.endif |
284 |
|
285 |
.if !defined(WITHOUT_GUI) |
93 |
.if !defined(WITHOUT_GUI) |
286 |
PLIST_SUB+= GMPLAYER="" |
94 |
PLIST_SUB+= GMPLAYER="" |
287 |
DESKTOP_ENTRIES= "MPlayer" "High performance media player" "" "gmplayer" "" false |
95 |
DESKTOP_ENTRIES= "MPlayer" "High performance media player" "${DATADIR}/skins/Blue/icons/icon32x32.png" "gmplayer" "" false |
288 |
.if !defined(WITHOUT_SKINS) |
96 |
.if !defined(WITHOUT_SKINS) |
289 |
RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/skins:${PORTSDIR}/multimedia/mplayer-skins |
97 |
RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/skins:${PORTSDIR}/multimedia/mplayer-skins |
290 |
.endif |
98 |
.endif |
Lines 300-305
Link Here
|
300 |
PLIST_SUB+= GMPLAYER="@comment " |
108 |
PLIST_SUB+= GMPLAYER="@comment " |
301 |
.endif #WITHOUT_GUI |
109 |
.endif #WITHOUT_GUI |
302 |
|
110 |
|
|
|
111 |
.if !defined(WITHOUT_FREETYPE) |
112 |
CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ |
113 |
--enable-freetype |
114 |
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 |
115 |
.else |
116 |
.if !defined(WITHOUT_X11) |
117 |
RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/multimedia/mplayer-fonts |
118 |
.endif |
119 |
CONFIGURE_ARGS+= --disable-freetype |
120 |
.endif |
121 |
|
122 |
.if !defined(WITHOUT_X11) |
123 |
USE_XLIB= yes |
124 |
CONFIGURE_ARGS+=--with-x11libdir="${LOCALBASE}/lib" |
125 |
.else |
126 |
WITHOUT_GUI= yes |
127 |
CONFIGURE_ARGS+=--disable-x11 \ |
128 |
--disable-fontconfig |
129 |
.endif |
130 |
|
303 |
.if defined(WITH_RTC) |
131 |
.if defined(WITH_RTC) |
304 |
BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
132 |
BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
305 |
RUN_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
133 |
RUN_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
Lines 309-323
Link Here
|
309 |
CONFIGURE_ARGS+= --disable-rtc |
137 |
CONFIGURE_ARGS+= --disable-rtc |
310 |
.endif |
138 |
.endif |
311 |
|
139 |
|
312 |
.if !defined(WITHOUT_MENCODER) |
|
|
313 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
314 |
MLINKS+= mplayer.1 mencoder.1 |
315 |
PLIST_SUB+= MENCODER="" |
316 |
.else |
317 |
CONFIGURE_ARGS+= --disable-mencoder |
318 |
PLIST_SUB+= MENCODER="@comment " |
319 |
.endif |
320 |
|
321 |
.if defined(WITH_NVIDIA) && ${OSVERSION} < 600033 |
140 |
.if defined(WITH_NVIDIA) && ${OSVERSION} < 600033 |
322 |
LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver |
141 |
LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver |
323 |
CONFIGURE_ARGS+= --enable-xvmc \ |
142 |
CONFIGURE_ARGS+= --enable-xvmc \ |
Lines 331-375
Link Here
|
331 |
CONFIGURE_ARGS+= --disable-arts |
150 |
CONFIGURE_ARGS+= --disable-arts |
332 |
.endif |
151 |
.endif |
333 |
|
152 |
|
334 |
.if defined(WITH_FRIBIDI) |
|
|
335 |
LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi |
336 |
CONFIGURE_ARGS+= --enable-fribidi |
337 |
.else |
338 |
CONFIGURE_ARGS+= --disable-fribidi |
339 |
.endif |
340 |
|
341 |
.if defined(WITH_LIBCDIO) && !defined(WITH_CDPARANOIA) |
342 |
BUILD_DEPENDS+= ${LOCALBASE}/include/cdio/cdio.h:${PORTSDIR}/sysutils/libcdio |
343 |
.else |
344 |
CONFIGURE_ARGS+= --disable-libcdio |
345 |
.endif |
346 |
|
347 |
.if defined(WITH_CDPARANOIA) |
348 |
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia |
349 |
.else |
350 |
CONFIGURE_ARGS+= --disable-cdparanoia |
351 |
.endif |
352 |
|
353 |
.if defined(WITH_LIBCACA) |
153 |
.if defined(WITH_LIBCACA) |
354 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca |
154 |
LIB_DEPENDS+=caca.0:${PORTSDIR}/graphics/libcaca |
355 |
.else |
155 |
.else |
356 |
CONFIGURE_ARGS+= --disable-caca |
156 |
CONFIGURE_ARGS+= --disable-caca |
357 |
.endif |
157 |
.endif |
358 |
|
158 |
|
359 |
.if !defined(WITHOUT_LIBUNGIF) |
|
|
360 |
LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif |
361 |
#CONFIGURE_ARGS+= --enable-gif |
362 |
.else |
363 |
CONFIGURE_ARGS+= --disable-gif |
364 |
.endif |
365 |
|
366 |
.if defined(WITH_LIBDV) |
367 |
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv |
368 |
CONFIGURE_ARGS+= --enable-libdv |
369 |
.else |
370 |
CONFIGURE_ARGS+= --disable-libdv |
371 |
.endif |
372 |
|
373 |
.if defined(WITH_LIRC) |
159 |
.if defined(WITH_LIRC) |
374 |
LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc |
160 |
LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc |
375 |
CONFIGURE_ARGS+= --enable-lirc |
161 |
CONFIGURE_ARGS+= --enable-lirc |
Lines 377-397
Link Here
|
377 |
CONFIGURE_ARGS+= --disable-lirc |
163 |
CONFIGURE_ARGS+= --disable-lirc |
378 |
.endif |
164 |
.endif |
379 |
|
165 |
|
380 |
.if defined(WITH_TWOLAME) |
|
|
381 |
LIB_DEPENDS+= twolame.0:${PORTSDIR}/audio/twolame |
382 |
.else |
383 |
CONFIGURE_ARGS+= --disable-twolame |
384 |
.endif |
385 |
|
386 |
.if defined(WITH_MAD) |
387 |
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad |
388 |
|
389 |
CONFIGURE_ARGS+= --enable-mad \ |
390 |
--with-madlibdir=${LOCALBASE}/lib |
391 |
.else |
392 |
CONFIGURE_ARGS+= --disable-mad |
393 |
.endif |
394 |
|
395 |
.if defined(WITH_SDL) |
166 |
.if defined(WITH_SDL) |
396 |
USE_SDL= sdl |
167 |
USE_SDL= sdl |
397 |
WITH_AALIB= yes |
168 |
WITH_AALIB= yes |
Lines 412-587
Link Here
|
412 |
CONFIGURE_ARGS+= --disable-aa |
183 |
CONFIGURE_ARGS+= --disable-aa |
413 |
.endif |
184 |
.endif |
414 |
|
185 |
|
415 |
.if defined(WITH_THEORA) |
|
|
416 |
LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora |
417 |
.else |
418 |
CONFIGURE_ARGS+= --disable-theora |
419 |
.endif |
420 |
|
421 |
.if defined(WITH_X264) |
422 |
LIB_DEPENDS+= x264.50:${PORTSDIR}/multimedia/x264 |
423 |
.else |
424 |
CONFIGURE_ARGS+= --disable-x264 |
425 |
.endif |
426 |
|
427 |
.if defined(WITH_ESOUND) |
186 |
.if defined(WITH_ESOUND) |
428 |
USE_GNOME+= esound |
187 |
USE_GNOME+= esound |
429 |
.else |
188 |
.else |
430 |
CONFIGURE_ARGS+= --disable-esd |
189 |
CONFIGURE_ARGS+= --disable-esd |
431 |
.endif |
190 |
.endif |
432 |
|
191 |
|
433 |
.if defined(WITH_JACK) |
|
|
434 |
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack |
435 |
.else |
436 |
CONFIGURE_ARGS+= --disable-jack |
437 |
.endif |
438 |
|
439 |
.if defined(WITH_POLYP) |
440 |
CONFIGURE_ARGS+= --enable-polyp |
441 |
LIB_DEPENDS+= polyp-0.7.0:${PORTSDIR}/audio/polypaudio |
442 |
.else |
443 |
CONFIGURE_ARGS+= --disable-polyp |
444 |
.endif |
445 |
|
446 |
.if defined(WITH_NAS) |
447 |
CONFIGURE_ARGS+= --enable-nas |
448 |
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas |
449 |
.else |
450 |
CONFIGURE_ARGS+= --disable-nas |
451 |
.endif |
452 |
|
453 |
.if defined(WITH_OPENAL) |
454 |
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal |
455 |
.else |
456 |
CONFIGURE_ARGS+= --disable-openal |
457 |
.endif |
458 |
|
459 |
.if !defined(WITH_TREMOR) |
460 |
CONFIGURE_ARGS+= --disable-tremor-internal |
461 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
462 |
.endif |
463 |
|
464 |
.if defined(WITH_REALPLAYER) |
465 |
CONFIGURE_ARGS+= --enable-real \ |
466 |
--with-reallibdir=${X11BASE}/lib/RealPlayer/codecs |
467 |
RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
468 |
BUILD_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
469 |
.else |
470 |
.if !defined(WITHOUT_WIN32) |
471 |
CONFIGURE_ARGS+= --enable-real \ |
472 |
--with-reallibdir=${LOCALBASE}/lib/win32 |
473 |
.else |
474 |
CONFIGURE_ARGS+= --disable-real |
475 |
.endif |
476 |
.endif |
477 |
|
478 |
.if defined(WITH_LIVEMEDIA) |
479 |
CONFIGURE_ARGS+= --enable-live \ |
480 |
--with-livelibdir=${LOCALBASE}/live |
481 |
RUN_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia |
482 |
BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia |
483 |
.else |
484 |
CONFIGURE_ARGS+= --disable-live |
485 |
.endif |
486 |
|
487 |
.if defined(WITH_SMB) |
488 |
CONFIGURE_ARGS+= --enable-smb |
489 |
LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient |
490 |
.else |
491 |
CONFIGURE_ARGS+= --disable-smb |
492 |
.endif |
493 |
|
494 |
.if !defined(WITHOUT_XVID) |
495 |
CONFIGURE_ARGS+= --enable-xvid |
496 |
LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid |
497 |
.else |
498 |
CONFIGURE_ARGS+= --disable-xvid |
499 |
.endif |
500 |
|
501 |
.if defined(WITH_XMMS) |
502 |
CONFIGURE_ARGS+= --enable-xmms |
503 |
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms |
504 |
.else |
505 |
CONFIGURE_ARGS+= --disable-xmms |
506 |
.endif |
507 |
|
508 |
.if !defined(WITHOUT_DTS) |
509 |
CFLAGS+= -I${LOCALBASE}/include |
510 |
CONFIGURE_ARGS+= --enable-libdts |
511 |
LIB_DEPENDS+= dca.0:${PORTSDIR}/multimedia/libdca |
512 |
.else |
513 |
CONFIGURE_ARGS+= --disable-libdts |
514 |
.endif |
515 |
|
516 |
.if defined(WITH_LIBMPCDEC) |
517 |
LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec |
518 |
.else |
519 |
CONFIGURE_ARGS+= --disable-musepack |
520 |
.endif |
521 |
|
522 |
.if defined(WITH_FAAC) |
523 |
LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac |
524 |
.else |
525 |
CONFIGURE_ARGS+= --disable-faac |
526 |
.endif |
527 |
|
528 |
.if defined(WITH_LADSPA) |
529 |
RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa |
530 |
.else |
531 |
CONFIGURE_ARGS+= --disable-ladspa |
532 |
.endif |
533 |
|
534 |
.if !defined(WITHOUT_SPEEX) |
535 |
CONFIGURE_ARGS+= --enable-speex |
536 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
537 |
.else |
538 |
CONFIGURE_ARGS+= --disable-speex |
539 |
.endif |
540 |
|
541 |
.if !defined(WITHOUT_FREETYPE) |
542 |
CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ |
543 |
--enable-freetype |
544 |
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 |
545 |
.else |
546 |
.if !defined(WITHOUT_X11) |
547 |
RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/multimedia/mplayer-fonts |
548 |
.endif |
549 |
CONFIGURE_ARGS+= --disable-freetype |
550 |
.endif |
551 |
|
552 |
.if defined(WITH_XANIM) |
553 |
BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim |
554 |
CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim |
555 |
.else |
556 |
CONFIGURE_ARGS+=--disable-xanim |
557 |
.endif |
558 |
|
559 |
.if defined(WITH_LIBLZO) |
560 |
LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo |
561 |
.else |
562 |
CONFIGURE_ARGS+= --disable-liblzo |
563 |
.endif |
564 |
|
565 |
.if defined(WITH_DVD_DEVICE) |
566 |
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} |
567 |
.else |
568 |
.if ${OSVERSION} < 500000 |
569 |
DEFAULT_DVD_DEVICE=/dev/acd0c |
570 |
.else |
571 |
DEFAULT_DVD_DEVICE=/dev/acd0 |
572 |
.endif |
573 |
.endif |
574 |
|
575 |
.if defined(WITH_CDROM_DEVICE) |
576 |
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} |
577 |
.else |
578 |
.if ${OSVERSION} < 500000 |
579 |
DEFAULT_CDROM_DEVICE=/dev/acd0c |
580 |
.else |
581 |
DEFAULT_CDROM_DEVICE=/dev/acd0 |
582 |
.endif |
583 |
.endif |
584 |
|
585 |
.if defined(WITH_KERN_HZ) |
192 |
.if defined(WITH_KERN_HZ) |
586 |
DEFAULT_KERN_HZ=${WITH_KERN_HZ} |
193 |
DEFAULT_KERN_HZ=${WITH_KERN_HZ} |
587 |
.else |
194 |
.else |
Lines 595-626
Link Here
|
595 |
CONFIGURE_ARGS+=--disable-joystick |
202 |
CONFIGURE_ARGS+=--disable-joystick |
596 |
.endif |
203 |
.endif |
597 |
|
204 |
|
598 |
# "enable" build for other archs |
|
|
599 |
.if ${ARCH} == "i386" || ${ARCH} == "amd64" |
600 |
.if !defined(WITHOUT_RTCPU) |
601 |
CONFIGURE_ARGS+=--enable-runtime-cpudetection |
602 |
.else #WITH_RTCPU |
603 |
.if defined(WITHOUT_MMX) || defined(WITHOUT_SIMD) |
604 |
CONFIGURE_ARGS+=--disable-mmx |
605 |
.endif |
606 |
.if defined(WITHOUT_3DNOW) || defined(WITHOUT_SIMD) || ${OSVERSION} < 400021 |
607 |
CONFIGURE_ARGS+=--disable-3dnow --disable-3dnowext |
608 |
.endif |
609 |
.if defined(WITHOUT_SSE) || defined(WITHOUT_SIMD) |
610 |
CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2 |
611 |
.endif |
612 |
.endif #WITH_RTCPU |
613 |
.if !defined(WITHOUT_WIN32) |
614 |
RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} |
615 |
CONFIGURE_ARGS+= --with-win32libdir=${LOCALBASE}/lib/win32 |
616 |
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs |
617 |
CODEC_DETECTION_FILE!= ${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE |
618 |
.else |
619 |
CONFIGURE_ARGS+= --disable-win32 \ |
620 |
--disable-qtx-codecs |
621 |
.endif |
622 |
.endif # ARCH == i386/amd64 |
623 |
|
624 |
pre-everything:: |
205 |
pre-everything:: |
625 |
@${ECHO_MSG} "N - O - T - E" |
206 |
@${ECHO_MSG} "N - O - T - E" |
626 |
@${ECHO_MSG} "" |
207 |
@${ECHO_MSG} "" |
Lines 661-675
Link Here
|
661 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
242 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
662 |
${WRKSRC}/mplayer.c |
243 |
${WRKSRC}/mplayer.c |
663 |
.endif |
244 |
.endif |
664 |
.if defined(MPLAYER_GENERIC_BUILD) && defined(WITH_DEBUG) |
|
|
665 |
@${REINPLACE_CMD} -e \ |
666 |
's|1.0pre8|1.0pre8-FreeBSD-generic-debug|' \ |
667 |
${WRKSRC}/version.sh |
668 |
.elif defined(MPLAYER_GENERIC_BUILD) |
669 |
@${REINPLACE_CMD} -e \ |
670 |
's|1.0pre8|1.0pre8-FreeBSD-generic|' \ |
671 |
${WRKSRC}/version.sh |
672 |
.endif |
673 |
|
245 |
|
674 |
post-configure: |
246 |
post-configure: |
675 |
@${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \ |
247 |
@${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \ |
Lines 678-693
Link Here
|
678 |
post-install: |
250 |
post-install: |
679 |
@${MKDIR} ${DATADIR} |
251 |
@${MKDIR} ${DATADIR} |
680 |
@${CHMOD} 755 ${DATADIR} |
252 |
@${CHMOD} 755 ${DATADIR} |
681 |
@${MKDIR} ${DATADIR}/tools |
|
|
682 |
@${CHMOD} 755 ${DATADIR}/tools |
683 |
@${MKDIR} ${DATADIR}/examples/etc |
253 |
@${MKDIR} ${DATADIR}/examples/etc |
684 |
@${CHMOD} 755 ${DATADIR}/examples/etc |
254 |
@${CHMOD} 755 ${DATADIR}/examples/etc |
685 |
.for conf in ${CONFFILES} |
255 |
.for conf in ${CONFFILES} |
686 |
${INSTALL_DATA} ${WRKSRC}/etc/${conf} ${DATADIR}/examples/etc |
256 |
${INSTALL_DATA} ${WRKSRC}/etc/${conf} ${DATADIR}/examples/etc |
687 |
.endfor |
257 |
.endfor |
688 |
.for tool in ${TOOLFILES} |
|
|
689 |
${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${DATADIR}/tools |
690 |
.endfor |
691 |
.if !defined(NOPORTDOCS) |
258 |
.if !defined(NOPORTDOCS) |
692 |
@${MKDIR} ${DOCSDIR} |
259 |
@${MKDIR} ${DOCSDIR} |
693 |
@${CHMOD} 755 ${DOCSDIR} |
260 |
@${CHMOD} 755 ${DOCSDIR} |