View | Details | Raw Unified | Return to bug 115170
Collapse All | Expand All

(-)mplayer/Makefile (-469 / +36 lines)
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}
(-)mplayer/Makefile.options (+285 lines)
Line 0 Link Here
1
# Contains the options and dependencies that are shared
2
# among mplayer and mencoder
3
#
4
# Some of the knobs are not tunable by the OPTIONS framework. These are
5
# explained here in detail.
6
#
7
# CPU features:
8
#
9
# The following is only of interest if you haven't enabled
10
# RTCPU in your OPTIONS selection.
11
# The correct instruction set of your processor is normally
12
# auto-detected, so there is probably no necessity to change them.
13
# Note that disabling SIMD via the OPTIONS framework completely
14
# disables utilization of vector engines, i.e. it implies
15
# WITHOUT_MMX, WITHOUT_3DNOW and WITHOUT_SSE
16
#
17
# WITHOUT_MMX
18
# default: autodetected
19
# disables using of mmx code
20
#
21
# WITHOUT_3DNOW
22
# default: autodetected
23
# disables using of 3dNow! instructions on AMD CPUs
24
#
25
# WITHOUT_SSE
26
# default: autodetected
27
# disables all mmx2 and sse/sse2 code
28
# CAUTION: There are some Athlon CPUs which claim to be sse-able but
29
# aren't. If you encounter strange problems on such a CPU, try
30
# to build mplayer with this knob and report the problem
31
# NOTE: SSE is available only if "options CPU_ENABLE_SSE" in your
32
# kernel config. This is standard for 5.x and newer systems on I686_CPU
33
# and later. 4.x users will have to define this explicitly.
34
#
35
# Feature options:
36
# These options influence some general behaviour of mplayer. Most of the featues,
37
# for example all the codecs, are selected via the OPTIONS framework.
38
#
39
# WITH_DVD_DEVICE=/path/to/desired/device
40
# default 5.x: /dev/acd0
41
# default 4.x: /dev/acd0c
42
# This option changes the default device where mplayer looks for
43
# a DVD medium
44
#
45
# WITH_CDROM_DEVICE=/path/to/desired/device
46
# default 5.x: /dev/acd0
47
# default 4.x: /dev/acd0c
48
# This option changes the default cdrom device, maybe useful for VCDs
49
#
50
# WITH_LANG=<your choice>
51
# default: en
52
# 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
53
#
54
55
.if defined(WITH_LANG)
56
CONFIGURE_ARGS+=--language=${WITH_LANG}
57
.endif
58
59
#On i386, gcc runs out of general purpose registers when
60
#trying to compile a debug version with the default flags.
61
.if defined(WITH_DEBUG)
62
.if ${ARCH} == "i386"
63
DEBUG_FLAGS=	-g -O -fomit-frame-pointer
64
.endif
65
.else
66
.if !defined(WITHOUT_OCFLAGS)
67
CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
68
.else
69
CFLAGS+=	-O -fomit-frame-pointer
70
.endif
71
.endif
72
73
.if defined(WITHOUT_IPV6)
74
CONFIGURE_ARGS+=	--disable-inet6
75
.else
76
CATEGORIES+=	ipv6
77
.endif
78
79
.if !defined(WITHOUT_LIBUNGIF)
80
LIB_DEPENDS+=	ungif.5:${PORTSDIR}/graphics/libungif
81
#CONFIGURE_ARGS+=	--enable-gif
82
.else
83
CONFIGURE_ARGS+=	--disable-gif
84
.endif
85
86
.if defined(WITH_MAD)
87
LIB_DEPENDS+=	mad.2:${PORTSDIR}/audio/libmad
88
89
CONFIGURE_ARGS+=	--enable-mad \
90
			--with-madlibdir=${LOCALBASE}/lib
91
.else
92
CONFIGURE_ARGS+=	--disable-mad
93
.endif
94
95
.if defined(WITH_LIBDV)
96
LIB_DEPENDS+=	dv.4:${PORTSDIR}/multimedia/libdv
97
CONFIGURE_ARGS+=	--enable-libdv
98
.else
99
CONFIGURE_ARGS+=	--disable-libdv
100
.endif
101
102
.if defined(WITH_X264)
103
LIB_DEPENDS+=	x264.50:${PORTSDIR}/multimedia/x264
104
.else
105
CONFIGURE_ARGS+=	--disable-x264
106
.endif
107
108
.if !defined(WITH_TREMOR)
109
CONFIGURE_ARGS+=	--disable-tremor-internal
110
LIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
111
.endif
112
113
.if !defined(WITHOUT_XVID)
114
CONFIGURE_ARGS+=	--enable-xvid
115
LIB_DEPENDS+=		xvidcore.4:${PORTSDIR}/multimedia/xvid
116
.else
117
CONFIGURE_ARGS+=	--disable-xvid
118
.endif
119
120
.if defined(WITH_THEORA)
121
LIB_DEPENDS+=	theora.2:${PORTSDIR}/multimedia/libtheora
122
.else
123
CONFIGURE_ARGS+=	--disable-theora
124
.endif
125
126
.if defined(WITH_LIBMPCDEC)
127
LIB_DEPENDS+=	mpcdec.5:${PORTSDIR}/audio/libmpcdec
128
.else
129
CONFIGURE_ARGS+=	--disable-musepack
130
.endif
131
132
.if !defined(WITHOUT_DTS)
133
CFLAGS+=		-I${LOCALBASE}/include
134
CONFIGURE_ARGS+=	--enable-libdts
135
BUILD_DEPENDS+=		${LOCALBASE}/lib/libdca.a:${PORTSDIR}/multimedia/libdca
136
.else
137
CONFIGURE_ARGS+=	--disable-libdts
138
.endif
139
140
.if !defined(WITHOUT_SPEEX)
141
CONFIGURE_ARGS+=	--enable-speex
142
LIB_DEPENDS+=	speex.1:${PORTSDIR}/audio/speex
143
.else
144
CONFIGURE_ARGS+=	--disable-speex
145
.endif
146
147
.if defined(WITH_XANIM)
148
BUILD_DEPENDS+=	xanim:${PORTSDIR}/multimedia/xanim
149
CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim
150
.else
151
CONFIGURE_ARGS+=--disable-xanim
152
.endif
153
154
.if defined(WITH_LIVEMEDIA)
155
CONFIGURE_ARGS+=	--enable-live \
156
			--with-livelibdir=${LOCALBASE}/live
157
RUN_DEPENDS+=		${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia
158
BUILD_DEPENDS+=		${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia
159
.else
160
CONFIGURE_ARGS+=	--disable-live
161
.endif
162
163
.if defined(WITH_XMMS)
164
CONFIGURE_ARGS+=	--enable-xmms
165
LIB_DEPENDS+=	xmms.4:${PORTSDIR}/multimedia/xmms
166
.else
167
CONFIGURE_ARGS+=	--disable-xmms
168
.endif
169
170
.if defined(WITH_JACK)
171
LIB_DEPENDS+=	jack.0:${PORTSDIR}/audio/jack
172
.else
173
CONFIGURE_ARGS+=	--disable-jack
174
.endif
175
176
#.if defined(WITH_POLYP)
177
#CONFIGURE_ARGS+=	--enable-polyp
178
#LIB_DEPENDS+=		polyp-0.7.0:${PORTSDIR}/audio/polypaudio
179
#.else
180
#CONFIGURE_ARGS+=	--disable-polyp
181
#.endif
182
183
.if defined(WITH_NAS)
184
CONFIGURE_ARGS+=	--enable-nas
185
LIB_DEPENDS+=		audio.2:${PORTSDIR}/audio/nas
186
.else
187
CONFIGURE_ARGS+=	--disable-nas
188
.endif
189
190
.if defined(WITH_OPENAL)
191
LIB_DEPENDS+=	openal.0:${PORTSDIR}/audio/openal
192
.else
193
CONFIGURE_ARGS+=	--disable-openal
194
.endif
195
196
.if defined(WITH_SMB)
197
CONFIGURE_ARGS+=	--enable-smb
198
LIB_DEPENDS+=		smbclient.0:${PORTSDIR}/net/samba-libsmbclient
199
.else
200
CONFIGURE_ARGS+=	--disable-smb
201
.endif
202
203
.if defined(WITH_FRIBIDI)
204
LIB_DEPENDS+=	fribidi.0:${PORTSDIR}/converters/fribidi
205
CONFIGURE_ARGS+=	--enable-fribidi
206
.else
207
CONFIGURE_ARGS+=	--disable-fribidi
208
.endif
209
210
.if defined(WITH_CDPARANOIA)
211
LIB_DEPENDS+=	cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
212
.else
213
CONFIGURE_ARGS+=	--disable-cdparanoia
214
.endif
215
216
.if defined(WITH_LIBCDIO) && !defined(WITH_CDPARANOIA)
217
BUILD_DEPENDS+=	${LOCALBASE}/include/cdio/cdio.h:${PORTSDIR}/sysutils/libcdio
218
.else
219
CONFIGURE_ARGS+=	--disable-libcdio
220
.endif
221
222
.if defined(WITH_LADSPA)
223
RUN_DEPENDS+=	${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa
224
.else
225
CONFIGURE_ARGS+=	--disable-ladspa
226
.endif
227
228
.if defined(WITH_LIBLZO)
229
LIB_DEPENDS+=		lzo.1:${PORTSDIR}/archivers/lzo
230
.else
231
CONFIGURE_ARGS+=	--disable-liblzo
232
.endif
233
234
.if defined(WITH_DVD_DEVICE)
235
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
236
.else
237
DEFAULT_DVD_DEVICE=/dev/acd0
238
.endif
239
240
.if defined(WITH_CDROM_DEVICE)
241
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
242
.else
243
DEFAULT_CDROM_DEVICE=/dev/acd0
244
.endif
245
246
# "enable" build for other archs
247
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
248
.if !defined(WITHOUT_RTCPU)
249
CONFIGURE_ARGS+=--enable-runtime-cpudetection
250
.else #WITH_RTCPU
251
.if defined(WITHOUT_MMX) || defined(WITHOUT_SIMD)
252
CONFIGURE_ARGS+=--disable-mmx
253
.endif
254
.if defined(WITHOUT_3DNOW) || defined(WITHOUT_SIMD)
255
CONFIGURE_ARGS+=--disable-3dnow --disable-3dnowext
256
.endif
257
.if defined(WITHOUT_SSE) || defined(WITHOUT_SIMD)
258
CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2
259
.endif
260
.endif #WITH_RTCPU
261
.if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING) && ${ARCH} == "i386"
262
RUN_DEPENDS+=	${CODEC_DETECTION_FILE}:${CODEC_PORT}
263
CONFIGURE_ARGS+=	--with-win32libdir=${LOCALBASE}/lib/win32
264
CODEC_PORT=	${PORTSDIR}/multimedia/win32-codecs
265
CODEC_DETECTION_FILE!=	${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE
266
.else
267
CONFIGURE_ARGS+=	--disable-win32 \
268
			--disable-qtx-codecs
269
.endif
270
.endif # ARCH == i386/amd64
271
272
.if defined(WITH_REALPLAYER)
273
CONFIGURE_ARGS+=	--enable-real \
274
			--with-reallibdir=${X11BASE}/lib/RealPlayer/codecs
275
RUN_DEPENDS+=		realplay:${PORTSDIR}/multimedia/linux-realplayer
276
BUILD_DEPENDS+=		realplay:${PORTSDIR}/multimedia/linux-realplayer
277
.else
278
.if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING)
279
CONFIGURE_ARGS+=	--enable-real \
280
			--with-reallibdir=${LOCALBASE}/lib/win32
281
.else
282
CONFIGURE_ARGS+=	--disable-real
283
.endif
284
.endif
285
(-)mplayer/Makefile.shared (+46 lines)
Line 0 Link Here
1
# Contains the build infrastructural definitions for both
2
# mplayer and mencoder....the variables that we need to set
3
# before we include bsd.port.pre.mk
4
5
MPLAYER_PORT_VERSION=	0.99.10
6
CATEGORIES?=	multimedia audio
7
MASTER_SITES=	http://www1.mplayerhq.hu/MPlayer/releases/ \
8
		http://www2.mplayerhq.hu/MPlayer/releases/ \
9
		http://ftp.lug.udel.edu/MPlayer/releases/ \
10
		http://www4.mplayerhq.hu/MPlayer/releases/ \
11
		http://mirrors.xmission.com/MPlayer/releases/ \
12
		ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \
13
		ftp://ftp2.mplayerhq.hu/MPlayer/releases/ \
14
		ftp://ftp.lug.udel.edu/MPlayer/releases/ \
15
		ftp://mirrors.xmission.com/MPlayer/releases/ \
16
		http://www.rrr.de/~riggs/mplayer/
17
DISTNAME=	MPlayer-1.0rc1
18
19
MAINTAINER?=	riggs@rrr.de
20
21
PATCH_SITES=	http://www.mplayerhq.hu/MPlayer/patches/
22
PATCHFILES+=	asmrules_fix_20061231.diff
23
24
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
25
26
USE_BZIP2=	yes
27
USE_GMAKE=	yes
28
USE_ICONV=	yes
29
GNU_CONFIGURE=	yes
30
CONFIGURE_ENV=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
31
		PTHREAD_LIBS=${PTHREAD_LIBS} \
32
		TMPDIR="${WRKSRC}"
33
CONFIGURE_ARGS=	--with-extralibdir=${LOCALBASE}/lib \
34
		--with-extraincdir=${LOCALBASE}/include \
35
		--cc=${CC} \
36
		--as=${AS} \
37
		--enable-png \
38
		--enable-menu \
39
		--disable-libfame \
40
		--disable-faad-external \
41
		--disable-vidix-external \
42
		--disable-tv-v4l1 \
43
		--disable-tv-v4l2
44
45
WANT_GNOME=	yes
46
WANT_SDL=	yes
(-)mplayer/files/patch-libdha-pci.c (+9 lines)
Line 0 Link Here
1
--- libdha/pci.c	Sun Oct 22 18:32:26 2006
2
+++ libdha/pci.c	Sat Jun  9 17:09:11 2007
3
@@ -493,5 +493,5 @@
4
 #elif defined(__powerpc__)
5
 #include "sysdep/pci_powerpc.c"
6
-#elif defined(__x86_64__)
7
+#elif defined(__x86_64__) || defined(__amd64__)
8
 /* Nothing here right now */
9
 #else
(-)mplayer/pkg-plist (-14 lines)
Lines 1-5 Link Here
1
bin/mplayer
1
bin/mplayer
2
%%MENCODER%%bin/mencoder
3
%%GMPLAYER%%bin/gmplayer
2
%%GMPLAYER%%bin/gmplayer
4
%%PORTDOCS%%%%DOCSDIR%%/advaudio.html
3
%%PORTDOCS%%%%DOCSDIR%%/advaudio.html
5
%%PORTDOCS%%%%DOCSDIR%%/aspect.html
4
%%PORTDOCS%%%%DOCSDIR%%/aspect.html
Lines 103-125 Link Here
103
%%VIDIX%%lib/mplayer/vidix/savage_vid.so
102
%%VIDIX%%lib/mplayer/vidix/savage_vid.so
104
%%VIDIX%%lib/mplayer/vidix/sis_vid.so
103
%%VIDIX%%lib/mplayer/vidix/sis_vid.so
105
%%VIDIX%%lib/mplayer/vidix/unichrome_vid.so
104
%%VIDIX%%lib/mplayer/vidix/unichrome_vid.so
106
%%DATADIR%%/tools/calcbpp.pl
107
%%DATADIR%%/tools/countquant.pl
108
%%DATADIR%%/tools/dvd2divxscript.pl
109
%%DATADIR%%/tools/menc2pass
110
%%DATADIR%%/tools/mencvcd
111
%%DATADIR%%/tools/mp.pl
112
%%DATADIR%%/tools/subedit.pl
113
%%DATADIR%%/tools/subsearch.sh
114
%%DATADIR%%/tools/sws-test
115
%%DATADIR%%/tools/w32codec_dl.pl
116
%%DATADIR%%/tools/wma2ogg.pl
117
%%DATADIR%%/tools/x2mpsub.sh
118
%%DATADIR%%/examples/etc/example.conf
105
%%DATADIR%%/examples/etc/example.conf
119
%%DATADIR%%/examples/etc/input.conf
106
%%DATADIR%%/examples/etc/input.conf
120
%%DATADIR%%/examples/etc/menu.conf
107
%%DATADIR%%/examples/etc/menu.conf
121
%%DATADIR%%/examples/etc/dvb-menu.conf
108
%%DATADIR%%/examples/etc/dvb-menu.conf
122
@dirrm %%DATADIR%%/tools
123
@dirrm %%DATADIR%%/examples/etc
109
@dirrm %%DATADIR%%/examples/etc
124
@dirrm %%DATADIR%%/examples
110
@dirrm %%DATADIR%%/examples
125
@dirrmtry %%DATADIR%%
111
@dirrmtry %%DATADIR%%
(-)mencoder/Makefile (+136 lines)
Line 0 Link Here
1
# New ports collection makefile for:	mencoder
2
# Date created:		23 June 2007
3
# Whom:			Thomas E. Zander
4
# $FreeBSD:$
5
#
6
7
PORTNAME=	mencoder
8
PORTVERSION=	${MPLAYER_PORT_VERSION}
9
COMMENT=	Convenient video file and movie encoder
10
RESTRICTED=	Port has restricted dependencies
11
12
.include "${.CURDIR}/../mplayer/Makefile.shared"
13
14
OPTIONS=	DEBUG "Include debug symbols in mencoder's binary files" off
15
OPTIONS+=	RTCPU "Let mplayer dynamically check for CPU features" on
16
OPTIONS+=	OCFLAGS "Use optimized compiler flags" on
17
OPTIONS+=	SIMD "Allow mplayer to use vector engines (MMX...)" on
18
OPTIONS+=	IPV6 "Include inet6 network support" on
19
OPTIONS+=	JACK "Enable JackIt audio server support" off
20
#OPTIONS+=	POLYP "Enable polyp sound server support" off
21
OPTIONS+=	NAS "Enable NAS sound server support" off
22
OPTIONS+=	OPENAL "Enable OpenAL sound support" off
23
OPTIONS+=	LIBUNGIF "Enable gif support" on
24
OPTIONS+=	LIBDV "Enable libdv support" off
25
OPTIONS+=	MAD "Enable mad MPEG audio engine support" off
26
OPTIONS+=	TWOLAME "Enable twolame MPEG audio codec support" off
27
OPTIONS+=	DTS "Enable DTS audio codec support" on
28
OPTIONS+=	LIBMPCDEC "Enable libmpcdec support" off
29
OPTIONS+=	FAAC "Enable FAAC audio codec support" off
30
OPTIONS+=	LADSPA "Enable LADSPA plugin support" off
31
OPTIONS+=	SPEEX "Enable speex audio codec support" off
32
OPTIONS+=	TREMOR "Use built-in tremor instead of libvorbis" off
33
OPTIONS+=	XMMS "Enable XMMS plugin support" off
34
OPTIONS+=	WIN32 "Enable win32 codec set on the IA32 arch" on
35
OPTIONS+=	THEORA "Enable ogg theora video support" off
36
OPTIONS+=	X264 "Enable x264 (H.264) video codec support" off
37
OPTIONS+=	XANIM "Enable xanim DLL support" off
38
OPTIONS+=	XVID "Enable XVID video codec support" on
39
OPTIONS+=	REALPLAYER "Enable real player plugin" off
40
OPTIONS+=	LIVEMEDIA "Enable LIVE555 streaming support" off
41
OPTIONS+=	SMB "Enable Samba input support" off
42
OPTIONS+=	FRIBIDI "Enable FriBiDi support" off
43
OPTIONS+=	LIBCDIO "Enable libcdio support" off
44
OPTIONS+=	CDPARANOIA "Enable cdparanoia support" off
45
OPTIONS+=	LIBLZO "Enable external liblzo library" off
46
47
MLINKS=		mplayer.1 mencoder.1
48
49
PATCHDIR=	${.CURDIR}/../mplayer/files
50
DATADIR=	${TARGETDIR}/share/mplayer
51
52
TOOLFILES=	calcbpp.pl countquant.pl dvd2divxscript.pl \
53
		menc2pass mencvcd mp.pl subedit.pl subsearch.sh \
54
		sws-test w32codec_dl.pl wma2ogg.pl x2mpsub.sh
55
56
.include <bsd.port.pre.mk>
57
58
LIB_DEPENDS+=	mp3lame.0:${PORTSDIR}/audio/lame
59
BUILD_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
60
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
61
62
CONFIGURE_ARGS+=	--disable-vidix-internal \
63
			--disable-freetype \
64
			--disable-x11 \
65
			--disable-fontconfig \
66
			--disable-rtc \
67
			--disable-arts \
68
			--disable-esd \
69
			--disable-caca \
70
			--disable-lirc \
71
			--disable-sdl \
72
			--disable-svga \
73
			--disable-aa \
74
			--disable-joystick
75
76
.include "${.CURDIR}/../mplayer/Makefile.options"
77
78
.if defined(WITH_TWOLAME)
79
LIB_DEPENDS+=	twolame.0:${PORTSDIR}/audio/twolame
80
.else
81
CONFIGURE_ARGS+=	--disable-twolame
82
.endif
83
84
.if defined(WITH_FAAC)
85
LIB_DEPENDS+=	faac.0:${PORTSDIR}/audio/faac
86
.else
87
CONFIGURE_ARGS+=	--disable-faac
88
.endif
89
90
pre-everything::
91
	@${ECHO_MSG} "N - O - T - E"
92
	@${ECHO_MSG} ""
93
	@${ECHO_MSG} "There are some knobs which *can* *not* be selected via the"
94
	@${ECHO_MSG} "OPTIONS framework. As this one is a slave port of multimedia/"
95
	@${ECHO_MSG} "mplayer, you might want to check mplayer's Makefile(s) in"
96
	@${ECHO_MSG} "order to learn more about them."
97
98
post-patch:
99
	@${REINPLACE_CMD} -e \
100
		's|libxmms.so.1|libxmms.so|' \
101
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
102
	@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \
103
		s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
104
		${WRKSRC}/${CONFIGURE_SCRIPT}
105
	@${REINPLACE_CMD} -e 's!/usr/local!${PREFIX}!' \
106
		${WRKSRC}/${CONFIGURE_SCRIPT}
107
	@${FIND} -E ${WRKSRC} -type f \
108
		-iregex ".*(configure|.sh|Makefile)" -print0 | \
109
		${XARGS} -x -0 -n 10 \
110
		${REINPLACE_CMD} -E \
111
			-e 's|[[:space:]]gcc[-[:digit:]\.]+| ${CC}|' \
112
			-e 's|[[:space:]]gcc| ${CC}|' \
113
			-e 's|\$$\(CC\)|${CC}|' \
114
			-e 's|/usr/X11R6|${X11BASE}|'
115
	@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \
116
		's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
117
		 s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${DEFAULT_DVD_DEVICE:S/dev\//dev\/\\\:/}|g ; \
118
		 s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${DEFAULT_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g'
119
120
post-configure:
121
	@${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \
122
		${WRKSRC}/config.mak
123
124
do-install:
125
	@${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${PREFIX}/bin
126
127
post-install:
128
	@${MKDIR} ${DATADIR}
129
	@${CHMOD} 755 ${DATADIR}
130
	@${MKDIR} ${DATADIR}/tools
131
	@${CHMOD} 755 ${DATADIR}/tools
132
.for tool in ${TOOLFILES}
133
	@${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${DATADIR}/tools
134
.endfor
135
136
.include <bsd.port.post.mk>
(-)mencoder/distinfo (+6 lines)
Line 0 Link Here
1
MD5 (MPlayer-1.0rc1.tar.bz2) = 18c05d88e22c3b815a43ca8d7152ccdc
2
SHA256 (MPlayer-1.0rc1.tar.bz2) = 8dd9dd61a0fe56904f5b76ddedb99bd359abaaf486e0b83b45e3357fecc81063
3
SIZE (MPlayer-1.0rc1.tar.bz2) = 8414213
4
MD5 (asmrules_fix_20061231.diff) = f0b71c38b1207c1d604be091876ac051
5
SHA256 (asmrules_fix_20061231.diff) = 3f71e6f4e07940d4d55084d0df12404371bc4e534a3a6b0756ca73e44ddbc3c4
6
SIZE (asmrules_fix_20061231.diff) = 1450
(-)mencoder/pkg-descr (+8 lines)
Line 0 Link Here
1
The "mencoder" component of the MPlayer project is a tool which
2
allows creation of video streams. It supports almost the same set
3
of input sources as the player component and supports encoding from
4
these sources through various codecs, including the popular ffmpeg,
5
XviD and x264 families. "Transcoding" DVDs into avi files is also
6
possible.
7
8
WWW: http://www.mplayerhq.hu/
(-)mencoder/pkg-plist (+15 lines)
Line 0 Link Here
1
bin/mencoder
2
%%DATADIR%%/tools/calcbpp.pl
3
%%DATADIR%%/tools/countquant.pl
4
%%DATADIR%%/tools/dvd2divxscript.pl
5
%%DATADIR%%/tools/menc2pass
6
%%DATADIR%%/tools/mencvcd
7
%%DATADIR%%/tools/mp.pl
8
%%DATADIR%%/tools/subedit.pl
9
%%DATADIR%%/tools/subsearch.sh
10
%%DATADIR%%/tools/sws-test
11
%%DATADIR%%/tools/w32codec_dl.pl
12
%%DATADIR%%/tools/wma2ogg.pl
13
%%DATADIR%%/tools/x2mpsub.sh
14
@dirrm %%DATADIR%%/tools
15
@dirrmtry %%DATADIR%%

Return to bug 115170