aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gmencoder
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-09-01 08:03:48 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-09-01 08:03:48 +0000
commit0fbecf08cc522e422e9b0cb363e24ea557276b79 (patch)
tree2f316314f3c1060448f86d788b201cb31d7a98f8 /multimedia/gmencoder
parent93ad5c3f67962054387e1f5ebfd8523480238c6a (diff)
downloadports-0fbecf08cc522e422e9b0cb363e24ea557276b79.tar.gz
ports-0fbecf08cc522e422e9b0cb363e24ea557276b79.zip
Notes
Diffstat (limited to 'multimedia/gmencoder')
-rw-r--r--multimedia/gmencoder/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/multimedia/gmencoder/Makefile b/multimedia/gmencoder/Makefile
index 835dbc283583..024e12613070 100644
--- a/multimedia/gmencoder/Makefile
+++ b/multimedia/gmencoder/Makefile
@@ -28,9 +28,30 @@ USE_REINPLACE= yes
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 @@ post-install:
.endif
${INSTALL_MAN} ${WRKSRC}/man/gmencoder.1 ${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>