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 |
|