2002-10-17 21:21:04 +02:00
|
|
|
# New ports collection makefile for: totem
|
|
|
|
# Date created: 17 Oct 2002
|
|
|
|
# Whom: Hendrik Scholz <hendrik@scholz.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= totem
|
2004-11-13 20:28:55 +01:00
|
|
|
PORTVERSION= 0.99.19
|
2003-04-04 03:38:40 +02:00
|
|
|
CATEGORIES= multimedia gnome
|
2003-02-27 18:41:03 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2004-11-13 20:28:55 +01:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/...$//}
|
2003-02-27 18:41:03 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
2002-10-17 21:21:04 +02:00
|
|
|
|
|
|
|
MAINTAINER= hendrik@scholz.net
|
2003-02-21 13:17:17 +01:00
|
|
|
COMMENT= A Xine-based video player for the Gnome 2 Desktop
|
2002-10-17 21:21:04 +02:00
|
|
|
|
2004-11-13 20:28:55 +01:00
|
|
|
LIB_DEPENDS= nautilus-burn.0:${PORTSDIR}/sysutils/nautilus-cd-burner
|
|
|
|
|
2004-05-17 22:43:52 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-02-27 18:41:03 +01:00
|
|
|
USE_BZIP2= yes
|
2002-10-17 21:21:04 +02:00
|
|
|
USE_X_PREFIX= yes
|
2004-08-28 18:17:21 +02:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomehack gnomedesktop desktopfileutils
|
2002-10-17 21:21:04 +02:00
|
|
|
USE_GMAKE= yes
|
2004-08-28 18:17:21 +02:00
|
|
|
USE_LIBTOOL_VER=15
|
2003-02-27 18:41:03 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
2003-07-10 17:42:41 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXrandr"
|
2002-10-17 21:21:04 +02:00
|
|
|
|
2004-05-17 22:43:52 +02:00
|
|
|
OPTIONS= GSTREAMER_OVERRIDE "Use GStreamer instead of xine" off \
|
|
|
|
DVDNAV "Enable DVD support" on
|
|
|
|
|
2004-05-02 00:28:08 +02:00
|
|
|
MAN1= totem.1
|
2004-11-13 20:28:55 +01:00
|
|
|
GCONF_SCHEMAS= totem-handlers.schemas totem-video-thumbnail.schemas \
|
|
|
|
totem.schemas
|
2004-05-02 00:28:08 +02:00
|
|
|
|
2003-05-02 08:36:11 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-17 22:43:52 +02:00
|
|
|
.if defined(WITH_GSTREAMER_OVERRIDE)
|
|
|
|
CONFIGURE_ARGS+=--enable-gstreamer
|
|
|
|
USE_GNOME+= gstreamerplugins
|
|
|
|
WITHOUT_DVDNAV= yes
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= xine.9:${PORTSDIR}/multimedia/libxine
|
2003-05-02 08:36:11 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-17 22:43:52 +02:00
|
|
|
.if defined(WITH_DVDNAV) && !defined(WITHOUT_DVDNAV)
|
2004-02-20 22:06:23 +01:00
|
|
|
LIB_DEPENDS+= dvdnav.3:${PORTSDIR}/multimedia/libdvdnav
|
2003-05-02 08:36:11 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-17 22:43:52 +02:00
|
|
|
.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
|
|
|
|
|
2003-05-02 08:36:11 +02:00
|
|
|
pre-everything::
|
2004-05-17 22:43:52 +02:00
|
|
|
@${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 \
|
2004-11-13 20:28:55 +01:00
|
|
|
${WRKSRC}/src/bacon-video-widget-gst.c
|
2004-05-17 22:43:52 +02:00
|
|
|
.if defined(WITH_GSTREAMER_OVERRIDE)
|
|
|
|
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
|
|
|
|
${WRKSRC}/src/bacon-video-widget-gst.c
|
2003-05-02 08:36:11 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|