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

(-)mplayer/Makefile (-3 / +48 lines)
Lines 74-79 Link Here
74
# kernel config. This is standard for 5.x systems on I686_CPU and above.
74
# kernel config. This is standard for 5.x systems on I686_CPU and above.
75
# 4.x users will have to define this explicitly.
75
# 4.x users will have to define this explicitly.
76
#
76
#
77
# WITH_RTC
78
# default: undefined
79
# This option enables support for real time clock timing instead of
80
# defaulting to usleep() timing. This can improve cpu load as well
81
# as run-time accuracy.
77
#
82
#
78
# Feature options:
83
# Feature options:
79
# These options influence, which libraries mplayer is linked to.
84
# These options influence, which libraries mplayer is linked to.
Lines 171-177 Link Here
171
176
172
PORTNAME=	mplayer
177
PORTNAME=	mplayer
173
PORTVERSION=	0.92.0
178
PORTVERSION=	0.92.0
174
PORTREVISION=	6
179
PORTREVISION=	7
175
CATEGORIES=	multimedia audio ipv6
180
CATEGORIES=	multimedia audio ipv6
176
MASTER_SITES=	http://www1.mplayerhq.hu/MPlayer/releases/ \
181
MASTER_SITES=	http://www1.mplayerhq.hu/MPlayer/releases/ \
177
		http://www2.mplayerhq.hu/MPlayer/releases/ \
182
		http://www2.mplayerhq.hu/MPlayer/releases/ \
Lines 220-227 Link Here
220
USE_REINPLACE=	yes
225
USE_REINPLACE=	yes
221
MAN1=		mplayer.1
226
MAN1=		mplayer.1
222
MANCOMPRESSED=	no
227
MANCOMPRESSED=	no
223
INSTALLS_SHLIB=	yes
224
LDCONFIG_DIRS=	%%PREFIX%%/lib %%PREFIX%%/lib/mplayer/vidix
225
228
226
CONFFILES=	codecs.conf example.conf input.conf menu.conf
229
CONFFILES=	codecs.conf example.conf input.conf menu.conf
227
DOCFILES=	bugreports.html cd-dvd.html codecs-in.html \
230
DOCFILES=	bugreports.html cd-dvd.html codecs-in.html \
Lines 236-241 Link Here
236
239
237
.include <bsd.port.pre.mk>
240
.include <bsd.port.pre.mk>
238
241
242
#Building of vidix dependent shared libs is only possible
243
#on i386 at the moment.
244
.if ${ARCH} == "i386"
245
INSTALLS_SHLIB=	yes
246
LDCONFIG_DIRS=	%%PREFIX%%/lib %%PREFIX%%/lib/mplayer/vidix
247
PLIST_SUB+=	VIDIX=""
248
.else
249
CONFIGURE_ARGS+=--disable-vidix
250
PLIST_SUB+=	VIDIX="@comment "
251
.endif
252
253
#.if exists(${LOCALBASE}/modules/rtc.ko)
254
#WITH_RTC=	yes
255
#.endif
256
239
.if exists(${LOCALBASE}/lib/libartsc.so.0)
257
.if exists(${LOCALBASE}/lib/libartsc.so.0)
240
WITH_ARTS=	yes
258
WITH_ARTS=	yes
241
.endif
259
.endif
Lines 321-326 Link Here
321
WITH_FREETYPE=	yes
339
WITH_FREETYPE=	yes
322
.endif
340
.endif
323
341
342
.if defined (DEBUG)
343
CONFIGURE_ARGS+=	--enable-debug
344
.endif
345
324
.if defined(WITH_OPTIMIZED_CFLAGS)
346
.if defined(WITH_OPTIMIZED_CFLAGS)
325
CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
347
CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
326
.endif
348
.endif
Lines 332-337 Link Here
332
PLIST_SUB+=	GMPLAYER="@comment "
354
PLIST_SUB+=	GMPLAYER="@comment "
333
.endif
355
.endif
334
356
357
.if defined(WITH_RTC)
358
BUILD_DEPENDS+=	${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc
359
RUN_DEPENDS+=	${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc
360
CONFIGURE_ARGS+=	--enable-rtc
361
CONFIGURE_ENV+=		CFLAGS+="-I/${LOCALBASE}/include"
362
.else
363
CONFIGURE_ARGS+=	--disable-rtc
364
.endif
365
335
.if defined(WITH_GUI)
366
.if defined(WITH_GUI)
336
USE_GNOME+=	gtk12
367
USE_GNOME+=	gtk12
337
RUN_DEPENDS+=	${LOCALBASE}/share/mplayer/Skin:${PORTSDIR}/multimedia/mplayer-skins
368
RUN_DEPENDS+=	${LOCALBASE}/share/mplayer/Skin:${PORTSDIR}/multimedia/mplayer-skins
Lines 553-558 Link Here
553
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
584
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
554
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
585
	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
555
		${WRKSRC}/configure
586
		${WRKSRC}/configure
587
.if defined(WITH_RTC)
588
	@${REINPLACE_CMD} -e \
589
		's|<linux/rtc.h>|<rtc.h>|' \
590
		${WRKSRC}/mplayer.c
591
	@${REINPLACE_CMD} -e \
592
		's|RTC_IRQP_SET|RTCIO_IRQP_SET|' \
593
		${WRKSRC}/mplayer.c
594
	@${REINPLACE_CMD} -e \
595
		's|RTC_PIE_ON|RTCIO_PIE_ON|' \
596
		${WRKSRC}/mplayer.c
597
	@${REINPLACE_CMD} -e \
598
		's|rtc_fd|rtc|' \
599
		${WRKSRC}/mplayer.c
600
.endif
556
601
557
pre-configure:
602
pre-configure:
558
.if defined(WITH_LIBDVDREAD)
603
.if defined(WITH_LIBDVDREAD)
(-)mplayer/files/patch-ad (-1 / +15 lines)
Lines 1-5 Link Here
1
--- configure.orig	Sat Aug  9 16:12:30 2003
1
--- configure.orig	Sat Aug  9 16:12:30 2003
2
+++ configure	Tue Dec 23 18:52:29 2003
2
+++ configure	Mon Mar 15 20:51:21 2004
3
@@ -300,7 +300,7 @@
3
@@ -300,7 +300,7 @@
4
 
4
 
5
 
5
 
Lines 104-109 Link Here
104
 echores "yes (using $_ld_pthread)"
104
 echores "yes (using $_ld_pthread)"
105
 
105
 
106
 
106
 
107
@@ -3819,11 +3781,11 @@
108
 
109
 
110
 echocheck "RTC"
111
-if linux ; then
112
+if freebsd ; then
113
   if test "$_rtc" = auto ; then
114
     cat > $TMPC << EOF
115
 #include <sys/ioctl.h>
116
-#include <linux/rtc.h>
117
+#include <rtc.h>
118
 int main(void) { return RTC_IRQP_READ; }
119
 EOF
120
     _rtc=no
107
@@ -4848,7 +4810,7 @@
121
@@ -4848,7 +4810,7 @@
108
   CFLAGS="$CFLAGS -D_REENTRANT"
122
   CFLAGS="$CFLAGS -D_REENTRANT"
109
 elif bsd ; then
123
 elif bsd ; then
(-)mplayer/pkg-plist (-11 / +11 lines)
Lines 13-27 Link Here
13
%%PORTDOCS%%share/doc/mplayer/sound.html
13
%%PORTDOCS%%share/doc/mplayer/sound.html
14
%%PORTDOCS%%share/doc/mplayer/video.html
14
%%PORTDOCS%%share/doc/mplayer/video.html
15
%%PORTDOCS%%share/doc/mplayer/users_against_developers.html
15
%%PORTDOCS%%share/doc/mplayer/users_against_developers.html
16
lib/libdha.so.0
16
%%VIDIX%%lib/libdha.so.0
17
lib/libdha-0.so.1
17
%%VIDIX%%lib/libdha-0.so.1
18
lib/mplayer/vidix/cyberblade_vid.so
18
%%VIDIX%%lib/mplayer/vidix/cyberblade_vid.so
19
lib/mplayer/vidix/mach64_vid.so
19
%%VIDIX%%lib/mplayer/vidix/mach64_vid.so
20
lib/mplayer/vidix/mga_crtc2_vid.so
20
%%VIDIX%%lib/mplayer/vidix/mga_crtc2_vid.so
21
lib/mplayer/vidix/mga_vid.so
21
%%VIDIX%%lib/mplayer/vidix/mga_vid.so
22
lib/mplayer/vidix/pm3_vid.so
22
%%VIDIX%%lib/mplayer/vidix/pm3_vid.so
23
lib/mplayer/vidix/radeon_vid.so
23
%%VIDIX%%lib/mplayer/vidix/radeon_vid.so
24
lib/mplayer/vidix/rage128_vid.so
24
%%VIDIX%%lib/mplayer/vidix/rage128_vid.so
25
share/mplayer/tools/calcbpp.pl
25
share/mplayer/tools/calcbpp.pl
26
share/mplayer/tools/countquant.pl
26
share/mplayer/tools/countquant.pl
27
share/mplayer/tools/dvd2divxscript.pl
27
share/mplayer/tools/dvd2divxscript.pl
Lines 38-42 Link Here
38
@dirrm share/mplayer/tools
38
@dirrm share/mplayer/tools
39
@unexec rmdir %D/share/mplayer 2>/dev/null || true
39
@unexec rmdir %D/share/mplayer 2>/dev/null || true
40
%%PORTDOCS%%@dirrm share/doc/mplayer
40
%%PORTDOCS%%@dirrm share/doc/mplayer
41
@dirrm lib/mplayer/vidix
41
%%VIDIX%%@dirrm lib/mplayer/vidix
42
@dirrm lib/mplayer
42
%%VIDIX%%@dirrm lib/mplayer

Return to bug 64314