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