summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2008-11-02 17:37:09 +0000
committerJoerg Bornkessel <hd_brummy@gentoo.org>2008-11-02 17:37:09 +0000
commit82de86f6261261cdd1e65878522b83ff84756879 (patch)
treecaed5499d566eb9f536ad1fa4b1a37b95d032780 /media-video/reelbox-ehd-headers
parentnew package (diff)
downloadtesting-82de86f6261261cdd1e65878522b83ff84756879.tar.gz
testing-82de86f6261261cdd1e65878522b83ff84756879.tar.bz2
testing-82de86f6261261cdd1e65878522b83ff84756879.zip
media-video/reelbox-ehd-headers: initial ebuild; svn snapshot 9302
svn path=/testing/; revision=488
Diffstat (limited to 'media-video/reelbox-ehd-headers')
-rw-r--r--media-video/reelbox-ehd-headers/ChangeLog8
-rw-r--r--media-video/reelbox-ehd-headers/Manifest5
-rw-r--r--media-video/reelbox-ehd-headers/files/Make.common110
-rw-r--r--media-video/reelbox-ehd-headers/metadata.xml14
-rw-r--r--media-video/reelbox-ehd-headers/reelbox-ehd-headers-9302.ebuild42
5 files changed, 179 insertions, 0 deletions
diff --git a/media-video/reelbox-ehd-headers/ChangeLog b/media-video/reelbox-ehd-headers/ChangeLog
new file mode 100644
index 0000000..8a0f562
--- /dev/null
+++ b/media-video/reelbox-ehd-headers/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for media-video/reelbox-ehd-headers
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 02 Nov 2008; Joerg Bornkessel <hd_brummy@gentoo.org>
+ +reelbox-ehd-headers-9302.ebuild, +files/Make.common, +metadata.xml:
+ initial ebuild; svn snapshot 9302
+
diff --git a/media-video/reelbox-ehd-headers/Manifest b/media-video/reelbox-ehd-headers/Manifest
new file mode 100644
index 0000000..09da493
--- /dev/null
+++ b/media-video/reelbox-ehd-headers/Manifest
@@ -0,0 +1,5 @@
+AUX Make.common 2845 RMD160 3d63fbd6805fef2a421e1e33b2814e511ffb00c3 SHA1 9850540ed81779022a378233a03962152ff55b8a SHA256 0636d165f377b17d50f79e025affd57f5ce660a3b36cfa87f902474f0bfdf579
+DIST reelbox-ehd-headers-9302.tgz 22647 RMD160 3261a993efe34fbabdf02c10792240e236947ef7 SHA1 bbb47cd06cc65b5e1a9988502176bc0faa66571d SHA256 22c88d63389b7104dad90c4bf0ffe5c87d86f72d0b4475e80e9963b16fa65830
+EBUILD reelbox-ehd-headers-9302.ebuild 899 RMD160 20387a728e947c7165e9e81d858191186c4febe1 SHA1 0a91cce3419e3c54a8d8de0d2ad7449cc70107de SHA256 b12d9e2b9cf78e70eefa1f1aa6aa83ceb36c8ea3095a3add98728ab9e860f5e2
+MISC ChangeLog 295 RMD160 0295454ba28f992d997354029c04a4209ff4b7a8 SHA1 8561336a7dd09cb7d71c54a32f66d615c4e3ede1 SHA256 3e43c7eb7552498d24ab6d583a4be2be76fc1d85651345c5f30f4f65a496d6c9
+MISC metadata.xml 352 RMD160 57a3a02b1c7da27ff3277627eed5645a1812adcc SHA1 15007ef9f352900614d270f14e511414f2669576 SHA256 54b2ad3aff6816a964885c849410e0e67777000713e98b776217b7d509ba0ad2
diff --git a/media-video/reelbox-ehd-headers/files/Make.common b/media-video/reelbox-ehd-headers/files/Make.common
new file mode 100644
index 0000000..92fee7f
--- /dev/null
+++ b/media-video/reelbox-ehd-headers/files/Make.common
@@ -0,0 +1,110 @@
+
+
+### 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 version number of VDR (taken from VDR's "config.h"):
+
+APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+
+VDRLOCALE = $(shell grep '^LOCALEDIR' $(VDRDIR)/Makefile)
+
+
+### The name of the distribution archive:
+
+ARCHIVE = $(PLUGIN)-$(VERSION)
+PACKAGE = vdr-$(ARCHIVE)
+
+
+### Includes and Defines (add further entries here):
+
+DEFINES += -D_GNU_SOURCE -D_LARGEFILE_SOURCE
+
+ifdef DEBUG
+ DEFINES += -DDEBUG
+ CXXFLAGS += -g
+endif
+
+ifdef RBLITE
+ DEFINES += -DRBLITE
+endif
+
+ifdef REELVDR
+ DEFINES += -DREELVDR
+endif
+
+### Targets:
+
+plug: libvdr-$(PLUGIN).so
+
+all: libvdr-$(PLUGIN).so i18n
+
+### Implicit rules:
+
+%.o: %.c
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) -DPLUGIN_NAME='"$(PLUGIN)"' -DPLUGIN_NAME_I18N='"$(PLUGIN)"' $(INCLUDES) -o $@ $<
+
+# Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
+
+-include $(DEPFILE)
+
+
+### Internationalization (I18N):
+
+PODIR = po
+LOCALEDIR = $(VDRDIR)/locale
+I18Npo = $(wildcard $(PODIR)/*.po)
+I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
+I18Npot = $(PODIR)/$(PLUGIN).pot
+
+%.mo: %.po
+ msgfmt -c -o $@ $<
+
+$(I18Npot): $(wildcard *.c $(PLUGIN).h)
+ xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --from-code=utf-8 --msgid-bugs-address='<reelbox-devel@mailings.reelbox.org>' $^ -o $@
+
+%.po: $(I18Npot)
+ msgmerge -U --no-wrap --no-location --backup=none -q $@ $<
+ @touch $@
+
+$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
+ @mkdir -p $(dir $@)
+ cp $< $@
+
+.PHONY: i18n
+i18n: $(I18Npot) $(I18Nmsgs)
+
+
+libvdr-$(PLUGIN).so: $(OBJS)
+ $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LDFLAGS) $(LIBS) -o $@
+ @cp $@ $(LIBDIR)/$@.$(APIVERSION)
+
+dist: clean
+ @rm -rf $(TMPDIR)/$(ARCHIVE)
+ @mkdir $(TMPDIR)/$(ARCHIVE)
+ @cp -a * $(TMPDIR)/$(ARCHIVE)
+ @rm -f $(TMPDIR)/$(ARCHIVE)/$(PLUGIN).kdevelop
+ @rm -f $(TMPDIR)/$(ARCHIVE)/$(PLUGIN).kdevelop.filelist
+ @rm -f $(TMPDIR)/$(ARCHIVE)/$(PLUGIN).kdevelop.pcs
+ @rm -f $(TMPDIR)/$(ARCHIVE)/$(PLUGIN).kdevses
+ @rm -rf $(TMPDIR)/$(ARCHIVE)/CVS
+ @rm -rf $(TMPDIR)/$(ARCHIVE)/Examples/CVS
+ @rm -rf $(TMPDIR)/$(ARCHIVE)/Patch/CVS
+ @ln -s $(ARCHIVE) $(TMPDIR)/$(PLUGIN)
+ @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE) $(PLUGIN)
+ @rm -rf $(TMPDIR)/$(ARCHIVE) $(TMPDIR)/$(PLUGIN)
+ @echo Distribution package created as $(PACKAGE).tgz
+
+clean:
+ @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
+ @-rm -f $(OBJS) $(MAIN) $(DEPFILE) *.so *.tgz core* *~
+ @-rm -f $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION)
+
+MAKECOMMON_IS_SOURCED = 1
diff --git a/media-video/reelbox-ehd-headers/metadata.xml b/media-video/reelbox-ehd-headers/metadata.xml
new file mode 100644
index 0000000..83928e6
--- /dev/null
+++ b/media-video/reelbox-ehd-headers/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+ <maintainer>
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ </maintainer>
+ <maintainer>
+ <email>joerg_pb@gmx.net</email>
+ <name>Joerg Krause</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/media-video/reelbox-ehd-headers/reelbox-ehd-headers-9302.ebuild b/media-video/reelbox-ehd-headers/reelbox-ehd-headers-9302.ebuild
new file mode 100644
index 0000000..a8f0c31
--- /dev/null
+++ b/media-video/reelbox-ehd-headers/reelbox-ehd-headers-9302.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="eHD PCI card: headers svn r${PN}"
+HOMEPAGE="http://www.reel-multimedia.com"
+SRC_URI="http://quacks.fratzengeballer.org/distfiles/${P}.tgz
+ http://vdr.websitec.de/download/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -e "s:\#include \"../driver/:\#include \":" \
+ -i "${S}"/bspshm/include/bspshmlib.h \
+ -i "${S}"/hdshm3/src/include/hdshmlib.h
+}
+
+src_install() {
+
+ insinto /usr/include
+ doins "${S}"/bspshm/include/*.h
+ doins "${S}"/bspshm/driver/*.h
+ doins "${S}"/hdshm3/src/include/*.h
+ doins "${S}"/hdshm3/src/driver/*.h
+ doins "${S}"/vdr-reelbox-3/*.h
+
+ insinto /usr/include/vdr
+ doins "${WORKDIR}"/vdr-1.4/*
+ doins "${FILESDIR}"/Make.common
+}