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-258
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 \ |
|
|
34 |
--disable-libdca \ |
29 |
--disable-libdca \ |
35 |
--disable-xvid \ |
30 |
--disable-mng \ |
36 |
--disable-mpg123 \ |
31 |
--disable-mpg123 \ |
37 |
--disable-musepack |
32 |
--disable-musepack \ |
|
|
33 |
--disable-radio-v4l2 \ |
34 |
--disable-radio-bsdbt848 \ |
35 |
--disable-tv \ |
36 |
--disable-tv-v4l2 \ |
37 |
--disable-tv-bsdbt848 \ |
38 |
--disable-v4l2 \ |
39 |
--disable-xvid |
38 |
MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin \ |
40 |
MAKE_ARGS+= BINDIR=${STAGEDIR}${PREFIX}/bin \ |
39 |
CONFDIR=${STAGEDIR}${PREFIX}/etc/mplayer |
41 |
CONFDIR=${STAGEDIR}${PREFIX}/etc/mplayer |
40 |
|
42 |
|
41 |
MPLAYER2_SNAPSHOT_DATE= 2013-04-28 |
43 |
MPLAYER2_SNAPSHOT_DATE= 2013-04-28 |
42 |
MPLAYER2_PORT_VERSION= 2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g} |
44 |
MPLAYER2_PORT_VERSION= 2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g} |
43 |
|
45 |
|
|
|
46 |
OPTIONS_DEFINE= A52 ASS CACA DEBUG DV DVDREAD DVDNAV ENCA GIF IPV6 JACK \ |
47 |
LADSPA LIBAV LIBBLURAY LIBCDIO LIRC MAD OPENGL PORTAUDIO \ |
48 |
PULSEAUDIO REALPLAYER RTC SDL SMB SPEEX THEORA VDPAU X11 \ |
49 |
XINERAMA |
50 |
OPTIONS_DEFINE_i386+= WIN32 |
51 |
OPTIONS_DEFAULT= ASS ENCA LIBAV X11 |
52 |
OPTIONS_SUB= yes |
44 |
|
53 |
|
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 |
54 |
ASS_DESC= Enable ASS/SSA subtitle rendering |
60 |
WIN32_DESC= Enable win32 codec set on the IA32 arch |
55 |
DVDREAD_DESC= DVD Playback support |
61 |
REALPLAYER_DESC=Enable realplayer plugin |
56 |
DVDNAV_DESC= DVD menu navigation |
62 |
LIRC_DESC= Enable lirc support |
57 |
ENCA_DESC= Enable encoding detection support |
|
|
58 |
LIBAV_DESC= Enable libav support |
63 |
LIBCDIO_DESC= Enable libcdio support |
59 |
LIBCDIO_DESC= Enable libcdio support |
64 |
V4L_DESC= Enable Video4Linux TV support |
60 |
REALPLAYER_DESC=Enable realplayer plugin |
|
|
61 |
RTC_DESC= Enable kernel realtime clock timing |
62 |
WIN32_DESC= Win32 codec pack support |
65 |
|
63 |
|
66 |
SUB_FILES= pkg-message |
64 |
SUB_FILES= pkg-message |
67 |
|
65 |
|
68 |
CONFLICTS= mplayer-1.* |
66 |
CONFLICTS= mplayer-1.* |
69 |
|
67 |
|
70 |
.include <bsd.port.options.mk> |
68 |
A52_LIB_DEPENDS= liba52.so:${PORTSDIR}/audio/liba52 |
|
|
69 |
A52_CONFIGURE_ENABLE= liba52 |
70 |
A52_LIBS= -la52 |
71 |
|
71 |
|
72 |
.if ${ARCH} == "sparc64" |
72 |
ASS_LIB_DEPENDS= libass.so:${PORTSDIR}/multimedia/libass |
73 |
BROKEN= Does not compile on sparc64 |
73 |
ASS_CONFIGURE_OFF= --disable-libass |
74 |
.endif |
74 |
ASS_LIBS= -lass |
75 |
|
75 |
|
76 |
WITH_CDROM_DEVICE?= /dev/cd0 |
76 |
CACA_LIB_DEPENDS= libcaca.so:${PORTSDIR}/graphics/libcaca |
|
|
77 |
CACA_CONFIGURE_ENABLE= caca |
78 |
CACA_LIBS= -lcaca |
77 |
|
79 |
|
78 |
#On i386, gcc runs out of general purpose registers when |
80 |
DV_LIB_DEPENDS= libdv.so:${PORTSDIR}/multimedia/libdv |
79 |
#trying to compile a debug version with the default flags. |
81 |
DV_CONFIGURE_ENABLE= libdv |
80 |
.if ${PORT_OPTIONS:MDEBUG} |
|
|
81 |
.if ${ARCH} == "i386" |
82 |
DEBUG_FLAGS= -g -O -fomit-frame-pointer |
83 |
.endif |
84 |
.else |
85 |
.if defined(PACKAGE_BUILDING) |
86 |
CONFIGURE_ARGS+= --enable-runtime-cpudetection |
87 |
CFLAGS+= -O2 -fomit-frame-pointer |
88 |
.else |
89 |
CONFIGURE_ENV+= CPPFLAGS= CFLAGS= LDFLAGS= |
90 |
.endif |
91 |
.endif |
92 |
|
82 |
|
93 |
.if ${PORT_OPTIONS:MIPV6} |
83 |
DVDREAD_LIB_DEPENDS= libdvdread.so:${PORTSDIR}/multimedia/libdvdread |
94 |
CATEGORIES+= ipv6 |
84 |
DVDREAD_CONFIGURE_ENABLE=dvdread |
95 |
.else |
|
|
96 |
CONFIGURE_ARGS+= --disable-inet6 |
97 |
.endif |
98 |
|
85 |
|
99 |
.if ${PORT_OPTIONS:MGIF} |
86 |
DVDNAV_LIB_DEPENDS= libdvdnav.so:${PORTSDIR}/multimedia/libdvdnav |
100 |
LIB_DEPENDS+= libgif.so:${PORTSDIR}/graphics/giflib |
87 |
DVDNAV_CONFIGURE_ENABLE=dvdnav |
101 |
.else |
|
|
102 |
CONFIGURE_ARGS+= --disable-gif |
103 |
.endif |
104 |
|
88 |
|
105 |
.if ${PORT_OPTIONS:MMAD} |
89 |
ENCA_LIB_DEPENDS= libenca.so:${PORTSDIR}/converters/enca |
106 |
LIB_DEPENDS+= libmad.so:${PORTSDIR}/audio/libmad |
90 |
ENCA_CONFIGURE_ENABLE= enca |
107 |
.else |
91 |
ENCA_LIBS= -lenca |
108 |
CONFIGURE_ARGS+= --disable-mad |
|
|
109 |
.endif |
110 |
|
92 |
|
111 |
.if ${PORT_OPTIONS:MDV} |
93 |
GIF_LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib |
112 |
LIB_DEPENDS+= libdv.so:${PORTSDIR}/multimedia/libdv |
94 |
GIF_CONFIGURE_ENABLE= gif |
113 |
.else |
|
|
114 |
CONFIGURE_ARGS+= --disable-libdv |
115 |
.endif |
116 |
|
95 |
|
117 |
.if ${PORT_OPTIONS:MTHEORA} |
96 |
IPV6_CATEGORIES= ipv6 |
118 |
LIB_DEPENDS+= libtheora.so:${PORTSDIR}/multimedia/libtheora |
97 |
IPV6_CONFIGURE_ENABLE= inet6 |
119 |
.else |
|
|
120 |
CONFIGURE_ARGS+= --disable-theora |
121 |
.endif |
122 |
|
98 |
|
123 |
.if ${PORT_OPTIONS:MSPEEX} |
99 |
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack |
124 |
LIB_DEPENDS+= libspeex.so:${PORTSDIR}/audio/speex |
100 |
JACK_CONFIGURE_ENABLE= jack |
125 |
.else |
101 |
JACK_LIBS= -ljack |
126 |
CONFIGURE_ARGS+= --disable-speex |
|
|
127 |
.endif |
128 |
|
102 |
|
129 |
.if ${PORT_OPTIONS:MJACK} |
103 |
LADSPA_RUN_DEPENDS= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa |
130 |
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack |
104 |
LADSPA_CONFIGURE_ENABLE=ladspa |
131 |
.else |
|
|
132 |
CONFIGURE_ARGS+= --disable-jack |
133 |
.endif |
134 |
|
105 |
|
135 |
.if ${PORT_OPTIONS:MPULSE} |
106 |
LIBAV_LIB_DEPENDS= libavresample.so:${PORTSDIR}/multimedia/ffmpeg |
136 |
LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio |
107 |
LIBAV_CONFIGURE_ENABLE= libavresample |
137 |
.else |
108 |
LIBAV_LIBS= -lavresample |
138 |
CONFIGURE_ARGS+= --disable-pulse |
|
|
139 |
.endif |
140 |
|
109 |
|
141 |
.if ${PORT_OPTIONS:MPORTAUDIO} |
110 |
LIBBLURAY_LIB_DEPENDS= libbluray.so:${PORTSDIR}/multimedia/libbluray |
142 |
LIB_DEPENDS+= libportaudio.so:${PORTSDIR}/audio/portaudio |
111 |
LIBBLURAY_CONFIGURE_ENABLE=bluray |
143 |
PORTAUDIOLIB= -lportaudio |
|
|
144 |
.else |
145 |
CONFIGURE_ARGS+= --disable-portaudio |
146 |
.endif |
147 |
|
112 |
|
148 |
.if ${PORT_OPTIONS:MLIBBLURAY} |
113 |
LIBCDIO_LIB_DEPENDS= libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia |
149 |
LIB_DEPENDS+= libbluray.so:${PORTSDIR}/multimedia/libbluray |
114 |
LIBCDIO_CONFIGURE_ENABLE=libcdio |
150 |
.else |
|
|
151 |
CONFIGURE_ARGS+= --disable-bluray |
152 |
.endif |
153 |
|
115 |
|
154 |
.if ${PORT_OPTIONS:MSMB} |
116 |
LIRC_LIB_DEPENDS= liblirc_client.so:${PORTSDIR}/comms/lirc |
155 |
LIB_DEPENDS+= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient |
117 |
LIRC_CONFIGURE_ENABLE= lirc |
156 |
.else |
|
|
157 |
CONFIGURE_ARGS+= --disable-smb |
158 |
.endif |
159 |
|
118 |
|
160 |
.if ${PORT_OPTIONS:MLIBCDIO} |
119 |
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad |
161 |
LIB_DEPENDS+= libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-paranoia |
120 |
MAD_CONFIGURE_ENABLE= mad |
162 |
.else |
|
|
163 |
CONFIGURE_ARGS+= --disable-libcdio |
164 |
.endif |
165 |
|
121 |
|
166 |
.if ${PORT_OPTIONS:MLADSPA} |
122 |
OPENGL_USE= GL=gl XORG=glproto |
167 |
RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa |
123 |
OPENGL_CONFIGURE_ENABLE=gl |
168 |
.else |
124 |
OPENGL_IMPLIES= X11 |
169 |
CONFIGURE_ARGS+= --disable-ladspa |
|
|
170 |
.endif |
171 |
|
125 |
|
172 |
.if ${ARCH} == "i386" || ${ARCH} == "amd64" |
126 |
PORTAUDIO_LIB_DEPENDS= libportaudio.so:${PORTSDIR}/audio/portaudio |
173 |
.if ${PORT_OPTIONS:MWIN32} && !defined(PACKAGE_BUILDING) && ${ARCH} == "i386" |
127 |
PORTAUDIO_CONFIGURE_ENABLE=portaudio |
174 |
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs |
128 |
PORTAUDIO_LIBS= -lportaudio |
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 |
|
129 |
|
183 |
.if ${PORT_OPTIONS:MREALPLAYER} |
130 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio |
184 |
RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
131 |
PULSEAUDIO_CONFIGURE_ENABLE=pulse |
185 |
BUILD_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer |
132 |
PULSEAUDIO_LIBS= -lpulse |
186 |
.else |
|
|
187 |
CONFIGURE_ARGS+= --disable-real |
188 |
.endif |
189 |
|
133 |
|
190 |
#.if ${PORT_OPTIONS:MV4L} |
134 |
REALPLAYER_BUILD_DEPENDS=realplay:${PORTSDIR}/multimedia/linux-realplayer |
191 |
#BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat |
135 |
REALPLAYER_CONFIGURE_ENABLE=real |
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 |
|
136 |
|
203 |
.if ${PORT_OPTIONS:MASS} |
137 |
RTC_BUILD_DEPENDS= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
204 |
LIB_DEPENDS+= libass.so:${PORTSDIR}/multimedia/libass |
138 |
RTC_CONFIGURE_ENABLE= rtc |
205 |
.else |
|
|
206 |
CONFIGURE_ARGS+= --disable-libass --disable-enca |
207 |
.endif |
208 |
|
139 |
|
209 |
.if ${PORT_OPTIONS:MX11} |
140 |
SDL_USE= SDL=sdl |
210 |
USE_XORG= x11 xv xxf86vm |
141 |
SDL_CONFIGURE_ENABLE= sdl |
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 |
|
142 |
|
226 |
.if ${PORT_OPTIONS:MVDPAU} |
143 |
SMB_LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient |
227 |
LIB_DEPENDS+= libvdpau.so:${PORTSDIR}/multimedia/libvdpau |
144 |
SMB_CONFIGURE_ENABLE= smb |
228 |
.else |
|
|
229 |
CONFIGURE_ARGS+= --disable-vdpau |
230 |
.endif |
231 |
|
145 |
|
232 |
.if ${PORT_OPTIONS:MRTC} |
146 |
SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex |
233 |
BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc |
147 |
SPEEX_CONFIGURE_ENABLE= speex |
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 |
|
148 |
|
240 |
.if ${PORT_OPTIONS:MLIBCACA} |
149 |
THEORA_LIB_DEPENDS= libtheora.so:${PORTSDIR}/multimedia/libtheora |
241 |
LIB_DEPENDS+= libcaca.so:${PORTSDIR}/graphics/libcaca |
150 |
THEORA_CONFIGURE_ENABLE=theora |
242 |
.else |
151 |
THEORA_LIBS= -ltheoradec |
243 |
CONFIGURE_ARGS+= --disable-caca |
|
|
244 |
.endif |
245 |
|
152 |
|
246 |
.if ${PORT_OPTIONS:MLIRC} |
153 |
VDPAU_LIB_DEPENDS= libvdpau.so:${PORTSDIR}/multimedia/libvdpau |
247 |
LIB_DEPENDS+= liblirc_client.so:${PORTSDIR}/comms/lirc |
154 |
VDPAU_CONFIGURE_ENABLE= vdpau |
248 |
.else |
155 |
|
249 |
CONFIGURE_ARGS+= --disable-lirc |
156 |
WIN32_RUN_DEPENDS= win32-codecs>0:${PORTSDIR}/multimedia/win32-codecs |
250 |
.endif |
157 |
WIN32_CONFIGURE_ON= --codecsdir=${LOCALBASE}/lib/win32 |
|
|
158 |
WIN32_CONFIGURE_OFF= --disable-win32dll --disable-qtx |
159 |
|
160 |
X11_USE= XORG=x11,xv,xxf86vm |
161 |
X11_CONFIGURE_ENABLE= x11 |
162 |
X11_LIBS= -lX11 -lXext |
163 |
|
164 |
XINERAMA_USE= XORG=xinerama,xineramaproto |
165 |
XINERAMA_CONFIGURE_ENABLE=xinerama |
166 |
XINERAMA_IMPLIES= X11 |
167 |
|
168 |
.include <bsd.port.options.mk> |
251 |
|
169 |
|
252 |
.if ${PORT_OPTIONS:MSDL} |
170 |
BROKEN_sparc64= Does not compile on sparc64 |
253 |
USE_SDL= sdl |
171 |
|
|
|
172 |
#On i386, gcc runs out of general purpose registers when |
173 |
#trying to compile a debug version with the default flags. |
174 |
.if ${PORT_OPTIONS:MDEBUG} |
175 |
.if ${ARCH} == "i386" |
176 |
DEBUG_FLAGS= -g -O -fomit-frame-pointer |
177 |
.endif |
178 |
.else |
179 |
.if defined(PACKAGE_BUILDING) |
180 |
CONFIGURE_ARGS+= --enable-runtime-cpudetection |
181 |
CFLAGS+= -O2 -fomit-frame-pointer |
254 |
.else |
182 |
.else |
255 |
CONFIGURE_ARGS+= --disable-sdl |
183 |
CONFIGURE_ENV+= CPPFLAGS= CFLAGS= LDFLAGS= |
|
|
184 |
.endif |
256 |
.endif |
185 |
.endif |
257 |
|
186 |
|
258 |
.if defined(WITH_KERN_HZ) |
187 |
.if defined(WITH_KERN_HZ) |
Lines 261-266
Link Here
|
261 |
DEFAULT_KERN_HZ=1024 |
190 |
DEFAULT_KERN_HZ=1024 |
262 |
.endif |
191 |
.endif |
263 |
|
192 |
|
|
|
193 |
CONFIGURE_ARGS+= --extra-libs="${LIBS}" |
194 |
|
195 |
# Depend on RESTRICTED package when built manually |
196 |
.if !defined(PACKAGE_BUILDING) |
197 |
OPTIONS_DEFAULT_i386+= WIN32 |
198 |
.endif |
199 |
|
264 |
pre-everything:: |
200 |
pre-everything:: |
265 |
@${ECHO_MSG} "N - O - T - E" |
201 |
@${ECHO_MSG} "N - O - T - E" |
266 |
@${ECHO_MSG} "" |
202 |
@${ECHO_MSG} "" |
Lines 270-286
Link Here
|
270 |
|
206 |
|
271 |
post-patch: |
207 |
post-patch: |
272 |
.if ${OSVERSION} >= 900010 |
208 |
.if ${OSVERSION} >= 900010 |
273 |
@${REINPLACE_CMD} -e \ |
209 |
${REINPLACE_CMD} -e \ |
274 |
'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \ |
210 |
'/CFLAGS.*-D_LARGEFILE64_SOURCE/ s/-D_LARGEFILE64_SOURCE/-D_FILE_OFFSET_BITS=64/' \ |
275 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
211 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
276 |
.endif |
212 |
.endif |
277 |
@${REINPLACE_CMD} \ |
213 |
${REINPLACE_CMD} \ |
278 |
-e 's|/dev/acd0|${WITH_CDROM_DEVICE}|' \ |
214 |
-e 's|/dev/acd0|${WITH_CDROM_DEVICE}|' \ |
279 |
-e 's|/usr/local|${LOCALBASE}|' \ |
215 |
-e 's|/usr/local|${LOCALBASE}|' \ |
280 |
-e 's|-lbz2|/usr/lib/libbz2.so|' \ |
216 |
-e 's|-lbz2|/usr/lib/libbz2.so|' \ |
281 |
-e 's|-lncurses|/usr/lib/libncurses.so|' \ |
217 |
-e 's|-lncurses|/usr/lib/libncurses.so|' \ |
282 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
218 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
283 |
@${FIND} -E ${WRKSRC} -type f \ |
219 |
${FIND} -E ${WRKSRC} -type f \ |
284 |
-iregex ".*(configure|.sh|Makefile)" -print0 | \ |
220 |
-iregex ".*(configure|.sh|Makefile)" -print0 | \ |
285 |
${XARGS} -x -0 -n 10 \ |
221 |
${XARGS} -x -0 -n 10 \ |
286 |
${REINPLACE_CMD} -E \ |
222 |
${REINPLACE_CMD} -E \ |
Lines 288-308
Link Here
|
288 |
-e 's|[[:space:]]gcc| ${CC}|' \ |
224 |
-e 's|[[:space:]]gcc| ${CC}|' \ |
289 |
-e 's|\$$\(CC\)|${CC}|' \ |
225 |
-e 's|\$$\(CC\)|${CC}|' \ |
290 |
-e 's|/usr/X11R6|${LOCALBASE}|' |
226 |
-e 's|/usr/X11R6|${LOCALBASE}|' |
291 |
@${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \ |
227 |
${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \ |
292 |
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \ |
228 |
's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \ |
293 |
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \ |
229 |
s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g ; \ |
294 |
s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g' |
230 |
s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${WITH_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g' |
295 |
.if ${PORT_OPTIONS:MRTC} |
231 |
.if ${PORT_OPTIONS:MRTC} |
296 |
@${REINPLACE_CMD} -e \ |
232 |
${REINPLACE_CMD} -e \ |
297 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
233 |
's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ |
298 |
${WRKSRC}/mplayer.c |
234 |
${WRKSRC}/mplayer.c |
299 |
.endif |
235 |
.endif |
300 |
|
236 |
|
301 |
post-install: |
237 |
post-install: |
302 |
@${INSTALL_DATA} ${WRKSRC}/etc/example.conf \ |
238 |
${INSTALL_DATA} ${WRKSRC}/etc/example.conf \ |
303 |
${STAGEDIR}${PREFIX}/etc/mplayer/mplayer.conf.sample |
239 |
${STAGEDIR}${PREFIX}/etc/mplayer/mplayer.conf.sample |
304 |
.for conf in codecs input |
240 |
.for conf in codecs input |
305 |
@${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf \ |
241 |
${INSTALL_DATA} ${WRKSRC}/etc/${conf}.conf \ |
306 |
${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample |
242 |
${STAGEDIR}${PREFIX}/etc/mplayer/${conf}.conf.sample |
307 |
.endfor |
243 |
.endfor |
308 |
|
244 |
|