From 995dbffd24199d457abaa813ac22fc7fa9f501f6 Mon Sep 17 00:00:00 2001 From: mezz Date: Mon, 4 Sep 2006 06:00:32 +0000 Subject: 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 --- multimedia/totem/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 -- cgit v1.2.3