diff options
author | pav <pav@FreeBSD.org> | 2004-05-18 04:43:52 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-18 04:43:52 +0800 |
commit | 361c5b9491791bda52d1756d048708290ca23a27 (patch) | |
tree | fffb5f7d7e8a4f9fdf5e85c240721ff675ef1f20 /multimedia/totem/Makefile | |
parent | 41bb87a6cc09f7d30947db7a36f8b46a2b41180c (diff) | |
download | freebsd-ports-gnome-361c5b9491791bda52d1756d048708290ca23a27.tar.gz freebsd-ports-gnome-361c5b9491791bda52d1756d048708290ca23a27.tar.zst freebsd-ports-gnome-361c5b9491791bda52d1756d048708290ca23a27.zip |
- Add option to use GStreamer backend instead of Xine
- Adjust default CD/DVD device and allow override
PR: ports/66186
Submitted by: michael johnson <ahze@ahze.net>
Approved by: maintainer timeout (14 days)
Diffstat (limited to 'multimedia/totem/Makefile')
-rw-r--r-- | multimedia/totem/Makefile | 59 |
1 files changed, 51 insertions, 8 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile index 0a63a9456055..9cde608bc5db 100644 --- a/multimedia/totem/Makefile +++ b/multimedia/totem/Makefile @@ -15,8 +15,7 @@ DIST_SUBDIR= gnome2 MAINTAINER= hendrik@scholz.net COMMENT= A Xine-based video player for the Gnome 2 Desktop -LIB_DEPENDS= xine.9:${PORTSDIR}/multimedia/libxine - +USE_REINPLACE= yes USE_BZIP2= yes USE_X_PREFIX= yes USE_GNOME= gnomeprefix intlhack gnomehack gnomedesktop @@ -25,22 +24,66 @@ USE_LIBTOOL_VER=13 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXrandr" +OPTIONS= GSTREAMER_OVERRIDE "Use GStreamer instead of xine" off \ + DVDNAV "Enable DVD support" on + MAN1= totem.1 .include <bsd.port.pre.mk> -.if exists(${LOCALBASE}/lib/libdvdnav.so) -WITH_DVDNAV= yes +.if defined(WITH_GSTREAMER_OVERRIDE) +CONFIGURE_ARGS+=--enable-gstreamer +USE_GNOME+= gstreamerplugins +WITHOUT_DVDNAV= yes +.else +LIB_DEPENDS+= xine.9:${PORTSDIR}/multimedia/libxine .endif -.if defined(WITH_DVDNAV) +.if defined(WITH_DVDNAV) && !defined(WITHOUT_DVDNAV) LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav .endif -.if !defined(WITH_DVDNAV) +.if defined(WITH_CDROM_DEVICE) +DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} +.else +.if ${OSVERSION} < 500000 +DEFAULT_CDROM_DEVICE=/dev/acd0c +.else +DEFAULT_CDROM_DEVICE=/dev/acd0 +.endif +.endif + +.if defined(WITH_GSTREAMER_OVERRIDE) +.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 +.endif + pre-everything:: - @${ECHO_MSG} "" - @${ECHO_MSG} "You can enable DVD support by defining WITH_DVDNAV" + @${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}" + @${ECHO_MSG} "===> Define WITH_CDROM_DEVICE if you want to change the default" + @${ECHO_MSG} "===> For example, 'make WITH_CDROM_DEVICE=\"/dev/somedevice\"'" + @${ECHO_MSG} "===>" +.if defined(WITH_GSTREAMER_OVERRIDE) + @${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|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ + ${WRKSRC}/src/cd-drive.c \ + ${WRKSRC}/src/totem-preferences.c \ + ${WRKSRC}/src/bacon-cd-selection.c +.if defined(WITH_GSTREAMER_OVERRIDE) + @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \ + ${WRKSRC}/src/bacon-video-widget-gst.c .endif .include <bsd.port.post.mk> |