Lines 8-23
Link Here
|
8 |
# Some of the knobs are not tunable by the OPTIONS framework. These are |
8 |
# Some of the knobs are not tunable by the OPTIONS framework. These are |
9 |
# explained here in detail. |
9 |
# explained here in detail. |
10 |
# |
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: |
11 |
# CPU features: |
22 |
# |
12 |
# |
23 |
# The following is only of interest if you haven't enabled |
13 |
# The following is only of interest if you haven't enabled |
Lines 83-89
Link Here
|
83 |
|
73 |
|
84 |
PORTNAME= mplayer |
74 |
PORTNAME= mplayer |
85 |
PORTVERSION= 0.99.10 |
75 |
PORTVERSION= 0.99.10 |
86 |
PORTREVISION= 7 |
76 |
PORTREVISION= 8 |
87 |
CATEGORIES= multimedia audio |
77 |
CATEGORIES= multimedia audio |
88 |
MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ |
78 |
MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ |
89 |
http://www2.mplayerhq.hu/MPlayer/releases/ \ |
79 |
http://www2.mplayerhq.hu/MPlayer/releases/ \ |
Lines 127-137
Link Here
|
127 |
OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off |
117 |
OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off |
128 |
|
118 |
|
129 |
#Collect OPTIONS menu |
119 |
#Collect OPTIONS menu |
130 |
.if !defined(MPLAYER_GENERIC_BUILD) |
|
|
131 |
OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on |
120 |
OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on |
132 |
OPTIONS+= OCFLAGS "Use optimized compiler flags" on |
121 |
OPTIONS+= OCFLAGS "Use optimized compiler flags" on |
133 |
OPTIONS+= SIMD "Allow mplayer to use vector engines (MMX...)" on |
122 |
OPTIONS+= SIMD "Allow mplayer to use vector engines (MMX...)" on |
|
|
123 |
.if !defined(PACKAGE_BUILDING) |
134 |
OPTIONS+= MENCODER "Support encoding of multimedia files" on |
124 |
OPTIONS+= MENCODER "Support encoding of multimedia files" on |
|
|
125 |
.endif |
135 |
OPTIONS+= IPV6 "Include inet6 network support" on |
126 |
OPTIONS+= IPV6 "Include inet6 network support" on |
136 |
OPTIONS+= X11 "Enable X11 support for mplayer's video output" on |
127 |
OPTIONS+= X11 "Enable X11 support for mplayer's video output" on |
137 |
OPTIONS+= GUI "Enable GTK2 graphical user interface with X11" on |
128 |
OPTIONS+= GUI "Enable GTK2 graphical user interface with X11" on |
Lines 162-168
Link Here
|
162 |
OPTIONS+= TREMOR "Use built-in tremor instead of libvorbis" off |
153 |
OPTIONS+= TREMOR "Use built-in tremor instead of libvorbis" off |
163 |
OPTIONS+= XMMS "Enable XMMS plugin support" off |
154 |
OPTIONS+= XMMS "Enable XMMS plugin support" off |
164 |
OPTIONS+= THEORA "Enable ogg theora video support" off |
155 |
OPTIONS+= THEORA "Enable ogg theora video support" off |
|
|
156 |
.if !defined(PACKAGE_BUILDING) |
165 |
OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on |
157 |
OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on |
|
|
158 |
.endif |
166 |
OPTIONS+= X264 "Enable x264 (H.264) video codec support" off |
159 |
OPTIONS+= X264 "Enable x264 (H.264) video codec support" off |
167 |
OPTIONS+= XANIM "Enable xanim DLL support" off |
160 |
OPTIONS+= XANIM "Enable xanim DLL support" off |
168 |
OPTIONS+= XVID "Enable XVID video codec support" on |
161 |
OPTIONS+= XVID "Enable XVID video codec support" on |
Lines 175-181
Link Here
|
175 |
OPTIONS+= CDPARANOIA "Enable cdparanoia support" off |
168 |
OPTIONS+= CDPARANOIA "Enable cdparanoia support" off |
176 |
OPTIONS+= LIBLZO "Enable external liblzo library" off |
169 |
OPTIONS+= LIBLZO "Enable external liblzo library" off |
177 |
OPTIONS+= JOYSTICK "Enable joystick support" off |
170 |
OPTIONS+= JOYSTICK "Enable joystick support" off |
178 |
.endif |
|
|
179 |
|
171 |
|
180 |
WANT_GNOME= yes |
172 |
WANT_GNOME= yes |
181 |
WANT_SDL= yes |
173 |
WANT_SDL= yes |
Lines 224-264
Link Here
|
224 |
PLIST_SUB+= VIDIX="@comment " |
216 |
PLIST_SUB+= VIDIX="@comment " |
225 |
.endif |
217 |
.endif |
226 |
|
218 |
|
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) |
219 |
.if !defined(WITHOUT_X11) |
263 |
USE_XLIB= yes |
220 |
USE_XLIB= yes |
264 |
.else |
221 |
.else |
Lines 271-278
Link Here
|
271 |
CONFIGURE_ARGS+=--language=${WITH_LANG} |
228 |
CONFIGURE_ARGS+=--language=${WITH_LANG} |
272 |
.endif |
229 |
.endif |
273 |
|
230 |
|
|
|
231 |
#On i386, gcc runs out of general purpose registers when |
232 |
#trying to compile a debug version with the default flags. |
233 |
.if defined(WITH_DEBUG) |
234 |
.if ${ARCH} == "i386" |
235 |
DEBUG_FLAGS= -g -O -fomit-frame-pointer |
236 |
.endif |
237 |
.else |
274 |
.if !defined(WITHOUT_OCFLAGS) |
238 |
.if !defined(WITHOUT_OCFLAGS) |
275 |
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer |
239 |
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer |
|
|
240 |
.else |
241 |
CFLAGS+= -O -fomit-frame-pointer |
242 |
.endif |
276 |
.endif |
243 |
.endif |
277 |
|
244 |
|
278 |
.if defined(WITHOUT_IPV6) |
245 |
.if defined(WITHOUT_IPV6) |
Lines 308-314
Link Here
|
308 |
CONFIGURE_ARGS+= --disable-rtc |
275 |
CONFIGURE_ARGS+= --disable-rtc |
309 |
.endif |
276 |
.endif |
310 |
|
277 |
|
311 |
.if !defined(WITHOUT_MENCODER) |
278 |
.if !defined(WITHOUT_MENCODER) && !defined(PACKAGE_BUILDING) |
312 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
279 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
313 |
MLINKS+= mplayer.1 mencoder.1 |
280 |
MLINKS+= mplayer.1 mencoder.1 |
314 |
PLIST_SUB+= MENCODER="" |
281 |
PLIST_SUB+= MENCODER="" |
Lines 350-356
Link Here
|
350 |
.endif |
317 |
.endif |
351 |
|
318 |
|
352 |
.if defined(WITH_LIBCACA) |
319 |
.if defined(WITH_LIBCACA) |
353 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca |
320 |
LIB_DEPENDS+=caca.0:${PORTSDIR}/graphics/libcaca |
354 |
.else |
321 |
.else |
355 |
CONFIGURE_ARGS+= --disable-caca |
322 |
CONFIGURE_ARGS+= --disable-caca |
356 |
.endif |
323 |
.endif |
Lines 466-472
Link Here
|
466 |
RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
433 |
RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
467 |
BUILD_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
434 |
BUILD_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
468 |
.else |
435 |
.else |
469 |
.if !defined(WITHOUT_WIN32) |
436 |
.if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING) |
470 |
CONFIGURE_ARGS+= --enable-real \ |
437 |
CONFIGURE_ARGS+= --enable-real \ |
471 |
--with-reallibdir=${LOCALBASE}/lib/win32 |
438 |
--with-reallibdir=${LOCALBASE}/lib/win32 |
472 |
.else |
439 |
.else |
Lines 609-615
Link Here
|
609 |
CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2 |
576 |
CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2 |
610 |
.endif |
577 |
.endif |
611 |
.endif #WITH_RTCPU |
578 |
.endif #WITH_RTCPU |
612 |
.if !defined(WITHOUT_WIN32) |
579 |
.if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING) |
613 |
RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} |
580 |
RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} |
614 |
CONFIGURE_ARGS+= --with-win32libdir=${LOCALBASE}/lib/win32 |
581 |
CONFIGURE_ARGS+= --with-win32libdir=${LOCALBASE}/lib/win32 |
615 |
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs |
582 |
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs |
Lines 659-673
Link Here
|
659 |
@${REINPLACE_CMD} -e \ |
626 |
@${REINPLACE_CMD} -e \ |
660 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
627 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
661 |
${WRKSRC}/mplayer.c |
628 |
${WRKSRC}/mplayer.c |
662 |
.endif |
|
|
663 |
.if defined(MPLAYER_GENERIC_BUILD) && defined(WITH_DEBUG) |
664 |
@${REINPLACE_CMD} -e \ |
665 |
's|1.0pre8|1.0pre8-FreeBSD-generic-debug|' \ |
666 |
${WRKSRC}/version.sh |
667 |
.elif defined(MPLAYER_GENERIC_BUILD) |
668 |
@${REINPLACE_CMD} -e \ |
669 |
's|1.0pre8|1.0pre8-FreeBSD-generic|' \ |
670 |
${WRKSRC}/version.sh |
671 |
.endif |
629 |
.endif |
672 |
|
630 |
|
673 |
post-configure: |
631 |
post-configure: |