View | Details | Raw Unified | Return to bug 202404 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/ports/multimedia/mplayer2/Makefile (-184 / +127 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	mplayer2
3
PORTNAME=	mplayer2
4
PORTVERSION=	${MPLAYER2_PORT_VERSION}
4
PORTVERSION=	${MPLAYER2_PORT_VERSION}
5
PORTREVISION=	13
5
PORTREVISION=	14
6
CATEGORIES=	multimedia audio
6
CATEGORIES=	multimedia audio
7
MASTER_SITES=	LOCAL/gblach/
7
MASTER_SITES=	LOCAL/gblach/
8
8
Lines 25-31 Link Here
25
CONFIGURE_ARGS=	--cc=${CC} \
25
CONFIGURE_ARGS=	--cc=${CC} \
26
		--extra-libs='-lavresample ${PORTAUDIOLIB}' \
26
		--extra-libs='-lavresample ${PORTAUDIOLIB}' \
27
		--mandir=${PREFIX}/man \
27
		--mandir=${PREFIX}/man \
28
		--enable-libavresample \
29
		--disable-alsa \
28
		--disable-alsa \
30
		--disable-liba52 \
29
		--disable-liba52 \
31
		--disable-directfb \
30
		--disable-directfb \
Lines 41-57 Link Here
41
MPLAYER2_SNAPSHOT_DATE=	2013-04-28
40
MPLAYER2_SNAPSHOT_DATE=	2013-04-28
42
MPLAYER2_PORT_VERSION=	2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g}
41
MPLAYER2_PORT_VERSION=	2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g}
43
42
44
43
OPTIONS_DEFINE=	ASS CACA DEBUG DV GIF IPV6 JACK LADSPA LIBBLURAY LIBCDIO \
45
OPTIONS_DEFINE=	DEBUG RTC IPV6 SMB LIBBLURAY DV THEORA \
44
		LIRC MAD OPENGL PORTAUDIO PULSE REALPLAYER RTC SDL SMB SPEEX \
46
		X11 XINERAMA OPENGL SDL VDPAU GIF CACA \
45
		THEORA V4L VDPAU X11 XINERAMA
47
		MAD SPEEX LIBCDIO LADSPA REALPLAYER \
46
OPTIONS_DEFINE_i386+=	WIN32
48
		JACK PULSE PORTAUDIO ASS LIRC
47
OPTIONS_DEFAULT=	ASS X11
49
OPTIONS_DEFAULT=X11 ASS
48
OPTIONS_SUB=	yes
50
51
.if !defined(PACKAGE_BUILDING)
52
OPTIONS_DEFINE+=	WIN32
53
OPTIONS_DEFAULT+=	WIN32
54
.endif
55
49
56
RTC_DESC=	Enable kernel realtime clock timing
50
RTC_DESC=	Enable kernel realtime clock timing
57
PULSE_DESC=	Enable PulseAudio support
51
PULSE_DESC=	Enable PulseAudio support
Lines 62-80 Link Here
62
LIRC_DESC=	Enable lirc support
56
LIRC_DESC=	Enable lirc support
63
LIBCDIO_DESC=	Enable libcdio support
57
LIBCDIO_DESC=	Enable libcdio support
64
V4L_DESC=	Enable Video4Linux TV support
58
V4L_DESC=	Enable Video4Linux TV support
59
WIN32_DESC=	Win32 codec pack support
65
60
66
SUB_FILES=	pkg-message
61
SUB_FILES=	pkg-message
67
62
68
CONFLICTS=	mplayer-1.*
63
CONFLICTS=	mplayer-1.*
69
64
65
ASS_LIB_DEPENDS=	libass.so:${PORTSDIR}/multimedia/libass
66
ASS_CONFIGURE_ON=	--enable-libass
67
ASS_CONFIGURE_OFF=	--disable-libass --disable-enca
68
69
CACA_LIB_DEPENDS=	libcaca.so:${PORTSDIR}/graphics/libcaca
70
CACA_CONFIGURE_ON=	--enable-caca
71
CACA_CONFIGURE_OFF=	--disable-caca
72
73
DV_LIB_DEPENDS=		libdv.so:${PORTSDIR}/multimedia/libdv
74
DV_CONFIGURE_ON=	--enable-libdv
75
DV_CONFIGURE_OFF=	--disable-libdv
76
77
GIF_LIB_DEPENDS=	libgif.so:${PORTSDIR}/graphics/giflib
78
GIF_CONFIGURE_ON=	--enable-gif
79
GIF_CONFIGURE_OFF=	--disable-gif
80
81
IPV6_CONFIGURE_ON=	--enable-inet6
82
IPV6_CONFIGURE_OFF=	--disable-inet6
83
84
JACK_LIB_DEPENDS=	libjack.so:${PORTSDIR}/audio/jack
85
JACK_CONFIGURE_ON=	--enable-jack
86
JACK_CONFIGURE_OFF=	--disable-jack
87
88
LADSPA_RUN_DEPENDS=	${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa
89
LADSPA_CONFIGURE_ON=	--enable-ladspa
90
LADSPA_CONFIGURE_OFF=	--disable-ladspa
91
92
LIBBLURAY_LIB_DEPENDS=	libbluray.so:${PORTSDIR}/multimedia/libbluray
93
LIBBLURAY_CONFIGURE_ON=	--enable-bluray
94
LIBBLURAY_CONFIGURE_OFF=--disable-bluray
95
96
LIBCDIO_LIB_DEPENDS=	libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia
97
LIBCDIO_CONFIGURE_ON=	--enable-libcdio
98
LIBCDIO_CONFIGURE_OFF=	--disable-libcdio
99
100
LIRC_LIB_DEPENDS=	liblirc_client.so:${PORTSDIR}/comms/lirc
101
LIRC_CONFIGURE_ON=	--enable-lirc
102
LIRC_CONFIGURE_OFF=	--disable-lirc
103
104
MAD_LIB_DEPENDS=	libmad.so:${PORTSDIR}/audio/libmad
105
MAD_CONFIGURE_ON=	--enable-mad
106
MAD_CONFIGURE_OFF=	--disable-mad
107
108
OPENGL_USE=		GL=gl XORG=glproto
109
OPENGL_CONFIGURE_ON=	--enable-gl
110
OPENGL_CONFIGURE_OFF=	--disable-gl
111
112
PORTAUDIO_LIB_DEPENDS=	libportaudio.so:${PORTSDIR}/audio/portaudio
113
PORTAUDIO_CONFIGURE_ON=	--enable-portaudio
114
PORTAUDIO_CONFIGURE_OFF=--disable-portaudio
115
116
PULSE_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio
117
PULSE_CONFIGURE_ON=	--enable-pulse
118
PULSE_CONFIGURE_OFF=	--disable-pulse
119
120
REALPLAYER_BUILD_DEPENDS=realplay:${PORTSDIR}/multimedia/linux-realplayer
121
REALPLAYER_CONFIGURE_ON= --enable-real
122
REALPLAYER_CONFIGURE_OFF=--disable-real
123
124
RTC_BUILD_DEPENDS=	${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc
125
RTC_CONFIGURE_ON=	--enable-rtc
126
RTC_CONFIGURE_OFF=	--disable-rtc
127
128
SDL_USE=		SDL=sdl
129
SDL_CONFIGURE_ON=	--enable-sdl
130
SDL_CONFIGURE_OFF=	--disable-sdl
131
132
SMB_LIB_DEPENDS=	libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient
133
SMB_CONFIGURE_ON=	--enable-smb
134
SMB_CONFIGURE_OFF=	--disable-smb
135
136
SPEEX_LIB_DEPENDS=	libspeex.so:${PORTSDIR}/audio/speex
137
SPEEX_CONFIGURE_ON=	--enable-speex
138
SPEEX_CONFIGURE_OFF=	--disable-speex
139
140
THEORA_LIB_DEPENDS=	libtheora.so:${PORTSDIR}/multimedia/libtheora
141
THEORA_CONFIGURE_ON=	--enable-theora
142
THEORA_EXTRA_LIBS=	-ltheoradec
143
THEORA_CONFIGURE_OFF=	--disable-theora
144
145
V4L_BUILD_DEPENDS=	${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
146
V4L_LIB_DEPENDS=	libv4l2.so:${PORTSDIR}/multimedia/libv4l
147
V4L_CONFIGURE_ON=	--enable-tv-v4l2
148
V4L_EXTRA_LIBS=		-lv4l2
149
V4L_CONFIGURE_OFF=	--disable-tv-v4l2
150
151
VDPAU_LIB_DEPENDS=	libvdpau.so:${PORTSDIR}/multimedia/libvdpau
152
VDPAU_CONFIGURE_ON=	--enable-vdpau
153
VDPAU_CONFIGURE_OFF=	--disable-vdpau
154
155
WIN32_RUN_DEPENDS=	win32-codecs>0:${PORTSDIR}/multimedia/win32-codecs
156
WIN32_CONFIGURE_ON=	--codecsdir=${LOCALBASE}/lib/win32
157
WIN32_CONFIGURE_OFF=	--disable-win32dll --disable-qtx
158
159
X11_USE=		XORG=x11,xv,xxf86vm
160
X11_CONFIGURE_ON=	--enable-x11
161
X11_CONFIGURE_OFF=	--disable-x11
162
163
XINERAMA_USE=		XORG=xinerama,xineramaproto
164
XINERAMA_CONFIGURE_ON=	--enable-xinerama
165
XINERAMA_CONFIGURE_OFF=	--disable-xinerama
166
70
.include <bsd.port.options.mk>
167
.include <bsd.port.options.mk>
71
168
72
.if ${ARCH} == "sparc64"
169
.if ${ARCH} == "sparc64"
73
BROKEN=		Does not compile on sparc64
170
BROKEN=		Does not compile on sparc64
74
.endif
171
.endif
75
172
76
WITH_CDROM_DEVICE?=	/dev/cd0
77
78
#On i386, gcc runs out of general purpose registers when
173
#On i386, gcc runs out of general purpose registers when
79
#trying to compile a debug version with the default flags.
174
#trying to compile a debug version with the default flags.
80
.if ${PORT_OPTIONS:MDEBUG}
175
.if ${PORT_OPTIONS:MDEBUG}
Lines 90-264 Link Here
90
.endif
185
.endif
91
.endif
186
.endif
92
187
93
.if ${PORT_OPTIONS:MIPV6}
188
.if defined(WITH_KERN_HZ)
94
CATEGORIES+=		ipv6
189
DEFAULT_KERN_HZ=${WITH_KERN_HZ}
95
.else
96
CONFIGURE_ARGS+=	--disable-inet6
97
.endif
98
99
.if ${PORT_OPTIONS:MGIF}
100
LIB_DEPENDS+=		libgif.so:${PORTSDIR}/graphics/giflib
101
.else
102
CONFIGURE_ARGS+=	--disable-gif
103
.endif
104
105
.if ${PORT_OPTIONS:MMAD}
106
LIB_DEPENDS+=		libmad.so:${PORTSDIR}/audio/libmad
107
.else
108
CONFIGURE_ARGS+=	--disable-mad
109
.endif
110
111
.if ${PORT_OPTIONS:MDV}
112
LIB_DEPENDS+=		libdv.so:${PORTSDIR}/multimedia/libdv
113
.else
114
CONFIGURE_ARGS+=	--disable-libdv
115
.endif
116
117
.if ${PORT_OPTIONS:MTHEORA}
118
LIB_DEPENDS+=		libtheora.so:${PORTSDIR}/multimedia/libtheora
119
.else
120
CONFIGURE_ARGS+=	--disable-theora
121
.endif
122
123
.if ${PORT_OPTIONS:MSPEEX}
124
LIB_DEPENDS+=		libspeex.so:${PORTSDIR}/audio/speex
125
.else
126
CONFIGURE_ARGS+=	--disable-speex
127
.endif
128
129
.if ${PORT_OPTIONS:MJACK}
130
LIB_DEPENDS+=		libjack.so:${PORTSDIR}/audio/jack
131
.else
132
CONFIGURE_ARGS+=	--disable-jack
133
.endif
134
135
.if ${PORT_OPTIONS:MPULSE}
136
LIB_DEPENDS+=		libpulse.so:${PORTSDIR}/audio/pulseaudio
137
.else
138
CONFIGURE_ARGS+=	--disable-pulse
139
.endif
140
141
.if ${PORT_OPTIONS:MPORTAUDIO}
142
LIB_DEPENDS+=		libportaudio.so:${PORTSDIR}/audio/portaudio
143
PORTAUDIOLIB=		-lportaudio
144
.else
145
CONFIGURE_ARGS+=	--disable-portaudio
146
.endif
147
148
.if ${PORT_OPTIONS:MLIBBLURAY}
149
LIB_DEPENDS+=		libbluray.so:${PORTSDIR}/multimedia/libbluray
150
.else
151
CONFIGURE_ARGS+=	--disable-bluray
152
.endif
153
154
.if ${PORT_OPTIONS:MSMB}
155
LIB_DEPENDS+=		libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient
156
.else
157
CONFIGURE_ARGS+=	--disable-smb
158
.endif
159
160
.if ${PORT_OPTIONS:MLIBCDIO}
161
LIB_DEPENDS+=		libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia
162
.else
163
CONFIGURE_ARGS+=	--disable-libcdio
164
.endif
165
166
.if ${PORT_OPTIONS:MLADSPA}
167
RUN_DEPENDS+=		${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa
168
.else
169
CONFIGURE_ARGS+=	--disable-ladspa
170
.endif
171
172
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
173
.if ${PORT_OPTIONS:MWIN32} && !defined(PACKAGE_BUILDING) && ${ARCH} == "i386"
174
CODEC_PORT=		${PORTSDIR}/multimedia/win32-codecs
175
CODEC_DETECTION_FILE!=	${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE
176
RUN_DEPENDS+=		${CODEC_DETECTION_FILE}:${CODEC_PORT}
177
CONFIGURE_ARGS+=	--codecsdir=${LOCALBASE}/lib/win32
178
.else
179
CONFIGURE_ARGS+=	--disable-win32dll --disable-qtx
180
.endif
181
.endif # ARCH == i386/amd64
182
183
.if ${PORT_OPTIONS:MREALPLAYER}
184
RUN_DEPENDS+=		realplay:${PORTSDIR}/multimedia/linux-realplayer
185
BUILD_DEPENDS+=		realplay:${PORTSDIR}/multimedia/linux-realplayer
186
.else
187
CONFIGURE_ARGS+=	--disable-real
188
.endif
189
190
#.if ${PORT_OPTIONS:MV4L}
191
#BUILD_DEPENDS+=		${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
192
#LIB_DEPENDS+=		libv4l2.so:${PORTSDIR}/multimedia/libv4l
193
#CONFIGURE_ARGS+=	--enable-tv-v4l2
194
#EXTRA_LIBS+=		-lv4l2
195
#.else
196
CONFIGURE_ARGS+=	--disable-tv-v4l2
197
#.endif
198
199
#.if defined(EXTRA_LIBS)
200
#CONFIGURE_ARGS+=	--extra-libs="${EXTRA_LIBS}"
201
#.endif
202
203
.if ${PORT_OPTIONS:MASS}
204
LIB_DEPENDS+=		libass.so:${PORTSDIR}/multimedia/libass
205
.else
206
CONFIGURE_ARGS+=	--disable-libass --disable-enca
207
.endif
208
209
.if ${PORT_OPTIONS:MX11}
210
USE_XORG=		x11 xv xxf86vm
211
.if ${PORT_OPTIONS:MOPENGL}
212
USE_XORG+=		glproto
213
LIB_DEPENDS+=		libGL.so:${PORTSDIR}/graphics/libGL
214
.else
215
CONFIGURE_ARGS+=	--disable-gl
216
.endif
217
.if ${PORT_OPTIONS:MXINERAMA}
218
USE_XORG+=		xinerama xineramaproto
219
.else
220
CONFIGURE_ARGS+=	--disable-xinerama
221
.endif
222
.else			#WITHOUT_X11
223
CONFIGURE_ARGS+=	--disable-x11
224
.endif
225
226
.if ${PORT_OPTIONS:MVDPAU}
227
LIB_DEPENDS+=		libvdpau.so:${PORTSDIR}/multimedia/libvdpau
228
.else
229
CONFIGURE_ARGS+=	--disable-vdpau
230
.endif
231
232
.if ${PORT_OPTIONS:MRTC}
233
BUILD_DEPENDS+=	${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc
234
RUN_DEPENDS+=	${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc
235
CONFIGURE_ARGS+=	--enable-rtc
236
.else
237
CONFIGURE_ARGS+=	--disable-rtc
238
.endif
239
240
.if ${PORT_OPTIONS:MLIBCACA}
241
LIB_DEPENDS+=		libcaca.so:${PORTSDIR}/graphics/libcaca
242
.else
190
.else
243
CONFIGURE_ARGS+=	--disable-caca
191
DEFAULT_KERN_HZ=1024
244
.endif
192
.endif
245
193
246
.if ${PORT_OPTIONS:MLIRC}
194
.if defined(THEORA_EXTRA_LIBS)
247
LIB_DEPENDS+=		liblirc_client.so:${PORTSDIR}/comms/lirc
195
CONFIGURE_ARGS+=	--extra-libs="${THEORA_EXTRA_LIBS}"
248
.else
249
CONFIGURE_ARGS+=	--disable-lirc
250
.endif
196
.endif
251
197
252
.if ${PORT_OPTIONS:MSDL}
198
.if defined(V4L_EXTRA_LIBS)
253
USE_SDL=		sdl
199
CONFIGURE_ARGS+=	--extra-libs="${V4L_EXTRA_LIBS}"
254
.else
255
CONFIGURE_ARGS+=	--disable-sdl
256
.endif
200
.endif
257
201
258
.if defined(WITH_KERN_HZ)
202
# Depend on RESTRICTED package when built manually
259
DEFAULT_KERN_HZ=${WITH_KERN_HZ}
203
.if !defined(PACKAGE_BUILDING)
260
.else
204
OPTIONS_DEFAULT_i386+=	WIN32
261
DEFAULT_KERN_HZ=1024
262
.endif
205
.endif
263
206
264
pre-everything::
207
pre-everything::
Lines 270-286 Link Here
270
213
271
post-patch:
214
post-patch:
272
.if ${OSVERSION} >= 900010
215
.if ${OSVERSION} >= 900010
273
	@${REINPLACE_CMD} -e \
216
	${REINPLACE_CMD} -e \
274
		'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \
217
		'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \
275
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
218
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
276
.endif
219
.endif
277
	@${REINPLACE_CMD} \
220
	${REINPLACE_CMD} \
278
		-e 's|/dev/acd0|${WITH_CDROM_DEVICE}|' \
221
		-e 's|/dev/acd0|${WITH_CDROM_DEVICE}|' \
279
		-e 's|/usr/local|${LOCALBASE}|' \
222
		-e 's|/usr/local|${LOCALBASE}|' \
280
		-e 's|-lbz2|/usr/lib/libbz2.so|' \
223
		-e 's|-lbz2|/usr/lib/libbz2.so|' \
281
		-e 's|-lncurses|/usr/lib/libncurses.so|' \
224
		-e 's|-lncurses|/usr/lib/libncurses.so|' \
282
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
225
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
283
	@${FIND} -E ${WRKSRC} -type f \
226
	${FIND} -E ${WRKSRC} -type f \
284
		-iregex ".*(configure|.sh|Makefile)" -print0 | \
227
		-iregex ".*(configure|.sh|Makefile)" -print0 | \
285
		${XARGS} -x -0 -n 10 \
228
		${XARGS} -x -0 -n 10 \
286
		${REINPLACE_CMD} -E \
229
		${REINPLACE_CMD} -E \
Lines 288-308 Link Here
288
			-e 's|[[:space:]]gcc| ${CC}|' \
231
			-e 's|[[:space:]]gcc| ${CC}|' \
289
			-e 's|\$$\(CC\)|${CC}|' \
232
			-e 's|\$$\(CC\)|${CC}|' \
290
			-e 's|/usr/X11R6|${LOCALBASE}|'
233
			-e 's|/usr/X11R6|${LOCALBASE}|'
291
	@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \
234
	${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \
292
		's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
235
		's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \
293
		 s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \
236
		 s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \
294
		 s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g'
237
		 s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g'
295
.if ${PORT_OPTIONS:MRTC}
238
.if ${PORT_OPTIONS:MRTC}
296
	@${REINPLACE_CMD} -e \
239
	${REINPLACE_CMD} -e \
297
		's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \
240
		's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \
298
		${WRKSRC}/mplayer.c
241
		${WRKSRC}/mplayer.c
299
.endif
242
.endif
300
243
301
post-install:
244
post-install:
302
	@${INSTALL_DATA} ${WRKSRC}/etc/example.conf \
245
	${INSTALL_DATA} ${WRKSRC}/etc/example.conf \
303
		${STAGEDIR}${PREFIX}/etc/mplayer/mplayer.conf.sample
246
		${STAGEDIR}${PREFIX}/etc/mplayer/mplayer.conf.sample
304
.for conf in codecs input
247
.for conf in codecs input
305
	@${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf \
248
	${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf \
306
		${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample
249
		${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample
307
.endfor
250
.endfor
308
251
(-)/usr/ports/multimedia/mplayer2/files/patch-configure (-5 / +191 lines)
Lines 1-6 Link Here
1
--- configure.orig	2012-05-12 01:08:28.473233004 -0500
1
--- configure.orig	2013-07-09 16:33:11 UTC
2
+++ configure	2012-05-12 01:10:33.294799627 -0500
2
+++ configure
3
@@ -3111,7 +3111,7 @@ echocheck "pthread"
3
@@ -1234,7 +1234,7 @@ if test "$(basename $_cc)" = "icc" || te
4
   esac
5
   echores "$cc_version"
6
 else
7
-  for _cc in "$_cc" gcc cc ; do
8
+  for _cc in "$_cc" cc cc ; do
9
     cc_name_tmp=$($_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1)
10
     if test "$cc_name_tmp" = "gcc"; then
11
       cc_name=$cc_name_tmp
12
@@ -1383,7 +1383,7 @@ EOF
13
   if test "$_gcc3_ext" != ""; then
14
     # if we had to disable sse/sse2 because the active kernel does not
15
     # support this instruction set extension, we also have to tell
16
-    # gcc3 to not generate sse/sse2 instructions for normal C code
17
+    # cc to not generate sse/sse2 instructions for normal C code
18
     cflag_check $_march $_gcc3_ext && _march="$_march $_gcc3_ext"
19
   fi
20
 
21
@@ -1428,15 +1428,15 @@ case "$host_arch" in
22
         # AMD CPUs just from their signature. Instead, we check directly
23
         # whether it supports SSE.
24
         if test "$_sse" = yes; then
25
-            # gcc treats athlon-xp, athlon-4 and athlon-mp similarly.
26
+            # cc treats athlon-xp, athlon-4 and athlon-mp similarly.
27
             proc=athlon-xp
28
         else
29
-            # Again, gcc treats athlon and athlon-tbird similarly.
30
+            # Again, cc treats athlon and athlon-tbird similarly.
31
             proc=athlon
32
         fi
33
         ;;
34
     15) iproc=686
35
-        # k8 cpu-type only supported in gcc >= 3.4.0, but that will be
36
+        # k8 cpu-type only supported in cc >= 3.4.0, but that will be
37
         # caught and remedied in the optimization tests below.
38
         proc=k8
39
         ;;
40
@@ -1520,11 +1520,11 @@ case "$host_arch" in
41
   fi # test "$_runtime_cpudetection" = no
42
 
43
 
44
-    # check that gcc supports our CPU, if not, fall back to earlier ones
45
+    # check that cc supports our CPU, if not, fall back to earlier ones
46
     # LGB: check -mcpu and -march swithing step by step with enabling
47
     # to fall back till 386.
48
 
49
-    # gcc >= 3.4.0  doesn't support -mcpu, we have to use -mtune instead
50
+    # cc >= 3.4.0  doesn't support -mcpu, we have to use -mtune instead
51
 
52
     if [ "$cc_vendor" = "gnu" ] && ([ "$_cc_major" -gt 3 ] || ( [ "$_cc_major" = 3 ] && [ "$_cc_minor" -ge 4 ])) ; then
53
         cpuopt=-mtune
54
@@ -1648,7 +1648,7 @@ case "$host_arch" in
55
     def_fast_64bit='#define HAVE_FAST_64BIT 1'
56
     iproc='x86_64'
57
 
58
-    # gcc >= 3.4.0  doesn't support -mcpu, we have to use -mtune instead
59
+    # cc >= 3.4.0  doesn't support -mcpu, we have to use -mtune instead
60
     if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then
61
         cpuopt=-mtune
62
     else
63
@@ -1694,7 +1694,7 @@ case "$host_arch" in
64
       if test "$proc" = "k8"; then
65
         cflag_check -march=$proc $cpuopt=$proc || proc=athlon-xp
66
       fi
67
-      # This will fail if gcc version < 3.3, which is ok because earlier
68
+      # This will fail if cc version < 3.3, which is ok because earlier
69
       # versions don't really support 64-bit on amd64.
70
       # Is this a valid assumption? -Corey
71
       if test "$proc" = "athlon-xp"; then
72
@@ -1793,7 +1793,7 @@ case "$host_arch" in
73
         fi
74
         ;;
75
       NetBSD)
76
-        # only gcc 3.4 works reliably with AltiVec code under NetBSD
77
+        # only cc 3.4 works reliably with AltiVec code under NetBSD
78
         case $cc_version in
79
             2*|3.0*|3.1*|3.2*|3.3*)
80
                 ;;
81
@@ -1830,7 +1830,7 @@ case "$host_arch" in
82
             POWER3) _march='-mcpu=power3' _mcpu='-mtune=power3' ;;
83
             *) ;;
84
         esac
85
-        # gcc 3.1(.1) and up supports 7400 and 7450
86
+        # cc 3.1(.1) and up supports 7400 and 7450
87
         if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then
88
             case "$proc" in
89
                 7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400' ;;
90
@@ -1838,21 +1838,21 @@ case "$host_arch" in
91
                 *) ;;
92
             esac
93
         fi
94
-        # gcc 3.2 and up supports 970
95
+        # cc 3.2 and up supports 970
96
         if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then
97
             case "$proc" in
98
                 970*|PPC970*) _march='-mcpu=970' _mcpu='-mtune=970' ;;
99
                 *) ;;
100
             esac
101
         fi
102
-        # gcc 3.3 and up supports POWER4
103
+        # cc 3.3 and up supports POWER4
104
         if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then
105
             case "$proc" in
106
                 POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4' ;;
107
                 *) ;;
108
             esac
109
         fi
110
-        # gcc 3.4 and up supports 440*
111
+        # cc 3.4 and up supports 440*
112
         if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "4" || test "$_cc_major" -ge "4"; then
113
             case "$proc" in
114
                 440EP*) _march='-mcpu=440fp' _mcpu='-mtune=440fp' ;;
115
@@ -1860,7 +1860,7 @@ case "$host_arch" in
116
                 *) ;;
117
             esac
118
         fi
119
-        # gcc 4.0 and up supports POWER5
120
+        # cc 4.0 and up supports POWER5
121
         if test "$_cc_major" -ge "4"; then
122
             case "$proc" in
123
                 POWER5*) _march='-mcpu=power5' _mcpu='-mtune=power5' ;;
124
@@ -2025,7 +2025,7 @@ if darwin && test "$cc_vendor" = "gnu" ;
125
 echocheck "GCC support of -mstackrealign"
126
 # GCC 4.2 and some earlier Apple versions support this flag on x86. Since
127
 # Mac OS X/Intel has an ABI different from Windows this is needed to avoid
128
-# crashes when loading Win32 DLLs. Unfortunately some gcc versions create
129
+# crashes when loading Win32 DLLs. Unfortunately some cc versions create
130
 # wrong code with this flag, but this can be worked around by adding
131
 # -fno-unit-at-a-time as described in the blog post at
132
 # http://www.dribin.org/dave/blog/archives/2006/12/05/missing_third_param/
133
@@ -2139,7 +2139,7 @@ int main(void) {
134
         "xor %0, %0"
135
         :"=b"(x)
136
         // just adding ebx to clobber list seems unreliable with some
137
-        // compilers, e.g. Haiku's gcc 2.95
138
+        // compilers, e.g. Haiku's cc 2.95
139
     );
140
     // and the above check does not work for OSX 64 bit...
141
     __asm__ volatile("":::"%ebx");
142
@@ -2676,7 +2676,7 @@ echocheck "pthread"
4
 if linux ; then
143
 if linux ; then
5
   THREAD_CFLAGS=-D_REENTRANT
144
   THREAD_CFLAGS=-D_REENTRANT
6
 elif freebsd || netbsd || openbsd || bsdos ; then
145
 elif freebsd || netbsd || openbsd || bsdos ; then
Lines 9-15 Link Here
9
 fi
148
 fi
10
 if test "$_pthreads" = auto ; then
149
 if test "$_pthreads" = auto ; then
11
 cat > $TMPC << EOF
150
 cat > $TMPC << EOF
12
@@ -3128,7 +3128,7 @@ int main(void) {
151
@@ -2693,7 +2693,7 @@ int main(void) {
13
 EOF
152
 EOF
14
 _pthreads=no
153
 _pthreads=no
15
 if ! hpux ; then
154
 if ! hpux ; then
Lines 18-24 Link Here
18
     # for crosscompilation, we cannot execute the program, be happy if we can link statically
157
     # for crosscompilation, we cannot execute the program, be happy if we can link statically
19
     cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break
158
     cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break
20
   done
159
   done
21
@@ -6340,7 +6340,7 @@ TIMER = $_timer
160
@@ -2898,7 +2898,7 @@ fi #if hpux
161
 echocheck "termcap"
162
 if test "$_termcap" = auto ; then
163
   _termcap=no
164
-  for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
165
+  for _ld_tmp in "/usr/lib/libncurses.so" "-ltinfo" "-ltermcap"; do
166
     statement_check term.h 'tgetent(0, 0)' $_ld_tmp &&
167
       extra_ldflags="$extra_ldflags $_ld_tmp" && _termcap=yes && break
168
   done
169
@@ -3355,7 +3355,7 @@ echocheck "X11 headers presence"
170
     fi
171
   done
172
   if test $_cross_compile = no; then
173
-    for I in /usr/X11/include /usr/X11R7/include /usr/local/include /usr/X11R6/include \
174
+    for I in /usr/X11/include /usr/X11R7/include /usr/local/include /usr/local/include \
175
              /usr/include/X11R6 /usr/openwin/include ; do
176
       if test -f "$I/X11/Xlib.h" ; then
177
         extra_cflags="$extra_cflags -I$I"
178
@@ -3370,8 +3370,8 @@ echores "$_x11_headers"
179
 
180
 echocheck "X11"
181
 if test "$_x11" = auto && test "$_x11_headers" = yes ; then
182
-  for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \
183
-           -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \
184
+  for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/local/lib -L/usr/lib/X11R6 \
185
+           -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/local/lib64 \
186
            -L/usr/lib ; do
187
     if netbsd; then
188
       _ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R$(echo $I | sed s/^-L//)"
189
@@ -4192,7 +4192,7 @@ elif darwin ; then
190
 elif dragonfly ; then
191
   default_cdrom_device="/dev/cd0"
192
 elif freebsd ; then
193
-  default_cdrom_device="/dev/acd0"
194
+  default_cdrom_device=""
195
 elif openbsd ; then
196
   default_cdrom_device="/dev/rcd0c"
197
 elif amigaos ; then
198
@@ -5190,7 +5190,7 @@ echores "$_lircc"
199
 
200
 #############################################################################
201
 
202
-CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
203
+CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64"
204
 
205
 # This must be the last test to be performed. Any other tests following it
206
 # could fail due to linker errors. libdvdnavmini is intentionally not linked
207
@@ -5296,7 +5296,7 @@ RST2MAN = $_rst2man
22
 EXESUF      = $_exesuf
208
 EXESUF      = $_exesuf
23
 EXESUFS_ALL = .exe
209
 EXESUFS_ALL = .exe
24
 
210
 
(-)/usr/ports/multimedia/mplayer2/files/patch-libao2-ao_oss.c (-2 / +2 lines)
Lines 1-5 Link Here
1
--- libao2/ao_oss.c~	2012-05-10 23:45:22.000000000 -0500
1
--- libao2/ao_oss.c.orig	2013-07-09 16:33:13 UTC
2
+++ libao2/ao_oss.c	2012-05-11 00:03:17.820525648 -0500
2
+++ libao2/ao_oss.c
3
@@ -460,6 +460,7 @@ static void reset(void){
3
@@ -460,6 +460,7 @@ static void reset(void){
4
   fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
4
   fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
5
 #endif
5
 #endif
(-)/usr/ports/multimedia/mplayer2/files/patch-libmpcodecs-vd_theora.c (-10 / +10 lines)
Lines 1-6 Link Here
1
--- libmpcodecs/vd_theora.c.orig	2015-03-25 00:52:12.768575000 +0100
1
--- libmpcodecs/vd_theora.c.orig	2013-07-09 16:33:13 UTC
2
+++ libmpcodecs/vd_theora.c	2015-03-25 01:17:34.162174000 +0100
2
+++ libmpcodecs/vd_theora.c
3
@@ -39,22 +39,23 @@
3
@@ -39,22 +39,23 @@ static const vd_info_t info = {
4
 
4
 
5
 LIBVD_EXTERN(theora)
5
 LIBVD_EXTERN(theora)
6
 
6
 
Lines 32-38 Link Here
32
     }
32
     }
33
     return 0;
33
     return 0;
34
 }
34
 }
35
@@ -64,7 +65,7 @@
35
@@ -64,7 +65,7 @@ static int control(sh_video_t *sh,int cm
36
     theora_struct_t *context = sh->context;
36
     theora_struct_t *context = sh->context;
37
     switch(cmd) {
37
     switch(cmd) {
38
     case VDCTRL_QUERY_FORMAT:
38
     case VDCTRL_QUERY_FORMAT:
Lines 41-47 Link Here
41
 	    return CONTROL_TRUE;
41
 	    return CONTROL_TRUE;
42
 	return CONTROL_FALSE;
42
 	return CONTROL_FALSE;
43
     }
43
     }
44
@@ -88,8 +89,10 @@
44
@@ -88,8 +89,10 @@ static int init(sh_video_t *sh){
45
     if (!context)
45
     if (!context)
46
         goto err_out;
46
         goto err_out;
47
 
47
 
Lines 54-60 Link Here
54
 
54
 
55
     /* Read all header packets, pass them to theora_decode_header. */
55
     /* Read all header packets, pass them to theora_decode_header. */
56
     for (i = 0; i < THEORA_NUM_HEADER_PACKETS; i++)
56
     for (i = 0; i < THEORA_NUM_HEADER_PACKETS; i++)
57
@@ -109,7 +112,7 @@
57
@@ -109,7 +112,7 @@ static int init(sh_video_t *sh){
58
             op.b_o_s = 1;
58
             op.b_o_s = 1;
59
         }
59
         }
60
 
60
 
Lines 63-69 Link Here
63
         {
63
         {
64
             mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Broken Theora header; errorCode=%i!\n", errorCode);
64
             mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Broken Theora header; errorCode=%i!\n", errorCode);
65
             goto err_out;
65
             goto err_out;
66
@@ -117,23 +120,25 @@
66
@@ -117,23 +120,25 @@ static int init(sh_video_t *sh){
67
     }
67
     }
68
 
68
 
69
     /* now init codec */
69
     /* now init codec */
Lines 97-103 Link Here
97
 
97
 
98
 err_out:
98
 err_out:
99
     free(context);
99
     free(context);
100
@@ -150,9 +155,9 @@
100
@@ -150,9 +155,9 @@ static void uninit(sh_video_t *sh)
101
 
101
 
102
    if (context)
102
    if (context)
103
    {
103
    {
Lines 110-116 Link Here
110
       free (context);
110
       free (context);
111
    }
111
    }
112
 }
112
 }
113
@@ -165,7 +170,7 @@
113
@@ -165,7 +170,7 @@ static mp_image_t* decode(sh_video_t *sh
114
    theora_struct_t *context = sh->context;
114
    theora_struct_t *context = sh->context;
115
    int errorCode = 0;
115
    int errorCode = 0;
116
    ogg_packet op;
116
    ogg_packet op;
Lines 119-125 Link Here
119
    mp_image_t* mpi;
119
    mp_image_t* mpi;
120
 
120
 
121
    // no delayed frames
121
    // no delayed frames
122
@@ -177,31 +182,31 @@
122
@@ -177,31 +182,31 @@ static mp_image_t* decode(sh_video_t *sh
123
    op.packet = data;
123
    op.packet = data;
124
    op.granulepos = -1;
124
    op.granulepos = -1;
125
 
125
 
(-)/usr/ports/multimedia/mplayer2/files/patch-libmpdemux-demux_gif.c (-3 / +3 lines)
Lines 1-6 Link Here
1
--- libmpdemux/demux_gif.c.orig	2012-12-31 00:26:50.000000000 +0100
1
--- libmpdemux/demux_gif.c.orig	2013-07-09 16:33:16 UTC
2
+++ libmpdemux/demux_gif.c	2012-12-31 00:30:54.000000000 +0100
2
+++ libmpdemux/demux_gif.c
3
@@ -44,6 +44,16 @@
3
@@ -44,6 +44,16 @@ typedef struct {
4
 
4
 
5
 #define GIF_SIGNATURE (('G' << 16) | ('I' << 8) | 'F')
5
 #define GIF_SIGNATURE (('G' << 16) | ('I' << 8) | 'F')
6
 
6
 
(-)/usr/ports/multimedia/mplayer2/files/patch-libmpdemux-demux_ogg.c (-6 / +6 lines)
Lines 1-5 Link Here
1
--- libmpdemux/demux_ogg.c.orig	2013-07-09 18:33:16.000000000 +0200
1
--- libmpdemux/demux_ogg.c.orig	2013-07-09 16:33:16 UTC
2
+++ libmpdemux/demux_ogg.c	2015-03-25 01:47:19.439377000 +0100
2
+++ libmpdemux/demux_ogg.c
3
@@ -50,21 +50,21 @@
3
@@ -50,21 +50,21 @@
4
 #endif
4
 #endif
5
 
5
 
Lines 28-34 Link Here
28
 } theora_struct_t;
28
 } theora_struct_t;
29
 #endif
29
 #endif
30
 
30
 
31
@@ -117,7 +117,7 @@
31
@@ -117,7 +117,7 @@ typedef struct ogg_stream {
32
     float   samplerate; /// granulpos 2 time
32
     float   samplerate; /// granulpos 2 time
33
     int64_t lastpos;
33
     int64_t lastpos;
34
     int32_t lastsize;
34
     int32_t lastsize;
Lines 37-43 Link Here
37
 
37
 
38
     // Logical stream state
38
     // Logical stream state
39
     ogg_stream_state stream;
39
     ogg_stream_state stream;
40
@@ -300,11 +300,10 @@
40
@@ -300,11 +300,10 @@ static unsigned char *demux_ogg_read_pac
41
            have theora_state st, until all header packets were passed to the
41
            have theora_state st, until all header packets were passed to the
42
            decoder. */
42
            decoder. */
43
         if (!pack->bytes || !(*data&0x80)) {
43
         if (!pack->bytes || !(*data&0x80)) {
Lines 51-57 Link Here
51
                 os->lastpos += pack->granulepos & iframemask;
51
                 os->lastpos += pack->granulepos & iframemask;
52
                 *keyframe = (pack->granulepos & iframemask) == 0;
52
                 *keyframe = (pack->granulepos & iframemask) == 0;
53
             } else {
53
             } else {
54
@@ -888,14 +887,15 @@
54
@@ -888,14 +887,15 @@ int demux_ogg_open(demuxer_t *demuxer)
55
 #ifdef CONFIG_OGGTHEORA
55
 #ifdef CONFIG_OGGTHEORA
56
         } else if (pack.bytes >= 7 && !strncmp (&pack.packet[1], "theora", 6)) {
56
         } else if (pack.bytes >= 7 && !strncmp (&pack.packet[1], "theora", 6)) {
57
             int errorCode = 0;
57
             int errorCode = 0;
Lines 73-79 Link Here
73
                 mp_msg(MSGT_DEMUX, MSGL_ERR,
73
                 mp_msg(MSGT_DEMUX, MSGL_ERR,
74
                        "Theora header parsing failed: %i \n", errorCode);
74
                        "Theora header parsing failed: %i \n", errorCode);
75
             } else {
75
             } else {
76
@@ -904,30 +904,32 @@
76
@@ -904,30 +904,32 @@ int demux_ogg_open(demuxer_t *demuxer)
77
                 sh_v->bih = calloc(1, sizeof(*sh_v->bih));
77
                 sh_v->bih = calloc(1, sizeof(*sh_v->bih));
78
                 sh_v->bih->biSize        = sizeof(*sh_v->bih);
78
                 sh_v->bih->biSize        = sizeof(*sh_v->bih);
79
                 sh_v->bih->biCompression = sh_v->format = FOURCC_THEORA;
79
                 sh_v->bih->biCompression = sh_v->format = FOURCC_THEORA;
(-)/usr/ports/multimedia/mplayer2/files/patch-libmpdemux-demuxer.h (-3 / +3 lines)
Lines 1-6 Link Here
1
--- libmpdemux/demuxer.h.orig	2014-09-19 05:04:22.000000000 +0200
1
--- libmpdemux/demuxer.h.orig	2013-07-09 16:33:16 UTC
2
+++ libmpdemux/demuxer.h	2014-09-19 05:01:57.000000000 +0200
2
+++ libmpdemux/demuxer.h
3
@@ -121,7 +121,7 @@
3
@@ -121,7 +121,7 @@ enum timestamp_type {
4
 #define SEEK_BACKWARD (1 << 3)
4
 #define SEEK_BACKWARD (1 << 3)
5
 
5
 
6
 // demux_lavf can pass lavf buffers using FF_INPUT_BUFFER_PADDING_SIZE instead
6
 // demux_lavf can pass lavf buffers using FF_INPUT_BUFFER_PADDING_SIZE instead
(-)/usr/ports/multimedia/mplayer2/files/patch-stream-tvi_bsdbt848.c (-12 / +12 lines)
Lines 1-6 Link Here
1
--- stream/tvi_bsdbt848.c.orig	2009-05-12 21:58:57.000000000 -0500
1
--- stream/tvi_bsdbt848.c.orig	2013-07-09 16:33:36 UTC
2
+++ stream/tvi_bsdbt848.c	2009-07-23 20:39:13.536681248 -0500
2
+++ stream/tvi_bsdbt848.c
3
@@ -352,11 +352,11 @@
3
@@ -368,11 +368,11 @@ static int control(priv_t *priv, int cmd
4
         int req_mode = *(int *)arg;
4
         int req_mode = *(int *)arg;
5
 	u_short tmp_fps;
5
 	u_short tmp_fps;
6
 
6
 
Lines 14-20 Link Here
14
             priv->maxheight = PAL_HEIGHT;
14
             priv->maxheight = PAL_HEIGHT;
15
             priv->maxwidth = PAL_WIDTH;
15
             priv->maxwidth = PAL_WIDTH;
16
             priv->maxfps = PAL_FPS;
16
             priv->maxfps = PAL_FPS;
17
@@ -377,7 +377,7 @@
17
@@ -393,7 +393,7 @@ static int control(priv_t *priv, int cmd
18
 
18
 
19
         if(req_mode == TV_NORM_NTSC)
19
         if(req_mode == TV_NORM_NTSC)
20
             {
20
             {
Lines 23-29 Link Here
23
             priv->maxheight = NTSC_HEIGHT;
23
             priv->maxheight = NTSC_HEIGHT;
24
             priv->maxwidth = NTSC_WIDTH;
24
             priv->maxwidth = NTSC_WIDTH;
25
             priv->maxfps = NTSC_FPS;
25
             priv->maxfps = NTSC_FPS;
26
@@ -401,9 +401,28 @@
26
@@ -417,9 +417,28 @@ static int control(priv_t *priv, int cmd
27
                 }
27
                 }
28
             }
28
             }
29
 
29
 
Lines 35-41 Link Here
35
+            priv->maxwidth = PAL_WIDTH;
35
+            priv->maxwidth = PAL_WIDTH;
36
+            priv->maxfps = PAL_FPS;
36
+            priv->maxfps = PAL_FPS;
37
+            priv->fps = PAL_FPS;
37
+            priv->fps = PAL_FPS;
38
+
38
 
39
-        if(ioctl(priv->btfd, METEORSFMT, &priv->iformat) < 0)
39
+            if(priv->fps > priv->maxfps) priv->fps = priv->maxfps;
40
+            if(priv->fps > priv->maxfps) priv->fps = priv->maxfps;
40
+
41
+
41
+            if(priv->geom.rows > priv->maxheight)
42
+            if(priv->geom.rows > priv->maxheight)
Lines 48-60 Link Here
48
+                priv->geom.columns = priv->maxwidth;
49
+                priv->geom.columns = priv->maxwidth;
49
+                }
50
+                }
50
+            }
51
+            }
51
 
52
+
52
-        if(ioctl(priv->btfd, METEORSFMT, &priv->iformat) < 0)
53
+        if(ioctl(priv->btfd, BT848SFMT, &priv->iformat) < 0)
53
+        if(ioctl(priv->btfd, BT848SFMT, &priv->iformat) < 0)
54
             {
54
             {
55
             mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_Bt848IoctlFailed, "METEORSFMT", strerror(errno));
55
             mp_tmsg(MSGT_TV, MSGL_ERR, "tvi_bsdbt848: Call to %s ioctl failed. Error: %s\n", "METEORSFMT", strerror(errno));
56
             return TVI_CONTROL_FALSE;
56
             return TVI_CONTROL_FALSE;
57
@@ -532,8 +551,9 @@
57
@@ -548,8 +567,9 @@ G_private = priv; /* Oooh, sick */
58
 /* Video Configuration */
58
 /* Video Configuration */
59
 
59
 
60
 priv->videoready = TRUE;
60
 priv->videoready = TRUE;
Lines 65-76 Link Here
65
 priv->maxheight = PAL_HEIGHT;
65
 priv->maxheight = PAL_HEIGHT;
66
 priv->maxwidth = PAL_WIDTH;
66
 priv->maxwidth = PAL_WIDTH;
67
 priv->maxfps = PAL_FPS;
67
 priv->maxfps = PAL_FPS;
68
@@ -558,7 +578,7 @@
68
@@ -574,7 +594,7 @@ if(priv->btfd < 0)
69
     }
69
     }
70
 
70
 
71
 if(priv->videoready == TRUE &&
71
 if(priv->videoready == TRUE &&
72
-   ioctl(priv->btfd, METEORSFMT, &priv->iformat) < 0)
72
-   ioctl(priv->btfd, METEORSFMT, &priv->iformat) < 0)
73
+   ioctl(priv->btfd, BT848SFMT, &priv->iformat) < 0)
73
+   ioctl(priv->btfd, BT848SFMT, &priv->iformat) < 0)
74
     {
74
     {
75
     mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_Bt848IoctlFailed, "SETEORSFMT", strerror(errno));
75
     mp_tmsg(MSGT_TV, MSGL_ERR, "tvi_bsdbt848: Call to %s ioctl failed. Error: %s\n", "SETEORSFMT", strerror(errno));
76
     }
76
     }
(-)/usr/ports/multimedia/mplayer2/files/patch-stream-tvi_v4l2.c (-2 / +2 lines)
Lines 1-5 Link Here
1
--- stream/tvi_v4l2.c~	2012-05-10 23:45:22.000000000 -0500
1
--- stream/tvi_v4l2.c.orig	2013-07-09 16:33:36 UTC
2
+++ stream/tvi_v4l2.c	2012-05-11 00:08:34.930938536 -0500
2
+++ stream/tvi_v4l2.c
3
@@ -52,7 +52,6 @@ known issues:
3
@@ -52,7 +52,6 @@ known issues:
4
 #ifdef HAVE_SYS_VIDEOIO_H
4
 #ifdef HAVE_SYS_VIDEOIO_H
5
 #include <sys/videoio.h>
5
 #include <sys/videoio.h>
(-)/usr/ports/multimedia/mplayer2/files/patch-sub-subassconvert.c (-1 / +1 lines)
Lines 1-4 Link Here
1
--- sub/subassconvert.c.orig
1
--- sub/subassconvert.c.orig	2013-07-09 16:33:36 UTC
2
+++ sub/subassconvert.c
2
+++ sub/subassconvert.c
3
@@ -18,6 +18,7 @@
3
@@ -18,6 +18,7 @@
4
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
(-)/usr/ports/multimedia/mplayer2/files/patch-sub-subreader.c (-1 / +1 lines)
Lines 1-4 Link Here
1
--- sub/subreader.c.orig
1
--- sub/subreader.c.orig	2013-07-09 16:33:36 UTC
2
+++ sub/subreader.c
2
+++ sub/subreader.c
3
@@ -21,6 +21,7 @@
3
@@ -21,6 +21,7 @@
4
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
4
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Return to bug 202404