ports/71164: [MAINTAINER] multimedia/gmencoder: [DVD device knob]

Michael Johnson ahze at ahze.net
Mon Aug 30 20:20:21 UTC 2004


>Number:         71164
>Category:       ports
>Synopsis:       [MAINTAINER] multimedia/gmencoder: [DVD device knob]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 30 20:20:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        FreeBSD 5.3-BETA1 i386
>Organization:
>Environment:
System: FreeBSD gentoo.ahze.net 5.3-BETA1 FreeBSD 5.3-BETA1 #64: Thu Aug 26 13:59:58 EDT 2004
>Description:
- add knob to control where dvd device is

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

--- gmencoder-0.1.0_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /usr/opt/cvs/freebsd-src/ports/multimedia/gmencoder/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	5 Apr 2004 03:30:45 -0000	1.4
+++ Makefile	30 Aug 2004 20:11:06 -0000
@@ -28,9 +28,30 @@
 
 MAN1=		gmencoder.1
 
+.include <bsd.port.pre.mk>
+
+.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
+
+pre-everything::
+.if !defined(WITH_DVD_DEVICE)
+	@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
+	@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
+	@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|-O4||; s|type -path|which|' \
 		${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
+		${WRKSRC}/src/main.c ${WRKSRC}/src/interface.c
 
 post-install:
 .if !defined(NOPORTDOCS)
@@ -41,4 +62,4 @@
 .endif
 	${INSTALL_MAN}	${WRKSRC}/man/gmencoder.1 ${MANPREFIX}/man/man1
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- gmencoder-0.1.0_3.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list