summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-04 14:00:32 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-04 14:00:32 +0800
commit995dbffd24199d457abaa813ac22fc7fa9f501f6 (patch)
treeebb0d0aa44cf425c546b4aa5b79a2a063ef3c1ea
parentf80a04bb3796b2e63aebb5dc8405aa84bdd7234a (diff)
downloadmarcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.tar
marcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.tar.gz
marcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.tar.bz2
marcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.tar.lz
marcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.tar.xz
marcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.tar.zst
marcuscom-ports-995dbffd24199d457abaa813ac22fc7fa9f501f6.zip
Re-add hack for /dev/dvd and re-add WITH_DVD_DEVICE knob.
% totem --debug ** Message: w 0 h 0 sidebar 0 closing closing closing libdvdread: Using libdvdcss version 1.2.9 for DVD access libdvdread: Can't stat /dev/dvd No such file or directory ** Message: w 420 h 438 sidebar 0 git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7201 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--multimedia/totem/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile
index 1aa0764ab..f08697c6f 100644
--- a/multimedia/totem/Makefile
+++ b/multimedia/totem/Makefile
@@ -79,12 +79,31 @@ PLIST_SUB+= GSTREAMER="@comment "
LIB_DEPENDS+= dvdnav.4:${PORTSDIR}/multimedia/libdvdnav
.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
+
+pre-everything::
+ @${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\"'"
+
post-patch:
@${CP} -f ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
@${REINPLACE_CMD} -e ' s|@MOZILLA_PLUGINDIR@|${PREFIX}/lib/browser_plugins|; \
s|mozilla/plugins|browser_plugins|' \
${WRKSRC}/browser-plugin/Makefile.in \
${WRKSRC}/browser-plugin/idl/Makefile.in
+.if defined(WITH_GSTREAMER)
+ @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
+ ${WRKSRC}/src/backend/bacon-video-widget-gst-0.10.c
+.endif
post-install:
@-update-desktop-database