aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vdr-plugin-softdevice
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2011-03-27 03:20:28 +0800
committernox <nox@FreeBSD.org>2011-03-27 03:20:28 +0800
commita40c60857b3e6ea71ec8a38148a554366b559953 (patch)
tree64f74fc91632733ba48d24e542660797eb7466c3 /multimedia/vdr-plugin-softdevice
parentbaa2e383b03c2a09146f1d553973708496c9a548 (diff)
downloadfreebsd-ports-gnome-a40c60857b3e6ea71ec8a38148a554366b559953.tar.gz
freebsd-ports-gnome-a40c60857b3e6ea71ec8a38148a554366b559953.tar.zst
freebsd-ports-gnome-a40c60857b3e6ea71ec8a38148a554366b559953.zip
http://www.linuxtv.org/vdrwiki/index.php/Softdevice-plugin
This VDR plugin is a MPEG2 decoder. It can be used as an output device for the vdr. Possible output devices are Xv, DirectFB, Vidix or a framebuffer. WWW: http://softdevice.berlios.de/
Diffstat (limited to 'multimedia/vdr-plugin-softdevice')
-rw-r--r--multimedia/vdr-plugin-softdevice/Makefile45
-rw-r--r--multimedia/vdr-plugin-softdevice/distinfo2
-rw-r--r--multimedia/vdr-plugin-softdevice/files/patch-Makefile12
-rw-r--r--multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c11
-rw-r--r--multimedia/vdr-plugin-softdevice/files/patch-shm-common.h11
-rw-r--r--multimedia/vdr-plugin-softdevice/pkg-descr7
-rw-r--r--multimedia/vdr-plugin-softdevice/pkg-plist25
7 files changed, 113 insertions, 0 deletions
diff --git a/multimedia/vdr-plugin-softdevice/Makefile b/multimedia/vdr-plugin-softdevice/Makefile
new file mode 100644
index 000000000000..f8375aaeadfb
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: vdr-plugin-softdevie
+# Date created: Wed Apr 14 18:11:42 CEST 2010
+# Whom: Juergen Lock <nox@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= vdr-plugin-softdevice
+PORTVERSION= 0.5.0p20100414
+PORTREVISION= 6
+CATEGORIES= multimedia
+MASTER_SITES= LOCAL
+MASTER_SITE_SUBDIR= nox/
+DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
+
+MAINTAINER= nox@FreeBSD.org
+COMMENT= Video Disk Recorder - softdevice plugin
+
+LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
+
+USE_BZIP2= yes
+USE_GNOME+= pkgconfig
+USE_XORG+= xv x11 xinerama
+PATCH_STRIP= -p1
+HAVE_CONFIGURE= yes
+PORTDOCS= COPYING README
+MAKE_JOBS_SAFE= yes
+WRKSRC= ${WRKDIR}/${PLUGIN}
+CONFIGURE_ARGS+= --disable-vidix --disable-fb --disable-dfb --disable-cle266 --disable-alsa #--disable-yaepg
+
+.include "${.CURDIR}/../vdr/Makefile.plugins"
+
+post-patch: post-patch-plugin
+ ${REINPLACE_CMD} 's|/usr/X11R6|${LOCALBASE}|' ${WRKSRC}/Makefile ${WRKSRC}/configure
+
+do-configure:
+ (cd ${WRKSRC} && ./configure ${CONFIGURE_ARGS})
+
+post-install: post-install-pluginlocales
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
+.endif
+
+.include <bsd.port.mk>
diff --git a/multimedia/vdr-plugin-softdevice/distinfo b/multimedia/vdr-plugin-softdevice/distinfo
new file mode 100644
index 000000000000..0bf6912b3f40
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/distinfo
@@ -0,0 +1,2 @@
+SHA256 (vdr/vdr-softdevice-0.5.0p20100414.tar.bz2) = fe737cd580f7b56cd3c32ecf10696008ccf13400a87266b4b8d2b5c9727a0bd2
+SIZE (vdr/vdr-softdevice-0.5.0p20100414.tar.bz2) = 163434
diff --git a/multimedia/vdr-plugin-softdevice/files/patch-Makefile b/multimedia/vdr-plugin-softdevice/files/patch-Makefile
new file mode 100644
index 000000000000..757f5db4c5cf
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/files/patch-Makefile
@@ -0,0 +1,12 @@
+--- Makefile.orig
++++ Makefile
+@@ -438,3 +438,9 @@ MacVdrClient_obj = video_shm.o video-qua
+ MacVdrClient: $(MacVdrClient_obj)
+ $(CXX) $(LDFLAGS) $(MacVdrClient_obj) -framework Carbon -framework AGL -framework OpenGL -lpthread -o $@
+ cp $@ ./MacVdrClient.app/Contents/MacOS/MacVdrClient
++
++install:
++ ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION)
++ ${INSTALL_PROGRAM} $(LIBDIR)/lib$(PLUGIN)-xv.so.$(APIVERSION) $(PREFIX)/lib/vdr/lib$(PLUGIN)-xv.so.$(APIVERSION)
++ ${INSTALL_PROGRAM} $(LIBDIR)/lib$(PLUGIN)-shm.so.$(APIVERSION) $(PREFIX)/lib/vdr/lib$(PLUGIN)-shm.so.$(APIVERSION)
++ ${INSTALL_PROGRAM} ShmClient $(PREFIX)/bin
diff --git a/multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c b/multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c
new file mode 100644
index 000000000000..9548cfc7aab7
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/files/patch-VdrReplacements.c
@@ -0,0 +1,11 @@
+--- VdrReplacements.c.orig
++++ VdrReplacements.c
+@@ -16,7 +16,7 @@
+ cMutex::cMutex() {
+ pthread_mutexattr_t attr;
+ pthread_mutexattr_init(&attr);
+-#ifdef __APPLE__
++#if defined(__APPLE__) || defined(__FreeBSD__)
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
+ #else
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK_NP);
diff --git a/multimedia/vdr-plugin-softdevice/files/patch-shm-common.h b/multimedia/vdr-plugin-softdevice/files/patch-shm-common.h
new file mode 100644
index 000000000000..a7e400ee22f3
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/files/patch-shm-common.h
@@ -0,0 +1,11 @@
+--- shm-common.h.orig
++++ shm-common.h
+@@ -20,7 +20,7 @@
+
+ #define CTL_KEY 5681
+
+-#ifndef __APPLE__ // should rather be #ifdef LINUX
++#if !defined(__APPLE__) && !defined(__FreeBSD__) // should rather be #ifdef LINUX
+ union semun {
+ int val;
+ struct semid_ds *buf;
diff --git a/multimedia/vdr-plugin-softdevice/pkg-descr b/multimedia/vdr-plugin-softdevice/pkg-descr
new file mode 100644
index 000000000000..ea5d4ae76959
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/pkg-descr
@@ -0,0 +1,7 @@
+http://www.linuxtv.org/vdrwiki/index.php/Softdevice-plugin
+
+This VDR plugin is a MPEG2 decoder.
+It can be used as an output device for the vdr. Possible output devices are
+Xv, DirectFB, Vidix or a framebuffer.
+
+WWW: http://softdevice.berlios.de/
diff --git a/multimedia/vdr-plugin-softdevice/pkg-plist b/multimedia/vdr-plugin-softdevice/pkg-plist
new file mode 100644
index 000000000000..b7ae7b611878
--- /dev/null
+++ b/multimedia/vdr-plugin-softdevice/pkg-plist
@@ -0,0 +1,25 @@
+bin/ShmClient
+lib/vdr/libvdr-softdevice.so.1.7.17
+lib/vdr/libsoftdevice-xv.so.1.7.17
+lib/vdr/libsoftdevice-shm.so.1.7.17
+%%NLS%%share/locale/ca_ES/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/cs_CZ/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/da_DK/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/de_DE/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/el_GR/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/es_ES/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/et_EE/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/fi_FI/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/fr_FR/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/hr_HR/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/hu_HU/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/it_IT/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/nl_NL/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/nn_NO/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/pl_PL/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/pt_PT/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/ro_RO/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/ru_RU/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/sl_SI/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/sv_SE/LC_MESSAGES/vdr-softdevice.mo
+%%NLS%%share/locale/tr_TR/LC_MESSAGES/vdr-softdevice.mo