aboutsummaryrefslogtreecommitdiff
path: root/multimedia/totem
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2004-11-13 19:28:55 +0000
committerKoop Mast <kwm@FreeBSD.org>2004-11-13 19:28:55 +0000
commit4dfb6f735fba6570bce83da15a9437267da95573 (patch)
tree806314b652279d742b7d7ecfbecd676428cff8da /multimedia/totem
parent1cf5e50e5a0679cb53e4f7334608cd72e6a2c467 (diff)
downloadports-4dfb6f735fba6570bce83da15a9437267da95573.tar.gz
ports-4dfb6f735fba6570bce83da15a9437267da95573.zip
Notes
Diffstat (limited to 'multimedia/totem')
-rw-r--r--multimedia/totem/Makefile16
-rw-r--r--multimedia/totem/distinfo4
-rw-r--r--multimedia/totem/files/patch-src_totem-disk.c49
-rw-r--r--multimedia/totem/pkg-plist9
4 files changed, 61 insertions, 17 deletions
diff --git a/multimedia/totem/Makefile b/multimedia/totem/Makefile
index cb3fd87ef4a9..3aa705546a2f 100644
--- a/multimedia/totem/Makefile
+++ b/multimedia/totem/Makefile
@@ -6,16 +6,17 @@
#
PORTNAME= totem
-PORTVERSION= 0.99.15.1
-PORTREVISION= 1
+PORTVERSION= 0.99.19
CATEGORIES= multimedia gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
-MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/.....$//}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/...$//}
DIST_SUBDIR= gnome2
MAINTAINER= hendrik@scholz.net
COMMENT= A Xine-based video player for the Gnome 2 Desktop
+LIB_DEPENDS= nautilus-burn.0:${PORTSDIR}/sysutils/nautilus-cd-burner
+
USE_REINPLACE= yes
USE_BZIP2= yes
USE_X_PREFIX= yes
@@ -29,6 +30,8 @@ OPTIONS= GSTREAMER_OVERRIDE "Use GStreamer instead of xine" off \
DVDNAV "Enable DVD support" on
MAN1= totem.1
+GCONF_SCHEMAS= totem-handlers.schemas totem-video-thumbnail.schemas \
+ totem.schemas
.include <bsd.port.pre.mk>
@@ -54,7 +57,6 @@ DEFAULT_CDROM_DEVICE=/dev/acd0
.endif
.endif
-.if defined(WITH_GSTREAMER_OVERRIDE)
.if defined(WITH_DVD_DEVICE)
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
.else
@@ -64,24 +66,20 @@ DEFAULT_DVD_DEVICE=/dev/acd0c
DEFAULT_DVD_DEVICE=/dev/acd0
.endif
.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} "===>"
-.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
+ ${WRKSRC}/src/bacon-video-widget-gst.c
.if defined(WITH_GSTREAMER_OVERRIDE)
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
${WRKSRC}/src/bacon-video-widget-gst.c
diff --git a/multimedia/totem/distinfo b/multimedia/totem/distinfo
index b316b6d868e4..5f694a0fe5b8 100644
--- a/multimedia/totem/distinfo
+++ b/multimedia/totem/distinfo
@@ -1,2 +1,2 @@
-MD5 (gnome2/totem-0.99.15.1.tar.bz2) = c5db3ea18fc66afce61e959c255706c7
-SIZE (gnome2/totem-0.99.15.1.tar.bz2) = 1025252
+MD5 (gnome2/totem-0.99.19.tar.bz2) = e2d8c6cd39b0843d51d357cc3921873a
+SIZE (gnome2/totem-0.99.19.tar.bz2) = 1062379
diff --git a/multimedia/totem/files/patch-src_totem-disk.c b/multimedia/totem/files/patch-src_totem-disk.c
new file mode 100644
index 000000000000..16213afd535a
--- /dev/null
+++ b/multimedia/totem/files/patch-src_totem-disk.c
@@ -0,0 +1,49 @@
+--- src/totem-disc.c.orig Mon Oct 18 14:00:05 2004
++++ src/totem-disc.c Mon Oct 18 14:00:14 2004
+@@ -26,12 +26,34 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <errno.h>
+-#include <mntent.h>
+ #include <string.h>
+
+ #include <sys/ioctl.h>
+ #include <sys/stat.h>
++
++#ifdef __FreeBSD__
++#include <sys/cdio.h>
++#include <sys/disklabel.h>
++
++#define CDROM_DRIVE_STATUS 0x5326
++#define CDROM_DISC_STATUS 0x5327
++#define CDS_AUDIO 100
++#define CDS_MIXED 105
++#define CDS_DATA_1 101
++#define CDS_DATA_2 102
++#define CDS_NO_INFO 0 /* if not implemented */
++#define CDS_NO_DISC 1
++#define CDS_TRAY_OPEN 2
++#define CDS_DRIVE_NOT_READY 3
++#define CDS_DISC_OK 4
++#define CDS_XA_2_1 103
++#define CDS_XA_2_2 104
++#define ENOMEDIUM ENODEV
++#define CDROM_GET_CAPABILITY CDIOCCLRDEBUG
++#else
+ #include <linux/cdrom.h>
++#include <mntent.h>
++#endif
+
+ #include <glib.h>
+ #include <glib/gi18n.h>
+@@ -395,8 +417,10 @@
+ /* open disc, check capabilities and open mount */
+ if (!cd_cache_open_device (cache, error))
+ return MEDIA_TYPE_ERROR;
++#ifdef __linux__
+ if (!(cache->cap & CDC_DVD))
+ return MEDIA_TYPE_DATA;
++#endif
+ if (!(dir = cd_cache_open_mountpoint (cache, error)))
+ return MEDIA_TYPE_ERROR;
+
diff --git a/multimedia/totem/pkg-plist b/multimedia/totem/pkg-plist
index 3bc96cade3e6..49aade05c44e 100644
--- a/multimedia/totem/pkg-plist
+++ b/multimedia/totem/pkg-plist
@@ -1,11 +1,5 @@
bin/totem
bin/totem-video-thumbnailer
-@unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/totem-video-thumbnail.schemas > /dev/null || /usr/bin/true
-etc/gconf/schemas/totem-video-thumbnail.schemas
-@exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/totem-video-thumbnail.schemas > /dev/null || /usr/bin/true
-@unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/totem.schemas > /dev/null || /usr/bin/true
-etc/gconf/schemas/totem.schemas
-@exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/totem.schemas > /dev/null || /usr/bin/true
libdata/bonobo/servers/Totem_properties.server
libexec/totem-properties-page
share/gnome/application-registry/totem.applications
@@ -94,6 +88,7 @@ share/locale/eu/LC_MESSAGES/totem.mo
share/locale/fi/LC_MESSAGES/totem.mo
share/locale/fr/LC_MESSAGES/totem.mo
share/locale/ga/LC_MESSAGES/totem.mo
+share/locale/gu/LC_MESSAGES/totem.mo
share/locale/he/LC_MESSAGES/totem.mo
share/locale/hr/LC_MESSAGES/totem.mo
share/locale/hu/LC_MESSAGES/totem.mo
@@ -106,6 +101,7 @@ share/locale/lv/LC_MESSAGES/totem.mo
share/locale/mk/LC_MESSAGES/totem.mo
share/locale/ml/LC_MESSAGES/totem.mo
share/locale/ms/LC_MESSAGES/totem.mo
+share/locale/nb/LC_MESSAGES/totem.mo
share/locale/nl/LC_MESSAGES/totem.mo
share/locale/no/LC_MESSAGES/totem.mo
share/locale/pl/LC_MESSAGES/totem.mo
@@ -114,6 +110,7 @@ share/locale/pt_BR/LC_MESSAGES/totem.mo
share/locale/ro/LC_MESSAGES/totem.mo
share/locale/ru/LC_MESSAGES/totem.mo
share/locale/sk/LC_MESSAGES/totem.mo
+share/locale/sq/LC_MESSAGES/totem.mo
share/locale/sr/LC_MESSAGES/totem.mo
share/locale/sr@Latn/LC_MESSAGES/totem.mo
share/locale/sv/LC_MESSAGES/totem.mo