summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-wirbelscan
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-wirbelscan
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-wirbelscan')
-rw-r--r--media-plugins/vdr-wirbelscan/Manifest7
-rw-r--r--media-plugins/vdr-wirbelscan/files/receiver-api-fixes.patch46
-rw-r--r--media-plugins/vdr-wirbelscan/files/wirbelscan.mk122
-rw-r--r--media-plugins/vdr-wirbelscan/metadata.xml8
-rw-r--r--media-plugins/vdr-wirbelscan/vdr-wirbelscan-0.0.7-r1.ebuild34
5 files changed, 217 insertions, 0 deletions
diff --git a/media-plugins/vdr-wirbelscan/Manifest b/media-plugins/vdr-wirbelscan/Manifest
new file mode 100644
index 000000000000..699af89b1aba
--- /dev/null
+++ b/media-plugins/vdr-wirbelscan/Manifest
@@ -0,0 +1,7 @@
+AUX receiver-api-fixes.patch 2060 SHA256 cb5f11ffb0bf7de1c70b8f92a3c2c2c68eea459f7fc0e81647f1d211be3b9ddf SHA512 973afc96a1f0a162b90b91c8f2053dd538f0b5644c0295ade0398a1cfa0a03ccd938b2faca2a0bcfe75f9d8663b1f0e145afc28de14d0f3bf1626bb0132a30cc WHIRLPOOL 5fa6bdfa580d52e95acb8123097893aff98b3b6a43a8bf27898df5b86a406a62bbeca67648ba4ad5865edc5cf1564e86c2efdc42e7e1aee91cc85e167e5af447
+AUX wirbelscan.mk 3297 SHA256 a2311593e02bf259e736bf4a4691bf8444167b8645a3f85a92ee823a8e69a756 SHA512 a3a9e71d8e4da822cad2d9d747904f4fe505a500bc36a3b7312274bcde5dd66bab5dd346e8353de920eb9eec75c55d8e0ddc9ae9eaebca907cbfcd80d6e070cc WHIRLPOOL 67807a9119d93aebee1916ed5ec34b2c05816103525f54ce04de8095caad07be14f10422bf6cb26e951bc1da82408972c55181115a74af445a4bc78d9f65388f
+DIST vdr-wirbelscan-0.0.7.tgz 149949 SHA256 42ffc3da1efd2ec6e40e233e4750f9b19ba04aa6e887d9cac960b758e4371dd2 SHA512 754b3089b1a8536b501fd8b62ddafedaf8304518856152a49b97149113929b47d6c6299b8eb4b78b2d3dc5aba147a3e21c00554ad02d2dc5018c296f6c55d6a5 WHIRLPOOL e986d16224cc7e1cefbf08daa32f595dfc7d3d2901bf324480bb61f44b79e417ac727c5f5573a839c7ab760aab020a73509cd05dffbc47daa5d47f7e801afef3
+EBUILD vdr-wirbelscan-0.0.7-r1.ebuild 880 SHA256 828ad0abb24909df5eb1e6b7d7e282bb60b411aaa60aa5ab5b14819c6d60b410 SHA512 a3b6d298f952f8d787a588d095385e8fd86da2bbd11960ea35c06b661ddf964f62d654c5b5d96a596c0ac5e877f67134849f4118b6d9a91d504f79d5bbd80f4e WHIRLPOOL 1712d18925e7a39dc3b6816fab0a142458b6c14e942920000eaa5846d60a1a26e3d5505fa42a1c1e668fd904de310c72dd6af03d2799c9e0693355f7a7326d99
+MISC ChangeLog 2909 SHA256 0283aa2513059fac8c62f3b2d7f039b054ccaf5d6ea0a620941d48eac27cef63 SHA512 d76e20ae43c646f28e9bd9a67703de0475aae7c0a982fab102d33bd7cddb048cfb904952320497f0381006a119572726b526fc29cdbb11009e614b0258d59791 WHIRLPOOL 3b75d19643005572f99131e30f7ad9a85bc71ef04127982fc32c068f86c4c8848f4a21c0600a482182f375d007541a3bdde78b9d228e233c6303233e2a7226d3
+MISC ChangeLog-2015 1893 SHA256 bd8975fcc7850a9117d1c3075083be172cdeb03cbf18d5877370e658d3274da2 SHA512 d0908162be9d59f3393b98d006be840e14486d017ded8fcf03ce9705420465a9df996d391f596d94e57b3fd25e227442c22f87723ab62368c0f07ed046b554bb WHIRLPOOL 895abe4a87e35540327776f823e526a8d36be8afe17a6900cfab6a81d9e063dae7edf6824bdd9a4781da4043397029a75375466f1a91aa21f5360efd99e4e9f5
+MISC metadata.xml 243 SHA256 161359b6e9eddec137a431eea66785e070bbc25fab3ae1b57f900e411fc37fe7 SHA512 f7d6e467a5a96c0afdd42df3c0f3866240defc5bbea5ccddf4c0b1a3c004225af5d46dab67d45a5ac34535391584f3b3727fe79ef6cef1a11413636bbc35cf06 WHIRLPOOL ebf59815181c251040396bb44206b875f6d996abcff030fdbf8355b47d6ea8c4f2669847ea1af194112de469258d7ca09ed77b682924ca495958a65f957dbf39
diff --git a/media-plugins/vdr-wirbelscan/files/receiver-api-fixes.patch b/media-plugins/vdr-wirbelscan/files/receiver-api-fixes.patch
new file mode 100644
index 000000000000..b801803afc9d
--- /dev/null
+++ b/media-plugins/vdr-wirbelscan/files/receiver-api-fixes.patch
@@ -0,0 +1,46 @@
+Index: vdr-plugin-wirbelscan-0.0.7/statemachine.c
+===================================================================
+--- vdr-plugin-wirbelscan-0.0.7.orig/statemachine.c 2011-03-24 16:48:43.000000000 +0100
++++ vdr-plugin-wirbelscan-0.0.7/statemachine.c 2012-04-03 19:51:08.813786243 +0200
+@@ -36,12 +36,12 @@
+ while (Running()) cCondWait::SleepMs(5);
+ }; /*TODO: check here periodically for lock and wether we got any data!*/
+ public:
+- cScanReceiver(tChannelID ChannelID, int AnyPid);
++ cScanReceiver(const cChannel* chan, int AnyPid);
+ virtual ~cScanReceiver() {cReceiver::Detach(); };
+ };
+
+-cScanReceiver::cScanReceiver(tChannelID ChannelID, int AnyPid) :
+- cReceiver(ChannelID, 99, AnyPid), cThread("dummy receiver") { }
++cScanReceiver::cScanReceiver(const cChannel* chan, int AnyPid) :
++ cReceiver(chan, 99), cThread("dummy receiver") { SetPids(NULL); AddPid(AnyPid); }
+
+ ///!-----------------------------------------------------------------
+ ///! v 0.0.5, store state in lastState if different and print state
+@@ -144,7 +144,7 @@
+ ScannedTransponders.Add(ScannedTransponder);
+
+ dev->SwitchChannel(Transponder, false);
+- aReceiver = new cScanReceiver(Transponder->GetChannelID(), 99);
++ aReceiver = new cScanReceiver(Transponder, 99);
+ dev->AttachReceiver(aReceiver);
+
+ cCondWait::SleepMs(1000);
+Index: vdr-plugin-wirbelscan-0.0.7/ttext.c
+===================================================================
+--- vdr-plugin-wirbelscan-0.0.7.orig/ttext.c 2011-03-24 19:29:59.000000000 +0100
++++ vdr-plugin-wirbelscan-0.0.7/ttext.c 2012-04-03 20:03:06.903786678 +0200
+@@ -374,9 +374,10 @@
+ }
+ }
+
+-cSwReceiver::cSwReceiver(cChannel * Channel) : cReceiver(Channel->GetChannelID(),
+- 100, Channel->Tpid()), cThread("ttext") {
++cSwReceiver::cSwReceiver(cChannel * Channel) : cReceiver(Channel, 100), cThread("ttext") {
+
++ SetPids(NULL);
++ AddPid(Channel->Tpid());
+ stopped = fuzzy = false;
+ channel = Channel;
+ buffer = new cRingBufferLinear(MEGABYTE(1),184);
diff --git a/media-plugins/vdr-wirbelscan/files/wirbelscan.mk b/media-plugins/vdr-wirbelscan/files/wirbelscan.mk
new file mode 100644
index 000000000000..0d7706769f3b
--- /dev/null
+++ b/media-plugins/vdr-wirbelscan/files/wirbelscan.mk
@@ -0,0 +1,122 @@
+#
+# Makefile for a Video Disk Recorder plugin
+#
+
+# The official name of this plugin.
+# This name will be used in the '-P...' option of VDR to load the plugin.
+# By default the main source file also carries this name.
+
+PLUGIN = wirbelscan
+
+### The version number of this plugin (taken from the main source file):
+
+VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g')
+
+### The directory environment:
+
+# Use package data if installed...otherwise assume we're under the VDR source directory:
+PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
+LIBDIR = $(call PKGCFG,libdir)
+LOCDIR = $(call PKGCFG,locdir)
+PLGCFG = $(call PKGCFG,plgcfg)
+#
+TMPDIR ?= /tmp
+
+### The compiler options:
+
+export CFLAGS = $(call PKGCFG,cflags)
+export CXXFLAGS = $(call PKGCFG,cxxflags)
+
+### The version number of VDR's plugin API:
+
+APIVERSION = $(call PKGCFG,apiversion)
+
+### Allow user defined options to overwrite defaults:
+
+-include $(PLGCFG)
+
+### The name of the distribution archive:
+
+ARCHIVE = $(PLUGIN)-$(VERSION)
+PACKAGE = vdr-$(ARCHIVE)
+
+### The name of the shared object file:
+
+SOFILE = libvdr-$(PLUGIN).so
+
+### Includes and Defines (add further entries here):
+
+INCLUDES +=
+
+DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+
+### The object files (add further files here):
+
+OBJS = $(PLUGIN).o common.o frequencies.o menusetup.o satellites.o scanner.o dvb_wrapper.o
+OBJS += scanfilter.o caDescriptor.o statemachine.o countries.o ext_math.o ttext.o
+
+### The main target:
+
+all: $(SOFILE) i18n
+
+### Implicit rules:
+
+%.o: %.c
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
+
+### Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
+
+-include $(DEPFILE)
+
+### Internationalization (I18N):
+
+PODIR = po
+I18Npo = $(wildcard $(PODIR)/*.po)
+I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
+I18Nmsgs = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
+I18Npot = $(PODIR)/$(PLUGIN).pot
+
+%.mo: %.po
+ msgfmt -c -o $@ $<
+
+$(I18Npot): $(wildcard *.c)
+ xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^`
+
+%.po: $(I18Npot)
+ msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $<
+ @touch $@
+
+$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
+ install -D -m644 $< $@
+
+.PHONY: i18n
+i18n: $(I18Nmo) $(I18Npot)
+
+install-i18n: $(I18Nmsgs)
+
+### Targets:
+
+$(SOFILE): $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
+
+install-lib: $(SOFILE)
+ install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
+
+install: install-lib install-i18n
+
+dist: $(I18Npo) clean
+ @-rm -rf $(TMPDIR)/$(ARCHIVE)
+ @mkdir $(TMPDIR)/$(ARCHIVE)
+ @cp -a * $(TMPDIR)/$(ARCHIVE)
+ @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE)
+ @-rm -rf $(TMPDIR)/$(ARCHIVE)
+ @echo Distribution package created as $(PACKAGE).tgz
+
+clean:
+ @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
+ @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~
diff --git a/media-plugins/vdr-wirbelscan/metadata.xml b/media-plugins/vdr-wirbelscan/metadata.xml
new file mode 100644
index 000000000000..27f419c289c3
--- /dev/null
+++ b/media-plugins/vdr-wirbelscan/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>vdr@gentoo.org</email>
+<name>Gentoo VDR Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-plugins/vdr-wirbelscan/vdr-wirbelscan-0.0.7-r1.ebuild b/media-plugins/vdr-wirbelscan/vdr-wirbelscan-0.0.7-r1.ebuild
new file mode 100644
index 000000000000..5bdd8471ddc8
--- /dev/null
+++ b/media-plugins/vdr-wirbelscan/vdr-wirbelscan-0.0.7-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: Scan for channels on DVB-? and on PVR*-Cards"
+HOMEPAGE="http://wirbel.htpc-forum.de/wirbelscan/index2.html"
+SRC_URI="http://wirbel.htpc-forum.de/wirbelscan/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # remove untranslated po files
+ rm "${S}"/po/{ca_ES,cs_CZ,da_DK,es_ES,el_GR,et_EE,fi_FI,fr_FR,hr_HR,hu_HU,nl_NL,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po
+
+ # new Makefile handling
+ cp "${FILESDIR}/wirbelscan.mk" "${S}/Makefile"
+
+ epatch "${FILESDIR}/receiver-api-fixes.patch"
+
+ vdr-plugin-2_src_prepare
+
+ fix_vdr_libsi_include scanfilter.h
+ fix_vdr_libsi_include scanfilter.c
+ fix_vdr_libsi_include caDescriptor.h
+}