# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # vdr-plugin-softhddevice/ # vdr-plugin-softhddevice/Makefile # vdr-plugin-softhddevice/distinfo # vdr-plugin-softhddevice/pkg-descr # vdr-plugin-softhddevice/pkg-plist # vdr-plugin-softhddevice/files/ # vdr-plugin-softhddevice/files/patch-Makefile # vdr-plugin-softhddevice/files/patch-codec.c # vdr-plugin-softhddevice/files/patch-softhddev.c # vdr-plugin-softhddevice/files/patch-video.c # echo c - vdr-plugin-softhddevice/ mkdir -p vdr-plugin-softhddevice/ > /dev/null 2>&1 echo x - vdr-plugin-softhddevice/Makefile sed 's/^X//' >vdr-plugin-softhddevice/Makefile << 'faf60cc9226092dcc89e1bb515c77dde' X# New ports collection makefile for: vdr-plugin-softhddevie X# Date created: Sun Apr 29 17:00:02 CEST 2012 X# Whom: Juergen Lock X# X# $FreeBSD: $ X# X XPORTNAME= vdr-plugin-softhddevice XPORTVERSION= 0.5.0 XCATEGORIES= multimedia XMASTER_SITES= http://projects.vdr-developer.org/attachments/download/919/ XDISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} XEXTRACT_SUFX= .tgz X XMAINTAINER= nox@FreeBSD.org XCOMMENT= Video Disk Recorder - softhddevice plugin X XLIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg \ X vdpau.1:${PORTSDIR}/multimedia/libvdpau \ X xcb.2:${PORTSDIR}/x11/libxcb \ X xcb-keysyms.1:${PORTSDIR}/x11/xcb-util-keysyms \ X asound.2:${PORTSDIR}/audio/alsa-lib X XUSE_GNOME+= pkgconfig XUSE_XORG+= xv x11 xinerama XUSE_GL+= gl glu XPATCH_STRIP= -p1 XHAVE_CONFIGURE= yes XPORTDOCS= AGPL-3.0.txt ChangeLog README.txt XCONFIG+= -DLOCALBASE=\\\"${LOCALBASE}\\\" XCONFIG+= -DUSE_VDPAU XCONFIG+= -DUSE_OSS XMAKE_ARGS+= CONFIG="${CONFIG}" XMAKE_JOBS_SAFE= yes XWRKSRC= ${WRKDIR}/${PLUGIN}-${PORTVERSION} X X.include "${.CURDIR}/../vdr/Makefile.plugins" X XOPTIONS= VAAPI "Enable vaapi support (experimental)" off X X.include X X.if defined(WITH_VAAPI) XLIB_DEPENDS+= va.1:${PORTSDIR}/multimedia/libva XCONFIG+= -DUSE_VAAPI X.endif X Xpost-patch: post-patch-plugin X Xpost-install: post-install-pluginlocales X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) X.endif X X.include faf60cc9226092dcc89e1bb515c77dde echo x - vdr-plugin-softhddevice/distinfo sed 's/^X//' >vdr-plugin-softhddevice/distinfo << '3e009044fdd6db397fa5b9e90aead623' XSHA256 (vdr/vdr-softhddevice-0.5.0.tgz) = e2fac582ac22a628f360f90657579367c88f2c4af78df9b6ce0739928cdb3f97 XSIZE (vdr/vdr-softhddevice-0.5.0.tgz) = 142044 3e009044fdd6db397fa5b9e90aead623 echo x - vdr-plugin-softhddevice/pkg-descr sed 's/^X//' >vdr-plugin-softhddevice/pkg-descr << 'a7d5e7b1dc532e74ec07961b31f7c258' XA software and GPU emulated HD output device plugin for VDR. X X Video decoder CPU / VA-API / VDPAU X Video output VA-API / VDPAU X Audio FFMpeg / Alsa / Analog X Audio FFMpeg / Alsa / Digital X Audio FFMpeg / OSS / Analog X HDMI/SPDIF pass-through X YaepgHD support X Software deinterlacer Bob (VA-API only) X Autocrop X Grab image (VDPAU only) X Suspend X Letterbox, Stretch and Center cut-out video display modes X XNote: currently doesn't support XV, only VDPAU or (optional) VAAPI X XWWW: http://projects.vdr-developer.org/projects/plg-softhddevice a7d5e7b1dc532e74ec07961b31f7c258 echo x - vdr-plugin-softhddevice/pkg-plist sed 's/^X//' >vdr-plugin-softhddevice/pkg-plist << 'd11d211295839fa83f956cf9a48ee12b' Xlib/vdr/libvdr-softhddevice.so.%%APIVERSION%% d11d211295839fa83f956cf9a48ee12b echo c - vdr-plugin-softhddevice/files/ mkdir -p vdr-plugin-softhddevice/files/ > /dev/null 2>&1 echo x - vdr-plugin-softhddevice/files/patch-Makefile sed 's/^X//' >vdr-plugin-softhddevice/files/patch-Makefile << 'd0982059a968435a6acf032167f69349' X--- a/Makefile X+++ b/Makefile X@@ -41,8 +41,8 @@ CXXFLAGS ?= -g -O2 -W -Wall -Wextra -Wer X X ### The directory environment: X X-VDRDIR ?= ../../.. X-LIBDIR ?= ../../lib X+VDRDIR = /usr/local/include/vdr X+LIBDIR = ../lib X TMPDIR ?= /tmp X X ### Make sure that necessary options are included: X@@ -72,7 +72,7 @@ DEFINES += $(CONFIG) -D_GNU_SOURCE -DPLU X _CFLAGS = $(DEFINES) $(INCLUDES) \ X $(shell pkg-config --cflags libavcodec) \ X `pkg-config --cflags x11 x11-xcb xcb xcb-xv xcb-shm xcb-dpms xcb-atom\ X- xcb-screensaver xcb-randr xcb-glx xcb-icccm xcb-keysyms`\ X+ xcb-screensaver xcb-randr xcb-glx xcb-keysyms`\ X `pkg-config --cflags gl glu` \ X $(if $(findstring USE_VDPAU,$(CONFIG)), \ X `pkg-config --cflags vdpau`) \ X@@ -88,7 +88,7 @@ override CFLAGS += $(_CFLAGS) X LIBS += -lrt \ X $(shell pkg-config --libs libavcodec) \ X `pkg-config --libs x11 x11-xcb xcb xcb-xv xcb-shm xcb-dpms xcb-atom\ X- xcb-screensaver xcb-randr xcb-glx xcb-icccm xcb-keysyms`\ X+ xcb-screensaver xcb-randr xcb-glx xcb-keysyms`\ X `pkg-config --libs gl glu` \ X $(if $(findstring USE_VDPAU,$(CONFIG)), \ X `pkg-config --libs vdpau`) \ X@@ -113,7 +113,7 @@ all: libvdr-$(PLUGIN).so i18n X X ### Dependencies: X X-MAKEDEP = $(CC) -MM -MG X+MAKEDEP = $(CC) -MM # # # -MG X DEPFILE = .dependencies X $(DEPFILE): Makefile X @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(SRCS) >$@ X@@ -125,7 +125,7 @@ $(OBJS): Makefile X ### Internationalization (I18N): X X PODIR = po X-LOCALEDIR = $(VDRDIR)/locale X+LOCALEDIR = ../locale X I18Npo = $(wildcard $(PODIR)/*.po) X I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) X I18Npot = $(PODIR)/$(PLUGIN).pot X@@ -153,7 +153,11 @@ i18n: $(I18Nmsgs) $(I18Npot) X X libvdr-$(PLUGIN).so: $(OBJS) Makefile X $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -fPIC $(OBJS) -o $@ $(LIBS) X+ifdef FREEBSD X+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) X+else X @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) X+endif X X dist: $(I18Npo) clean X @-rm -rf $(TMPDIR)/$(ARCHIVE) X@@ -166,9 +170,17 @@ dist: $(I18Npo) clean X clean: X @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot X X+#install: libvdr-$(PLUGIN).so X+# cp --remove-destination libvdr-$(PLUGIN).so \ X+# /usr/lib/vdr/plugins/libvdr-$(PLUGIN).so.$(APIVERSION) X+ X install: libvdr-$(PLUGIN).so X+ifdef FREEBSD X+ ${INSTALL_PROGRAM} libvdr-$(PLUGIN).so $(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION) X+else X cp --remove-destination libvdr-$(PLUGIN).so \ X /usr/lib/vdr/plugins/libvdr-$(PLUGIN).so.$(APIVERSION) X+endif X X HDRS= $(wildcard *.h) X d0982059a968435a6acf032167f69349 echo x - vdr-plugin-softhddevice/files/patch-codec.c sed 's/^X//' >vdr-plugin-softhddevice/files/patch-codec.c << 'd49b23272c8521df06656d90e5a1d120' X--- a/codec.c X+++ b/codec.c X@@ -37,7 +37,11 @@ X X #include X #include X+#ifdef __FreeBSD__ X+#include X+#else X #include X+#endif X X #include X #include d49b23272c8521df06656d90e5a1d120 echo x - vdr-plugin-softhddevice/files/patch-softhddev.c sed 's/^X//' >vdr-plugin-softhddevice/files/patch-softhddev.c << '22f84204655bbaf0f0070cb5516a092f' X--- a/softhddev.c X+++ b/softhddev.c X@@ -22,6 +22,9 @@ X X #include X #include X+#ifdef __FreeBSD__ X+#include X+#endif X #include X X #include X@@ -2212,6 +2215,11 @@ int ProcessArgs(int argc, char *const ar X // X // Parse arguments. X // X+#ifdef __FreeBSD__ X+ if (!strcmp(*argv, "softhddevice")) X+ ++argv, --argc; X+#endif X+ X for (;;) { X switch (getopt(argc, argv, "-a:c:d:fg:p:sv:w:x")) { X case 'a': // audio device for pcm X@@ -2294,7 +2302,11 @@ int ProcessArgs(int argc, char *const ar X X #define XSERVER_MAX_ARGS 512 ///< how many arguments support X X+#ifndef __FreeBSD__ X static const char *X11Server = "/usr/bin/X"; ///< default x11 server X+#else X+static const char *X11Server = LOCALBASE "/bin/X"; ///< default x11 server X+#endif X static const char *X11ServerArguments; ///< default command arguments X static pid_t X11ServerPid; ///< x11 server pid X X@@ -2338,7 +2350,12 @@ static void StartXServer(void) X if ((sval = X11ServerArguments)) { X char *s; X X+#ifndef __FreeBSD__ X s = buf = strdupa(sval); X+#else X+ s = buf = alloca(strlen(sval) + 1); X+ strcpy(buf, sval); X+#endif X while ((sval = strsep(&s, " \t"))) { X args[argn++] = sval; X 22f84204655bbaf0f0070cb5516a092f echo x - vdr-plugin-softhddevice/files/patch-video.c sed 's/^X//' >vdr-plugin-softhddevice/files/patch-video.c << '163c00963a76556ff8acfc3c594ce634' X--- a/video.c X+++ b/video.c X@@ -101,7 +101,9 @@ X //#include X //#include X #include X+#if 0 X #include X+#endif X #ifdef XCB_ICCCM_NUM_WM_SIZE_HINTS_ELEMENTS X #include X #else // compatibility hack for old xcb-util 163c00963a76556ff8acfc3c594ce634 exit