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 12-19
Link Here
|
12 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 |
13 |
|
13 |
|
14 |
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \ |
14 |
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \ |
15 |
libfreetype.so:${PORTSDIR}/print/freetype2 \ |
15 |
libfreetype.so:${PORTSDIR}/print/freetype2 |
16 |
libdvdread.so:${PORTSDIR}/multimedia/libdvdread |
|
|
17 |
BUILD_DEPENDS= ffmpeg:${PORTSDIR}/multimedia/ffmpeg \ |
16 |
BUILD_DEPENDS= ffmpeg:${PORTSDIR}/multimedia/ffmpeg \ |
18 |
python3:${PORTSDIR}/lang/python3 \ |
17 |
python3:${PORTSDIR}/lang/python3 \ |
19 |
rst2man:${PORTSDIR}/textproc/py-docutils |
18 |
rst2man:${PORTSDIR}/textproc/py-docutils |
Lines 23-79
Link Here
|
23 |
HAS_CONFIGURE= yes |
22 |
HAS_CONFIGURE= yes |
24 |
CONFIGURE_ENV= TMPDIR="${WRKSRC}" |
23 |
CONFIGURE_ENV= TMPDIR="${WRKSRC}" |
25 |
CONFIGURE_ARGS= --cc=${CC} \ |
24 |
CONFIGURE_ARGS= --cc=${CC} \ |
26 |
--extra-libs='-lavresample ${PORTAUDIOLIB}' \ |
|
|
27 |
--mandir=${PREFIX}/man \ |
25 |
--mandir=${PREFIX}/man \ |
28 |
--enable-libavresample \ |
|
|
29 |
--disable-alsa \ |
26 |
--disable-alsa \ |
30 |
--disable-liba52 \ |
|
|
31 |
--disable-directfb \ |
27 |
--disable-directfb \ |
32 |
--disable-faad \ |
28 |
--disable-faad \ |
33 |
--disable-mng \ |
29 |
--disable-gif \ |
|
|
30 |
--disable-liba52 \ |
34 |
--disable-libdca \ |
31 |
--disable-libdca \ |
35 |
--disable-xvid \ |
32 |
--disable-mng \ |
36 |
--disable-mpg123 \ |
33 |
--disable-mpg123 \ |
37 |
--disable-musepack |
34 |
--disable-musepack \ |
|
|
35 |
--disable-xvid |
38 |
MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin \ |
36 |
MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin \ |
39 |
CONFDIR=${STAGEDIR}${PREFIX}/etc/mplayer |
37 |
CONFDIR=${STAGEDIR}${PREFIX}/etc/mplayer |
40 |
|
38 |
|
41 |
MPLAYER2_SNAPSHOT_DATE= 2013-04-28 |
39 |
MPLAYER2_SNAPSHOT_DATE= 2013-04-28 |
42 |
MPLAYER2_PORT_VERSION= 2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g} |
40 |
MPLAYER2_PORT_VERSION= 2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g} |
43 |
|
41 |
|
|
|
42 |
OPTIONS_DEFINE= A52 ASS CACA DEBUG DV DVDREAD DVDNAV ENCA IPV6 JACK LADSPA \ |
43 |
LIBAV LIBBLURAY LIBCDIO LIRC MAD OPENGL PORTAUDIO PULSE \ |
44 |
REALPLAYER RTC SDL SMB SPEEX THEORA V4L VDPAU X11 XINERAMA |
45 |
OPTIONS_DEFINE_i386+= WIN32 |
46 |
OPTIONS_DEFAULT= ASS ENCA LIBAV X11 |
47 |
OPTIONS_SUB= yes |
44 |
|
48 |
|
45 |
OPTIONS_DEFINE= DEBUG RTC IPV6 SMB LIBBLURAY DV THEORA \ |
|
|
46 |
X11 XINERAMA OPENGL SDL VDPAU GIF CACA \ |
47 |
MAD SPEEX LIBCDIO LADSPA REALPLAYER \ |
48 |
JACK PULSE PORTAUDIO ASS LIRC |
49 |
OPTIONS_DEFAULT=X11 ASS |
50 |
|
51 |
.if !defined(PACKAGE_BUILDING) |
52 |
OPTIONS_DEFINE+= WIN32 |
53 |
OPTIONS_DEFAULT+= WIN32 |
54 |
.endif |
55 |
|
56 |
RTC_DESC= Enable kernel realtime clock timing |
57 |
PULSE_DESC= Enable PulseAudio support |
58 |
THEORA_DESC= Enable ogg theora video support |
59 |
ASS_DESC= Enable ASS/SSA subtitle rendering |
49 |
ASS_DESC= Enable ASS/SSA subtitle rendering |
60 |
WIN32_DESC= Enable win32 codec set on the IA32 arch |
50 |
DVDREAD_DESC= DVD Playback support |
61 |
REALPLAYER_DESC=Enable realplayer plugin |
51 |
DVDNAV_DESC= DVD menu navigation |
62 |
LIRC_DESC= Enable lirc support |
52 |
ENCA_DESC= Enable encoding detection support |
|
|
53 |
LIBAV_DESC= Enable libav support |
63 |
LIBCDIO_DESC= Enable libcdio support |
54 |
LIBCDIO_DESC= Enable libcdio support |
|
|
55 |
LIRC_DESC= Enable lirc support |
56 |
PULSE_DESC= Enable PulseAudio support |
57 |
REALPLAYER_DESC=Enable realplayer plugin |
58 |
RTC_DESC= Enable kernel realtime clock timing |
59 |
THEORA_DESC= Enable ogg theora video support |
64 |
V4L_DESC= Enable Video4Linux TV support |
60 |
V4L_DESC= Enable Video4Linux TV support |
|
|
61 |
WIN32_DESC= Win32 codec pack support |
65 |
|
62 |
|
66 |
SUB_FILES= pkg-message |
63 |
SUB_FILES= pkg-message |
67 |
|
64 |
|
68 |
CONFLICTS= mplayer-1.* |
65 |
CONFLICTS= mplayer-1.* |
69 |
|
66 |
|
70 |
.include <bsd.port.options.mk> |
67 |
A52_LIB_DEPENDS= liba52.so:${PORTSDIR}/audio/liba52 |
|
|
68 |
A52_CONFIGURE_ENABLE= liba52 |
69 |
A52_LIBS= -la52 |
70 |
|
71 |
ASS_LIB_DEPENDS= libass.so:${PORTSDIR}/multimedia/libass |
72 |
ASS_IMPLIES= ENCA |
73 |
|
74 |
CACA_LIB_DEPENDS= libcaca.so:${PORTSDIR}/graphics/libcaca |
75 |
CACA_CONFIGURE_ENABLE= caca |
76 |
CACA_LIBS= -lcaca |
77 |
|
78 |
DV_LIB_DEPENDS= libdv.so:${PORTSDIR}/multimedia/libdv |
79 |
DV_CONFIGURE_ON= --enable-libdv |
80 |
DV_CONFIGURE_OFF= --disable-libdv |
81 |
|
82 |
DVDREAD_LIB_DEPENDS= libdvdread.so:${PORTSDIR}/multimedia/libdvdread |
83 |
DVDREAD_CONFIGURE_ENABLE=dvdread |
84 |
|
85 |
DVDNAV_LIB_DEPENDS= libdvdnav.so:${PORTSDIR}/multimedia/libdvdnav |
86 |
DVDNAV_CONFIGURE_ENABLE=dvdnav |
87 |
|
88 |
ENCA_LIB_DEPENDS= libenca.so:${PORTSDIR}/converters/enca |
89 |
ENCA_CONFIGURE_ENABLE= enca |
90 |
ENCA_LIBS= -lenca |
91 |
|
92 |
IPV6_CATEGORIES= ipv6 |
93 |
IPV6_CONFIGURE_ON= --enable-inet6 |
94 |
IPV6_CONFIGURE_OFF= --disable-inet6 |
95 |
|
96 |
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack |
97 |
JACK_CONFIGURE_ON= --enable-jack |
98 |
JACK_CONFIGURE_OFF= --disable-jack |
99 |
JACK_LIBS= -ljack |
100 |
|
101 |
LADSPA_RUN_DEPENDS= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa |
102 |
LADSPA_CONFIGURE_ON= --enable-ladspa |
103 |
LADSPA_CONFIGURE_OFF= --disable-ladspa |
104 |
|
105 |
LIBAV_LIB_DEPENDS= libavresample.so:${PORTSDIR}/multimedia/libav |
106 |
LIBAV_CONFIGURE_ENABLE= libavresample |
107 |
LIBAV_LIBS= -lavresample |
108 |
|
109 |
LIBBLURAY_LIB_DEPENDS= libbluray.so:${PORTSDIR}/multimedia/libbluray |
110 |
LIBBLURAY_CONFIGURE_ON= --enable-bluray |
111 |
LIBBLURAY_CONFIGURE_OFF=--disable-bluray |
112 |
|
113 |
LIBCDIO_LIB_DEPENDS= libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia |
114 |
LIBCDIO_CONFIGURE_ON= --enable-libcdio |
115 |
LIBCDIO_CONFIGURE_OFF= --disable-libcdio |
116 |
|
117 |
LIRC_LIB_DEPENDS= liblirc_client.so:${PORTSDIR}/comms/lirc |
118 |
LIRC_CONFIGURE_ON= --enable-lirc |
119 |
LIRC_CONFIGURE_OFF= --disable-lirc |
120 |
|
121 |
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad |
122 |
MAD_CONFIGURE_ON= --enable-mad |
123 |
MAD_CONFIGURE_OFF= --disable-mad |
124 |
|
125 |
OPENGL_USE= GL=gl XORG=glproto |
126 |
OPENGL_CONFIGURE_ON= --enable-gl |
127 |
OPENGL_CONFIGURE_OFF= --disable-gl |
128 |
OPENGL_IMPLIES= X11 |
129 |
|
130 |
PORTAUDIO_LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio |
131 |
PORTAUDIO_CONFIGURE_ON= --enable-portaudio |
132 |
PORTAUDIO_CONFIGURE_OFF=--disable-portaudio |
133 |
PORTAUDIO_IMPLIES= LIBAV |
134 |
|
135 |
PULSE_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio |
136 |
PULSE_CONFIGURE_ON= --enable-pulse |
137 |
PULSE_CONFIGURE_OFF= --disable-pulse |
138 |
|
139 |
REALPLAYER_BUILD_DEPENDS=realplay:${PORTSDIR}/multimedia/linux-realplayer |
140 |
REALPLAYER_CONFIGURE_ON= --enable-real |
141 |
REALPLAYER_CONFIGURE_OFF=--disable-real |
142 |
|
143 |
RTC_BUILD_DEPENDS= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
144 |
RTC_CONFIGURE_ON= --enable-rtc |
145 |
RTC_CONFIGURE_OFF= --disable-rtc |
146 |
|
147 |
SDL_USE= SDL=sdl |
148 |
SDL_CONFIGURE_ON= --enable-sdl |
149 |
SDL_CONFIGURE_OFF= --disable-sdl |
150 |
|
151 |
SMB_LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient |
152 |
SMB_CONFIGURE_ON= --enable-smb |
153 |
SMB_CONFIGURE_OFF= --disable-smb |
154 |
|
155 |
SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex |
156 |
SPEEX_CONFIGURE_ON= --enable-speex |
157 |
SPEEX_CONFIGURE_OFF= --disable-speex |
158 |
|
159 |
THEORA_LIB_DEPENDS= libtheora.so:${PORTSDIR}/multimedia/libtheora |
160 |
THEORA_CONFIGURE_ON= --enable-theora |
161 |
THEORA_CONFIGURE_OFF= --disable-theora |
162 |
THEORA_LIBS= -ltheoradec |
163 |
|
164 |
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat |
165 |
V4L_LIB_DEPENDS= libv4l2.so:${PORTSDIR}/multimedia/libv4l |
166 |
V4L_CONFIGURE_ON= --enable-tv-v4l2 |
167 |
V4L_CONFIGURE_OFF= --disable-tv-v4l2 |
168 |
V4L_LIBS= -lv4l2 |
169 |
|
170 |
VDPAU_LIB_DEPENDS= libvdpau.so:${PORTSDIR}/multimedia/libvdpau |
171 |
VDPAU_CONFIGURE_ON= --enable-vdpau |
172 |
VDPAU_CONFIGURE_OFF= --disable-vdpau |
173 |
|
174 |
WIN32_RUN_DEPENDS= win32-codecs>0:${PORTSDIR}/multimedia/win32-codecs |
175 |
WIN32_CONFIGURE_ON= --codecsdir=${LOCALBASE}/lib/win32 |
176 |
WIN32_CONFIGURE_OFF= --disable-win32dll --disable-qtx |
177 |
|
178 |
X11_USE= XORG=x11,xv,xxf86vm |
179 |
X11_CONFIGURE_ON= --enable-x11 |
180 |
X11_CONFIGURE_OFF= --disable-x11 |
181 |
X11_LIBS= -lX11 -lXext |
182 |
|
183 |
XINERAMA_USE= XORG=xinerama,xineramaproto |
184 |
XINERAMA_CONFIGURE_ON= --enable-xinerama |
185 |
XINERAMA_CONFIGURE_OFF= --disable-xinerama |
186 |
XINERAMA_IMPLIES= X11 |
71 |
|
187 |
|
72 |
.if ${ARCH} == "sparc64" |
188 |
.include <bsd.port.options.mk> |
73 |
BROKEN= Does not compile on sparc64 |
|
|
74 |
.endif |
75 |
|
189 |
|
76 |
WITH_CDROM_DEVICE?= /dev/cd0 |
190 |
BROKEN_sparc64= Does not compile on sparc64 |
77 |
|
191 |
|
78 |
#On i386, gcc runs out of general purpose registers when |
192 |
#On i386, gcc runs out of general purpose registers when |
79 |
#trying to compile a debug version with the default flags. |
193 |
#trying to compile a debug version with the default flags. |
Lines 90-266
Link Here
|
90 |
.endif |
204 |
.endif |
91 |
.endif |
205 |
.endif |
92 |
|
206 |
|
93 |
.if ${PORT_OPTIONS:MIPV6} |
|
|
94 |
CATEGORIES+= ipv6 |
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 |
243 |
CONFIGURE_ARGS+= --disable-caca |
244 |
.endif |
245 |
|
246 |
.if ${PORT_OPTIONS:MLIRC} |
247 |
LIB_DEPENDS+= liblirc_client.so:${PORTSDIR}/comms/lirc |
248 |
.else |
249 |
CONFIGURE_ARGS+= --disable-lirc |
250 |
.endif |
251 |
|
252 |
.if ${PORT_OPTIONS:MSDL} |
253 |
USE_SDL= sdl |
254 |
.else |
255 |
CONFIGURE_ARGS+= --disable-sdl |
256 |
.endif |
257 |
|
258 |
.if defined(WITH_KERN_HZ) |
207 |
.if defined(WITH_KERN_HZ) |
259 |
DEFAULT_KERN_HZ=${WITH_KERN_HZ} |
208 |
DEFAULT_KERN_HZ=${WITH_KERN_HZ} |
260 |
.else |
209 |
.else |
261 |
DEFAULT_KERN_HZ=1024 |
210 |
DEFAULT_KERN_HZ=1024 |
262 |
.endif |
211 |
.endif |
263 |
|
212 |
|
|
|
213 |
CONFIGURE_ARGS+= --extra-libs="${LIBS}" |
214 |
|
215 |
# Depend on RESTRICTED package when built manually |
216 |
.if !defined(PACKAGE_BUILDING) |
217 |
OPTIONS_DEFAULT_i386+= WIN32 |
218 |
.endif |
219 |
|
264 |
pre-everything:: |
220 |
pre-everything:: |
265 |
@${ECHO_MSG} "N - O - T - E" |
221 |
@${ECHO_MSG} "N - O - T - E" |
266 |
@${ECHO_MSG} "" |
222 |
@${ECHO_MSG} "" |
Lines 270-286
Link Here
|
270 |
|
226 |
|
271 |
post-patch: |
227 |
post-patch: |
272 |
.if ${OSVERSION} >= 900010 |
228 |
.if ${OSVERSION} >= 900010 |
273 |
@${REINPLACE_CMD} -e \ |
229 |
${REINPLACE_CMD} -e \ |
274 |
'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \ |
230 |
'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \ |
275 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
231 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
276 |
.endif |
232 |
.endif |
277 |
@${REINPLACE_CMD} \ |
233 |
${REINPLACE_CMD} \ |
278 |
-e 's|/dev/acd0|${WITH_CDROM_DEVICE}|' \ |
234 |
-e 's|/dev/acd0|${WITH_CDROM_DEVICE}|' \ |
279 |
-e 's|/usr/local|${LOCALBASE}|' \ |
235 |
-e 's|/usr/local|${LOCALBASE}|' \ |
280 |
-e 's|-lbz2|/usr/lib/libbz2.so|' \ |
236 |
-e 's|-lbz2|/usr/lib/libbz2.so|' \ |
281 |
-e 's|-lncurses|/usr/lib/libncurses.so|' \ |
237 |
-e 's|-lncurses|/usr/lib/libncurses.so|' \ |
282 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
238 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
283 |
@${FIND} -E ${WRKSRC} -type f \ |
239 |
${FIND} -E ${WRKSRC} -type f \ |
284 |
-iregex ".*(configure|.sh|Makefile)" -print0 | \ |
240 |
-iregex ".*(configure|.sh|Makefile)" -print0 | \ |
285 |
${XARGS} -x -0 -n 10 \ |
241 |
${XARGS} -x -0 -n 10 \ |
286 |
${REINPLACE_CMD} -E \ |
242 |
${REINPLACE_CMD} -E \ |
Lines 288-308
Link Here
|
288 |
-e 's|[[:space:]]gcc| ${CC}|' \ |
244 |
-e 's|[[:space:]]gcc| ${CC}|' \ |
289 |
-e 's|\$$\(CC\)|${CC}|' \ |
245 |
-e 's|\$$\(CC\)|${CC}|' \ |
290 |
-e 's|/usr/X11R6|${LOCALBASE}|' |
246 |
-e 's|/usr/X11R6|${LOCALBASE}|' |
291 |
@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \ |
247 |
${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \ |
292 |
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \ |
248 |
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \ |
293 |
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \ |
249 |
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \ |
294 |
s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g' |
250 |
s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g' |
295 |
.if ${PORT_OPTIONS:MRTC} |
251 |
.if ${PORT_OPTIONS:MRTC} |
296 |
@${REINPLACE_CMD} -e \ |
252 |
${REINPLACE_CMD} -e \ |
297 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
253 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
298 |
${WRKSRC}/mplayer.c |
254 |
${WRKSRC}/mplayer.c |
299 |
.endif |
255 |
.endif |
300 |
|
256 |
|
301 |
post-install: |
257 |
post-install: |
302 |
@${INSTALL_DATA} ${WRKSRC}/etc/example.conf \ |
258 |
${INSTALL_DATA} ${WRKSRC}/etc/example.conf \ |
303 |
${STAGEDIR}${PREFIX}/etc/mplayer/mplayer.conf.sample |
259 |
${STAGEDIR}${PREFIX}/etc/mplayer/mplayer.conf.sample |
304 |
.for conf in codecs input |
260 |
.for conf in codecs input |
305 |
@${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf \ |
261 |
${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf \ |
306 |
${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample |
262 |
${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample |
307 |
.endfor |
263 |
.endfor |
308 |
|
264 |
|