ports/65059: [PATCH] multimedia/mplayer: [DVD Device Support]

michael johnson ahze at ahze.net
Fri Apr 2 05:30:15 UTC 2004


>Number:         65059
>Category:       ports
>Synopsis:       [PATCH] multimedia/mplayer: [DVD Device Support]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 01 21:30:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #37: Sat Mar 27 18:30:44 EST 2004
>Description:
- DVD device support

this allows `mplayer dvd://` to work out of the box with out having to supply -dvd-device /dev/DEVICE
 
Port maintainer (riggs at rrr.de) is cc'd.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- mplayer-gtk-esound-0.92.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/mplayer/Makefile,v
retrieving revision 1.89
diff -u -r1.89 Makefile
--- Makefile	31 Mar 2004 08:11:39 -0000	1.89
+++ Makefile	2 Apr 2004 05:14:34 -0000
@@ -91,6 +91,11 @@
 # WITH_DVD
 # default: autodetect
 #
+# WITH_DVD_DEVICE
+# default 5.x: /dev/acd0 
+# default 4.x: /dev/acd0c
+# change the default dvd device
+#
 # WITH_LIBDVDREAD
 # default: disabled
 # define this if you prefer the use of libdvdread instead of the
@@ -518,6 +523,16 @@
 CONFIGURE_ARGS+=--disable-xanim
 .endif
 
+.if defined(WITH_DVD_DEVICE)
+DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
+.else
+.if ${OSVERSION} < 500000
+DEFAULT_DVD_DEVICE=/dev/acd0c
+.else
+DEFAULT_DVD_DEVICE=/dev/acd0
+.endif
+.endif
+
 # "enable" build for other archs
 .if ${ARCH} == "i386"
 .if !defined(WITHOUT_RUNTIME_CPUDETECTION)
@@ -582,6 +597,8 @@
 		's|libxmms.so.1|libxmms.so|' \
 		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
 	@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#g' \
+		${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
 		${WRKSRC}/configure
 .if defined(WITH_RTC)
 	@${REINPLACE_CMD} -e \
--- mplayer-gtk-esound-0.92.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list