summaryrefslogtreecommitdiffstats
path: root/multimedia/totem/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-03-02 05:19:55 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-03-02 05:19:55 +0800
commit96d1e38b74c64152a662d7a669c897875ef96f56 (patch)
treeecb8ce705b4e57dd139dbe5a06ae029d256ae3c6 /multimedia/totem/Makefile
parent34ab1e4937b0e8e74539b2fb2857cada47e8fa19 (diff)
downloadmarcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.tar
marcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.tar.gz
marcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.tar.bz2
marcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.tar.lz
marcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.tar.xz
marcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.tar.zst
marcuscom-ports-96d1e38b74c64152a662d7a669c897875ef96f56.zip
Readd totem
Pointyhat to: me for removing this. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3783 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia/totem/Makefile')
-rw-r--r--multimedia/totem/Makefile94
1 files changed, 94 insertions, 0 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile
new file mode 100644
index 000000000..ded1af0f3
--- /dev/null
+++ b/multimedia/totem/Makefile
@@ -0,0 +1,94 @@
+# New ports collection makefile for: totem
+# Date created: 17 Oct 2002
+# Whom: Hendrik Scholz <hendrik@scholz.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= totem
+PORTVERSION= 0.101
+PORTREVISION?= 0
+CATEGORIES= multimedia gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER?= hendrik@scholz.net
+COMMENT?= A Xine-based video player for the Gnome 2 Desktop
+
+USE_REINPLACE= yes
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GNOME= gnomeprefix intlhack gnomehack gnomedesktop desktopfileutils \
+ nautiluscdburner
+WANT_GSTREAMER= yes
+USE_GMAKE= yes
+USE_LIBTOOL_VER=15
+INSTALLS_OMF= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXrandr"
+CONFIGURE_ARGS+=--disable-mozilla
+
+OPTIONS?= DVDNAV "Enable DVD support" on \
+ GSTREAMER "Use Gstreamer instead of Xine" off
+
+MAN1= totem.1
+GCONF_SCHEMAS= totem-handlers.schemas totem-video-thumbnail.schemas \
+ totem.schemas
+CONFLICTS= totem-gstreamer-[0-9]*
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GSTREAMER)
+CONFIGURE_ARGS+=--enable-gstreamer
+USE_GSTREAMER+= gnomevfs core
+WITHOUT_DVDNAV= yes
+PLIST_SUB= GSTREAMER=""
+.else
+LIB_DEPENDS+= xine.12:${PORTSDIR}/multimedia/libxine
+PLIST_SUB= GSTREAMER="@comment "
+.endif
+
+.if defined(WITH_DVDNAV) && !defined(WITHOUT_DVDNAV)
+LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav
+.endif
+
+.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_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 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} "===>"
+ @${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:
+ @${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
+ ${WRKSRC}/src/totem-preferences.c \
+ ${WRKSRC}/src/bacon-video-widget-gst.c
+.if defined(WITH_GSTREAMER)
+ @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
+ ${WRKSRC}/src/bacon-video-widget-gst.c
+.endif
+
+.include <bsd.port.post.mk>