summaryrefslogtreecommitdiff
path: root/media-libs/libdvb
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-libs/libdvb
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libdvb')
-rw-r--r--media-libs/libdvb/Manifest8
-rw-r--r--media-libs/libdvb/files/libdvb-0.5.5.1-autotools.patch617
-rw-r--r--media-libs/libdvb/files/libdvb-0.5.5.1-gcc43.patch20
-rw-r--r--media-libs/libdvb/files/libdvb-0.5.5.1-rename-analyze.patch129
-rw-r--r--media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild49
-rw-r--r--media-libs/libdvb/metadata.xml5
6 files changed, 828 insertions, 0 deletions
diff --git a/media-libs/libdvb/Manifest b/media-libs/libdvb/Manifest
new file mode 100644
index 000000000000..ebada65e7501
--- /dev/null
+++ b/media-libs/libdvb/Manifest
@@ -0,0 +1,8 @@
+AUX libdvb-0.5.5.1-autotools.patch 17609 SHA256 4e6a4c229f82be6f6e73fbe33c7a703d9a90550365bb90b207cb342d3cc28c20 SHA512 ef4b40876cadaaedebfb4969a440de617669f6377b8eb092ba880518c53720517f8edbe662b859ecb574eab21ce3b4403f2eb860abfff352640e54eb5cc8cf01 WHIRLPOOL 2132d63b1e00597f4f19e2d8206820cbcfcdcee735e01d7df377792ba7311ab6ac823ff77a6d01d0de0ab89b2b4d6c1961b4996e3fac545a9058ceafb73869e6
+AUX libdvb-0.5.5.1-gcc43.patch 565 SHA256 79ee130a6ea603a49957e4ca406c2b4236b0ba9b55714a674b09837ff1e94838 SHA512 bdc985b42beed0a24bd07e4c0a4aea190956c82eeaabd3b92ad43de70415d10b5c0e071ac07ec491950afcfd9534f4052f3befd63b44c8aebd673686b1ccc359 WHIRLPOOL 1ce9cdbf6be5a76070926be16ce7c6d3e7b08f553929400dca26c27e01205946b05b5f323e29c51b917a68b8cdcf1a64618423ee74c5bebb14eaffb819f8f7fd
+AUX libdvb-0.5.5.1-rename-analyze.patch 4785 SHA256 f240a8e3dc7284813e5cbf95edb811020df5b914e5f21b7fa4fecf33d1537b2c SHA512 b539974f6bfae5ba291ae3b405e6ad2ec5b3aacbc2e5e3fac4c94ef2de58bbd3fbfec0bdce97bf3c9e639d0c9aefea08819a91545be2f4bac19c283b862d50c5 WHIRLPOOL 9515b9b3da55f1d1ca56c41b36d969191eabc7ef047d8719bac3100322917d7ae6bd0784e75cfa1b42383c9448eddf2a6524981e01c9b50991cad935a6732ba9
+DIST libdvb-0.5.5.1.tar.gz 312295 SHA256 941e8020129111377652bd7253ea85e6c133fd1c23c66bd9fc0ca9eabab1385a SHA512 6e776e9a01b0059e46124f8525c1b83951295bc695100386e3a488dfbe058ef074a96019bb77c5fd2c51b9baf67beb889af00914cfd796e2dd175f9423c449d4 WHIRLPOOL 1af63bf745839cb602916a0b7c4ccbf958d5278cc5fbf277bce799f641fb1262cb4e971a9651c2f78a8a0b4f4588af7ee1ff74d3a287bbf6c110ed1ec4083881
+EBUILD libdvb-0.5.5.1-r3.ebuild 1186 SHA256 15a1d148fa6f65381a2af1e408467d87d29b419d3167da0ac3877d8986dd941e SHA512 4a02382d8f73acbfa8b536c3ff00033746d952677663c1bd6bfb788ce1a79f925caceba6537117ffb3374d7393ce13fdd9bd4d423befd13cd5a5415a7f6ee7f9 WHIRLPOOL db75b27e82638cacd9f497d6d3c57ee60be83d8dbd9c0130f7cb02d1962e37be828e4bfd6f7b7cf7f3ebd37975f7ba16ba8cbd4fac6108772d7a703eb7a96038
+MISC ChangeLog 2679 SHA256 6e8e423ceeab715e2fdf2656bfbd4778b4734a4eb820b254d571bfe83ab9343d SHA512 2b000e28bbec91a23c5ffa7681e2e6249430df67f496333234edd284f067e0eca5026694641e6b421666d8b27f22fa97f4ba0effbafd99d771ee8b1ec0ab15e3 WHIRLPOOL a1d3b4ccfede6a43547e7c5eb60217a27292c696e4c472331273f08b9251da0f9605f771f2cb2865b99ea5801836b664205c56384451b124f5159ad3130e3570
+MISC ChangeLog-2015 7797 SHA256 ededd8675b41de9a08f48dbb64492f4446b6eef199f2938d4625f5dab671d04a SHA512 fca0af48bf55be67ae4c861bc368bb8ffedf6ef9caf6b378b5785f6c302e886fdf95a523bc5cc2b5611d52fbbc7dad4b1ea7d919e17dbfa1df1e365eb57a3ead WHIRLPOOL 9d4697a272a44aa2319fa165d72558c1448d9f7bfbc1f56e2c1a56b12b7091f38300118b9be1d2b4a68225da8979eaee81a3a90d58526501e506652d5325b4e3
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/media-libs/libdvb/files/libdvb-0.5.5.1-autotools.patch b/media-libs/libdvb/files/libdvb-0.5.5.1-autotools.patch
new file mode 100644
index 000000000000..bf3ded22d60b
--- /dev/null
+++ b/media-libs/libdvb/files/libdvb-0.5.5.1-autotools.patch
@@ -0,0 +1,617 @@
+diff -urpN libdvb-0.5.5.1/autogen.sh libdvb-0.5.5.1.az/autogen.sh
+--- libdvb-0.5.5.1/autogen.sh 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/autogen.sh 2006-07-24 20:12:24.000000000 +0200
+@@ -0,0 +1,9 @@
++#!/bin/bash
++
++aclocal-1.9 || exit 1
++libtoolize --automake -c -f || exit 1
++aclocal-1.9 || exit 1
++autoconf || exit 1
++autoheader || exit 1
++automake-1.9 -a -c || exit 1
++
+diff -urpN libdvb-0.5.5.1/config.mk libdvb-0.5.5.1.az/config.mk
+--- libdvb-0.5.5.1/config.mk 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/config.mk 1970-01-01 02:00:00.000000000 +0200
+@@ -1,10 +0,0 @@
+-# -*- makefile -*-
+-#
+-
+-PREFIX = /usr/local
+-VERSION = 0.5.5.1
+-CFLAGS=-O2 -Wall -g
+-INCLUDES=-I. -I../include
+-TEST_PROGS= merge_dvb conv satscan cam_set cam_test quickscan cam_menu dump_TS
+-#CXX = g++-3.2
+-#CC = gcc-3.2
+diff -urpN libdvb-0.5.5.1/configure.ac libdvb-0.5.5.1.az/configure.ac
+--- libdvb-0.5.5.1/configure.ac 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/configure.ac 2006-07-24 21:08:47.000000000 +0200
+@@ -0,0 +1,26 @@
++AC_PREREQ([2.59])
++AC_INIT([libdvb], [0.5.5.1], [mocm@metzlerbros.de])
++AM_INIT_AUTOMAKE
++AC_CONFIG_HEADER([config.h])
++
++dnl Checks for programs.
++AC_PROG_CC
++AC_PROG_CXX
++AC_ISC_POSIX
++AC_PROG_INSTALL
++AC_PROG_MAKE_SET
++AC_PROG_AWK
++
++AC_PROG_LIBTOOL
++
++AC_OUTPUT([
++ Makefile
++ include/Makefile
++ libdvb/Makefile
++ libdvbci/Makefile
++ libdvbmpeg/Makefile
++ dvb-mpegtools/Makefile
++ sample_progs/Makefile
++ samplerc/Makefile
++])
++
+diff -urpN libdvb-0.5.5.1/dvb-mpegtools/Makefile libdvb-0.5.5.1.az/dvb-mpegtools/Makefile
+--- libdvb-0.5.5.1/dvb-mpegtools/Makefile 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/dvb-mpegtools/Makefile 1970-01-01 02:00:00.000000000 +0200
+@@ -1,82 +0,0 @@
+-
+-include ../config.mk
+-
+-DCFLAGS = $(CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+-LIBS = -L../ -ldvbmpegtools
+-MFLAG = -M
+-MPLEXOBS = buffer.o inits.o interact.o systems.o domplex.o inptstrm.o \
+- multplex.o timecode.o mplex.o bits.o
+-
+-SRC = $(wildcard *.c)
+-CPPSRC = $(wildcard *.cpp)
+-CSRC = $(wildcard *.cc)
+-COBJ = $(notdir $(SRC:.c=.o))
+-LINKS = streamtype ts2pes ps2vid pes2aud_es pes2aud pes2vid_es pes2vid \
+- tspids pes2ts analyze pes_demux es_demux ts_demux ts_es_demux \
+- pesplot pes2ts2 pes_repack split_mpg cut_mpg ts2ps ts2es\
+- insert_pat_pmt get_http extract_pes extract_pes_payload\
+- change_aspect_1_1 change_aspect_4_3 change_aspect_16_9 \
+- change_aspect_221_1
+-
+-.PHONY: depend clean install uninstall
+-
+-
+-all: dvb-mpegtools_main dvb-mplex links audiofilter dvbaudio show_dvb_image
+-
+-links: dvb-mpegtools_main
+- for f in $(LINKS); do\
+- ln -sf dvb-mpegtools_main $$f ;\
+- done
+-
+-clean:
+- - rm -f *.o .depend dvb-mpegtools_main dvb-mplex ctest *~ $(LINKS) ctest audiofilter show_dvb_image\
+- dvbaudio
+-
+-dvb-mpegtools_main: main.o
+- $(CXX) main.o $(LIBS) -o $@
+-
+-ctest: mainc.o
+- $(CC) $(COBJ) -o $@
+-
+-dvb-mplex: $(MPLEXOBS)
+- $(CXX) $(MPLEXOBS) $(LIBS) -o $@
+-
+-dvbaudio: dvbaudio.o
+- $(CXX) dvbaudio.o $(LIBS) -ldvb -o $@
+-
+-audiofilter: audiofilter.o
+- $(CXX) audiofilter.o -o $@
+-
+-%.o: %.cc
+- $(CXX) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<
+-
+-%.o: %.cpp
+- $(CXX) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<
+-
+-%.o: %.c
+- $(CC) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<
+-
+-install: dvb-mpegtools_main
+- install -D -m 755 dvb-mplex $(DESTDIR)$(PREFIX)/bin/dvb-mplex
+- install -m 755 audiofilter $(DESTDIR)$(PREFIX)/bin/
+- install -m 755 dvb-mpegtools_main $(DESTDIR)$(PREFIX)/bin/
+- install -m 755 dvbaudio $(DESTDIR)$(PREFIX)/bin/
+- install -m 755 show_dvb_image $(DESTDIR)$(PREFIX)/bin/
+- install -m 755 dia $(DESTDIR)$(PREFIX)/bin/
+- for f in $(LINKS); do\
+- (cd $(DESTDIR)$(PREFIX)/bin && ln -s -f dvb-mpegtools_main $$f) ;\
+- done
+-
+-uninstall:
+- for f in $(LINKS); do rm -f $(DESTDIR)$(PREFIX)/bin/$$f;done
+- rm -f $(DESTDIR)$(PREFIX)/bin/dvb-mpegtools_main
+- rm -f $(DESTDIR)$(PREFIX)/bin/dvbaudio
+- rm -f $(DESTDIR)$(PREFIX)/bin/audiofilter
+- rm -f $(DESTDIR)$(PREFIX)/lib/libdvbmpegtools
+-
+-.depend:
+- $(CXX) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCLUDES)> .depend
+-
+-
+-
+-include .depend
+diff -urpN libdvb-0.5.5.1/dvb-mpegtools/Makefile.am libdvb-0.5.5.1.az/dvb-mpegtools/Makefile.am
+--- libdvb-0.5.5.1/dvb-mpegtools/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/dvb-mpegtools/Makefile.am 2006-07-24 21:44:55.000000000 +0200
+@@ -0,0 +1,73 @@
++INCLUDES = -I$(top_srcdir)/include
++
++dist_bin_SCRIPTS = dia
++
++bin_PROGRAMS = \
++ dvb-mpegtools_main \
++ dvb-mplex \
++ audiofilter \
++ dvbaudio \
++ show_dvb_image
++
++# Don't build currently
++#noinst_PROGRAMS = ctest
++
++LF_FLAGS = \
++ -D_FILE_OFFSET_BITS=64 \
++ -D_LARGEFILE_SOURCE \
++ -D_LARGEFILE64_SOURCE
++
++LIBDVB = $(top_builddir)/libdvb/libdvb.la
++LIBDVBMPEG = $(top_builddir)/libdvbmpeg/libdvbmpegtools.la
++
++LINKS = \
++ streamtype ts2pes ps2vid pes2aud_es pes2aud pes2vid_es pes2vid \
++ tspids pes2ts analyze pes_demux es_demux ts_demux ts_es_demux \
++ pesplot pes2ts2 pes_repack split_mpg cut_mpg ts2ps ts2es \
++ insert_pat_pmt get_http extract_pes extract_pes_payload \
++ change_aspect_1_1 change_aspect_4_3 change_aspect_16_9 \
++ change_aspect_221_1
++
++dvb_mpegtools_main_LDADD = $(LIBDVBMPEG)
++dvb_mpegtools_main_CFLAGS = $(LF_FLAGS)
++dvb_mpegtools_main_SOURCES = main.cc
++
++dvb_mplex_LDADD = $(LIBDVBMPEG)
++dvb_mplex_CFLAGS = $(LF_FLAGS)
++dvb_mplex_SOURCES = \
++ bits.cpp \
++ domplex.cpp \
++ inptstrm.cpp \
++ mplex.cpp \
++ multplex.cpp \
++ timecode.cpp \
++ buffer.cpp \
++ inits.cpp \
++ interact.cpp \
++ common.h \
++ consts.h \
++ consts1.h \
++ main.h \
++ mplex.h \
++ systems.cpp
++
++dvbaudio_LDADD = $(LIBDVB) $(LIBDVBMPEG)
++dvbaudio_CFLAGS = $(LF_FLAGS)
++dvbaudio_SOURCES = dvbaudio.cc
++
++audiofilter_CFLAGS = $(LF_FLAGS)
++audiofilter_SOURCES = audiofilter.c
++
++show_dvb_image_CFLAGS = $(LF_FLAGS)
++show_dvb_image_SOURCES = show_dvb_image.c
++
++# Don't build currently
++#ctest_CFLAGS = $(LF_FLAGS)
++#ctest_SOURCES = mainc.c
++
++install-exec-hook:
++ @for x in $(LINKS) ; do \
++ rm -f $(DESTDIR)$(bindir)/$$x; \
++ $(LN_S) dvb-mpegtools_main $(DESTDIR)$(bindir)/$$x; \
++ done
++
+diff -urpN libdvb-0.5.5.1/include/Makefile.am libdvb-0.5.5.1.az/include/Makefile.am
+--- libdvb-0.5.5.1/include/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/include/Makefile.am 2006-07-24 20:16:18.000000000 +0200
+@@ -0,0 +1,13 @@
++dvbdir = $(pkgincludedir)
++dvb_HEADERS = \
++ channel.h \
++ ci.hh \
++ cpptools.hh \
++ ctools.h \
++ devices.hh \
++ DVB.hh \
++ OSD.h \
++ osd.hh \
++ ringbuffy.h \
++ transform.h
++
+diff -urpN libdvb-0.5.5.1/libdvb/Makefile libdvb-0.5.5.1.az/libdvb/Makefile
+--- libdvb-0.5.5.1/libdvb/Makefile 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/libdvb/Makefile 1970-01-01 02:00:00.000000000 +0200
+@@ -1,26 +0,0 @@
+-
+-include ../config.mk
+-
+-OBJS=devices.o DVB.o OSD.o
+-LIBS=-L./ -lpthread
+-DVB_LIBS=libdvb.a
+-
+-main: $(DVB_LIBS)
+-
+-libdvb.a: $(OBJS)
+- ar -rcs libdvb.a $(OBJS)
+-
+-DVB.o: DVB.cc ../include/DVB.hh
+- $(CXX) $(INCLUDES) $(CFLAGS) -c $<
+-
+-devices.o: devices.cc ../include/devices.hh
+- $(CXX) $(INCLUDES) $(CFLAGS) -c $<
+-
+-.c.o:
+- $(CC) $(INCLUDES) $(CFLAGS) -c $<
+-
+-.cc.o:
+- $(CXX) $(INCLUDES) $(CFLAGS) -c $<
+-
+-clean:
+- -rm -f *.o $(DVB_LIBS) *~
+diff -urpN libdvb-0.5.5.1/libdvb/Makefile.am libdvb-0.5.5.1.az/libdvb/Makefile.am
+--- libdvb-0.5.5.1/libdvb/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/libdvb/Makefile.am 2006-07-24 20:20:58.000000000 +0200
+@@ -0,0 +1,12 @@
++AUTOMAKE_OPTIONS = foreign
++
++INCLUDES = -I$(top_srcdir)/include
++
++lib_LTLIBRARIES = libdvb.la
++
++libdvb_la_LDFLAGS = -lpthread
++libdvb_la_SOURCES = \
++ devices.cc \
++ DVB.cc \
++ OSD.c
++
+diff -urpN libdvb-0.5.5.1/libdvbci/Makefile libdvb-0.5.5.1.az/libdvbci/Makefile
+--- libdvb-0.5.5.1/libdvbci/Makefile 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/libdvbci/Makefile 1970-01-01 02:00:00.000000000 +0200
+@@ -1,23 +0,0 @@
+-
+-include ../config.mk
+-
+-CI_OBJS=ci.o ci2.o
+-LIBS=-L./ -lpthread
+-DVB_LIBS=libdvbci.a
+-
+-main: $(DVB_LIBS)
+-
+-libdvbci.a: $(CI_OBJS)
+- ar -rcs libdvbci.a $(CI_OBJS)
+-
+-ci.o: ci.cc ../include/ci.hh
+- $(CXX) $(INCLUDES) $(CFLAGS) -c $<
+-
+-.c.o:
+- $(CC) $(INCLUDES) $(CFLAGS) -c $<
+-
+-.cc.o:
+- $(CXX) $(INCLUDES) $(CFLAGS) -c $<
+-
+-clean:
+- -rm -f *.o $(DVB_LIBS) *~
+diff -urpN libdvb-0.5.5.1/libdvbci/Makefile.am libdvb-0.5.5.1.az/libdvbci/Makefile.am
+--- libdvb-0.5.5.1/libdvbci/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/libdvbci/Makefile.am 2006-07-24 20:21:19.000000000 +0200
+@@ -0,0 +1,11 @@
++AUTOMAKE_OPTIONS = foreign
++
++INCLUDES = -I$(top_srcdir)/include
++
++lib_LTLIBRARIES = libdvbci.la
++
++libdvbci_la_LDFLAGS = -lpthread
++libdvbci_la_SOURCES = \
++ ci2.c \
++ ci.cc
++
+diff -urpN libdvb-0.5.5.1/libdvbmpeg/Makefile libdvb-0.5.5.1.az/libdvbmpeg/Makefile
+--- libdvb-0.5.5.1/libdvbmpeg/Makefile 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/libdvbmpeg/Makefile 1970-01-01 02:00:00.000000000 +0200
+@@ -1,36 +0,0 @@
+-
+-include ../config.mk
+-
+-DCFLAGS = $(CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+-MFLAG = -M
+-OBJS = ctools.o ringbuffy.o transform.o cpptools.o
+-SRC = $(wildcard *.c)
+-CPPSRC = $(wildcard *.cpp)
+-CSRC = $(wildcard *.cc)
+-INCS = -I../include
+-
+-all: libdvbmpegtools.a
+-
+-.PHONY: depend clean install uninstall
+-
+-clean:
+- - rm -f *.o *~ *.a .depend
+-
+-libdvbmpegtools.a: $(OBJS)
+- ar -rcs libdvbmpegtools.a $(OBJS)
+-
+-%.o: %.cc
+- $(CXX) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<
+-
+-%.o: %.cpp
+- $(CXX) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<
+-
+-%.o: %.c
+- $(CC) -c $(DCFLAGS) $(INCLUDES) $(DEFINES) $<
+-
+-.depend:
+- $(CXX) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCLUDES)> .depend
+-
+-
+-
+-include .depend
+diff -urpN libdvb-0.5.5.1/libdvbmpeg/Makefile.am libdvb-0.5.5.1.az/libdvbmpeg/Makefile.am
+--- libdvb-0.5.5.1/libdvbmpeg/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/libdvbmpeg/Makefile.am 2006-07-24 20:21:30.000000000 +0200
+@@ -0,0 +1,21 @@
++AUTOMAKE_OPTIONS = foreign
++
++INCLUDES = -I$(top_srcdir)/include
++
++lib_LTLIBRARIES = libdvbmpegtools.la
++
++LF_FLAGS = \
++ -D_FILE_OFFSET_BITS=64 \
++ -D_LARGEFILE_SOURCE \
++ -D_LARGEFILE64_SOURCE
++
++libdvbmpegtools_la_CFLAGS = $(LF_FLAGS)
++libdvbmpegtools_la_CXXFLAGS = $(LF_FLAGS)
++libdvbmpegtools_la_LDFLAGS = -lpthread
++libdvbmpegtools_la_SOURCES = \
++ cpptools.cc \
++ ctools.c \
++ remux.c \
++ ringbuffy.c \
++ transform.c
++
+diff -urpN libdvb-0.5.5.1/Makefile libdvb-0.5.5.1.az/Makefile
+--- libdvb-0.5.5.1/Makefile 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/Makefile 1970-01-01 02:00:00.000000000 +0200
+@@ -1,82 +0,0 @@
+-
+-SOURCEDIRS=include libdvb libdvbci libdvbmpeg sample_progs dvb-mpegtools samplerc
+-DVB-MPEGTOOLS= dvb-mpegtools_main dvb-mplex audiofilter dvbaudio
+-DVB_LIBS=libdvb.a libdvbci.a libdvbmpegtools.a
+-HEADERS=include/DVB.hh include/ci.hh include/devices.hh include/channel.h include/ctools.h \
+- include/transform.h include/ringbuffy.h include/cpptools.hh include/OSD.h \
+- include/osd.hh
+-
+-RESOURCES=README
+-include config.mk
+-
+-
+-
+-main: $(DVB_LIBS) $(TEST_PROGS) $(DVB-MPEGTOOLS)
+-
+-install: $(DVB_LIBS) $(HEADERS)
+- mkdir -p $(DESTDIR)$(PREFIX)/lib
+- install -m 644 $(DVB_LIBS) $(DESTDIR)$(PREFIX)/lib/
+- mkdir -p $(DESTDIR)$(PREFIX)/include
+- install -m 644 $(HEADERS) $(DESTDIR)$(PREFIX)/include/
+- make -C dvb-mpegtools install
+-
+-uninstall:
+- for i in $(DVB_LIBS); do rm -f $(DESTDIR)$(PREFIX)/lib/$$i;done
+- for i in $(HEADERS); do rm -f $(DESTDIR)$(PREFIX)/$$i;done
+- make -C dvb-mpegtools uninstall
+-
+-libdvb.a: libdvb/libdvb.a
+- cp libdvb/libdvb.a .
+-
+-libdvbci.a: libdvbci/libdvbci.a
+- cp libdvbci/libdvbci.a .
+-
+-libdvbmpegtools.a: libdvbmpeg/libdvbmpegtools.a
+- cp libdvbmpeg/libdvbmpegtools.a .
+-
+-libdvb/libdvb.a:
+- make -C libdvb main
+-
+-libdvbci/libdvbci.a:
+- make -C libdvbci main
+-
+-libdvbmpeg/libdvbmpegtools.a:
+- make -C libdvbmpeg libdvbmpegtools.a
+-
+-merge_dvb: libdvb.a sample_progs/merge.cc
+-conv: libdvb.a sample_progs/conv.cc
+-satscan: libdvb.a sample_progs/satscan.cc
+-quickscan: libdvb.a sample_progs/quickscan.cc
+-cam_set: libdvbci.a sample_progs/cam_set.cc
+-cam_test: libdvb.a libdvbmpegtools.a sample_progs/cam_test.cc
+- make -C sample_progs main
+- for f in $(TEST_PROGS); do cp sample_progs/$$f . ; done
+-
+-dvb-mpegtools_main: libdvbmpegtools.a dvb-mpegtools/main.cc
+-dvb-mplex: libdvbmpegtools.a dvb-mpegtools/mplex.cpp
+-audiofilter: dvb-mpegtools/audiofilter.c
+-dvbaudio: libdvb.a libdvbmpegtools.a dvb-mpegtools/dvbaudio.cc
+- make -C dvb-mpegtools all
+- for f in $(DVB-MPEGTOOLS); do cp dvb-mpegtools/$$f . ; done
+-
+-dvbs: libdvb.a libdvbmpegtools.a dvbserver/dvbs_main.cc
+- make -C dvbserver dvbs_main
+-
+-
+-clean:
+- -rm -f libdvb-$(VERSION).tar.gz $(DVB_LIBS) $(TEST_PROGS) $(DVB-MPEGTOOLS) *~
+- make -C libdvb clean
+- make -C libdvbci clean
+- make -C libdvbmpeg clean
+- make -C sample_progs clean
+- make -C dvb-mpegtools clean
+- rm include/*~
+-
+-dist:
+- mkdir libdvb-$(VERSION)
+- for f in $(SOURCEDIRS); do mkdir libdvb-$(VERSION)/$$f;done
+- cp -r $(SOURCEDIRS) libdvb-$(VERSION)
+- for f in $(SOURCEDIRS); do rm -rf libdvb-$(VERSION)/$$f/CVS;done
+- cp COPYING README Makefile config.mk libdvb-$(VERSION)
+- tar zcf libdvb-$(VERSION).tar.gz libdvb-$(VERSION)
+- rm -rf libdvb-$(VERSION)
+diff -urpN libdvb-0.5.5.1/Makefile.am libdvb-0.5.5.1.az/Makefile.am
+--- libdvb-0.5.5.1/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/Makefile.am 2006-07-24 21:07:35.000000000 +0200
+@@ -0,0 +1,9 @@
++SUBDIRS = \
++ include \
++ libdvb \
++ libdvbci \
++ libdvbmpeg \
++ dvb-mpegtools \
++ sample_progs \
++ samplerc
++
+diff -urpN libdvb-0.5.5.1/sample_progs/cam_menu.cc libdvb-0.5.5.1.az/sample_progs/cam_menu.cc
+--- libdvb-0.5.5.1/sample_progs/cam_menu.cc 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/sample_progs/cam_menu.cc 2006-07-24 21:14:18.000000000 +0200
+@@ -46,7 +46,7 @@ void reset_keypress()
+
+ void byebye(int i, void *f)
+ {
+- int fd = (int) f;
++ long fd = (long) f;
+
+ CamPacket cp(fd, CMENU_CLOSE, 0, NULL);
+ cp.psend();
+diff -urpN libdvb-0.5.5.1/sample_progs/Makefile libdvb-0.5.5.1.az/sample_progs/Makefile
+--- libdvb-0.5.5.1/sample_progs/Makefile 2005-03-22 15:23:25.000000000 +0200
++++ libdvb-0.5.5.1.az/sample_progs/Makefile 1970-01-01 02:00:00.000000000 +0200
+@@ -1,48 +0,0 @@
+-
+-include ../config.mk
+-
+-LIBS=-L../
+-DVB_LIBS=libdvb.a libdvbci.a
+-HEADERS=DVB.hh ci.hh devices.hh channel.h
+-SOURCES=Makefile $(HEADERS) DVB.cc ci.cc devices.cc OSD.h OSD.c osd.hh\
+- merge.cc conv.cc satscan.cc cam_set.cc cam_test.cc quickscan.cc cam_menu.cc
+-RESOURCES=README astrarc hotbirdrc
+-
+-main: $(TEST_PROGS)
+-
+-dump_TS: dump_TS.cc ../libdvb/libdvb.a ../include/DVB.hh
+- $(CXX) $(LIBS) $(INCLUDES) $(CFLAGS) -o dump_TS dump_TS.cc -ldvb -ldvbmpegtools
+-
+-merge_dvb: merge.cc ../libdvb/libdvb.a ../include/DVB.hh
+- $(CXX) $(LIBS) $(INCLUDES) $(CFLAGS) -o merge_dvb merge.cc -ldvb
+-
+-conv: conv.cc ../libdvb/libdvb.a ../include/DVB.hh
+- $(CXX) $(LIBS) $(INCLUDES) $(CFLAGS) -o conv conv.cc -ldvb
+-
+-satscan: satscan.cc ../libdvb/libdvb.a ../include/DVB.hh
+- $(CXX) $(LIBS) $(INCLUDES) $(CFLAGS) -o satscan satscan.cc -ldvb
+-
+-quickscan: quickscan.cc ../libdvb/libdvb.a ../include/DVB.hh
+- $(CXX) $(LIBS) $(INCLUDES) $(CFLAGS) -o quickscan quickscan.cc -ldvb
+-
+-cam_set: cam_set.cc cam_menu.hh ../libdvbci/libdvbci.a ../include/ci.hh
+- $(CXX) $(LIBS) $(INCLUDES) $(CFLAGS) -o cam_set cam_set.cc -ldvbci
+-
+-cam_test: cam_test.cc ../libdvb/libdvb.a ../include/DVB.hh ../include/ci.hh
+- $(CXX) $(LIBS) $(INCLUDES) -o cam_test cam_test.cc -ldvb -ldvbmpegtools
+-
+-cam_menu: cam_menu.cc cam_menu.hh ../libdvb/libdvb.a ../include/DVB.hh
+- $(CXX) $(LIBS) $(INCLUDES) -o cam_menu cam_menu.cc -ldvb
+-
+-status_check: status_check.c
+- $(CC) $(INCLUDES) $(CFLAGS) -o status_check status_check.c
+-
+-.c.o:
+- $(CC) $(INCLUDES) $(CFLAGS) -c $<
+-
+-.cc.o:
+- $(CXX) $(INCLUDES) $(CFLAGS) -c $<
+-
+-clean:
+- -rm -f *.o $(TEST_PROGS) *~
+-
+diff -urpN libdvb-0.5.5.1/sample_progs/Makefile.am libdvb-0.5.5.1.az/sample_progs/Makefile.am
+--- libdvb-0.5.5.1/sample_progs/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/sample_progs/Makefile.am 2006-07-24 21:23:45.000000000 +0200
+@@ -0,0 +1,45 @@
++INCLUDES = -I$(top_srcdir)/include
++
++noinst_PROGRAMS = \
++ merge_dvb \
++ conv \
++ satscan \
++ cam_set \
++ cam_test \
++ quickscan \
++ cam_menu \
++ dump_TS
++# Not building currently
++# status_check
++
++LIBDVB = $(top_builddir)/libdvb/libdvb.la
++LIBDVBCI = $(top_builddir)/libdvbci/libdvbci.la
++LIBDVBMPEG = $(top_builddir)/libdvbmpeg/libdvbmpegtools.la
++
++dump_TS_LDADD = $(LIBDVB) $(LIBDVBMPEG)
++dump_TS_SOURCES = dump_TS.cc
++
++merge_dvb_LDADD = $(LIBDVB)
++merge_dvb_SOURCES = merge.cc
++
++conv_LDADD = $(LIBDVB)
++conv_SOURCES = conv.cc
++
++satscan_LDADD = $(LIBDVB)
++satscan_SOURCES = satscan.cc
++
++quickscan_LDADD = $(LIBDVB)
++quickscan_SOURCES = quickscan.cc
++
++cam_set_LDADD = $(LIBDVBCI)
++cam_set_SOURCES = cam_set.cc cam_menu.hh
++
++cam_test_LDADD = $(LIBDVB) $(LIBDVBMPEG)
++cam_test_SOURCES = cam_test.cc
++
++cam_menu_LDADD = $(LIBDVB)
++cam_menu_SOURCES = cam_menu.cc cam_menu.hh
++
++# Not building currently
++#status_check_SOURCES = status_check.c
++
+diff -urpN libdvb-0.5.5.1/samplerc/Makefile.am libdvb-0.5.5.1.az/samplerc/Makefile.am
+--- libdvb-0.5.5.1/samplerc/Makefile.am 1970-01-01 02:00:00.000000000 +0200
++++ libdvb-0.5.5.1.az/samplerc/Makefile.am 2006-07-24 21:06:49.000000000 +0200
+@@ -0,0 +1,11 @@
++EXTRA_DIST = \
++ 28erc \
++ astrarc \
++ astra.xml \
++ dvbt-koeln \
++ hotbirdrc \
++ nokia.dat \
++ siriusrc \
++ thorrc \
++ w2-16.nokia
++
diff --git a/media-libs/libdvb/files/libdvb-0.5.5.1-gcc43.patch b/media-libs/libdvb/files/libdvb-0.5.5.1-gcc43.patch
new file mode 100644
index 000000000000..8f9ea6b76d6e
--- /dev/null
+++ b/media-libs/libdvb/files/libdvb-0.5.5.1-gcc43.patch
@@ -0,0 +1,20 @@
+--- libdvb-0.5.5.1.orig/sample_progs/cam_menu.hh 2008-01-28 10:23:53.000000000 +0100
++++ libdvb-0.5.5.1/sample_progs/cam_menu.hh 2008-01-28 10:22:55.000000000 +0100
+@@ -2,6 +2,7 @@
+ * cam_menu.hh
+ *
+ */
++#include <cstring>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+
+--- libdvb-0.5.5.1.orig/libdvbmpeg/ringbuffy.c 2007-03-16 17:53:31.000000000 +0100
++++ libdvb-0.5.5.1/libdvbmpeg/ringbuffy.c 2007-03-16 17:54:10.000000000 +0100
+@@ -19,6 +19,7 @@
+ */
+
+ #include "ringbuffy.h"
++#include <string.h>
+
+ int ring_init (ringbuffy *rbuf, int size)
+ {
diff --git a/media-libs/libdvb/files/libdvb-0.5.5.1-rename-analyze.patch b/media-libs/libdvb/files/libdvb-0.5.5.1-rename-analyze.patch
new file mode 100644
index 000000000000..23b4f22e44f6
--- /dev/null
+++ b/media-libs/libdvb/files/libdvb-0.5.5.1-rename-analyze.patch
@@ -0,0 +1,129 @@
+diff -ru libdvb-0.5.5.1-orig/dvb-mpegtools/main.cc libdvb-0.5.5.1/dvb-mpegtools/main.cc
+--- libdvb-0.5.5.1-orig/dvb-mpegtools/main.cc 2006-07-24 21:48:22.000000000 +0200
++++ libdvb-0.5.5.1/dvb-mpegtools/main.cc 2006-07-24 21:50:03.000000000 +0200
+@@ -54,7 +54,7 @@
+
+ #define PROGS 29
+
+-char *prognames[PROGS+1] = { "streamtype", // 0
++char *prognames[PROGS+1] = { "streamtype_mpg", // 0
+ "ts2pes", // 1
+ "ps2vid",
+ "pes2aud_es",
+@@ -63,7 +63,7 @@
+ "pes2vid",
+ "tspids",
+ "pes2ts",
+- "analyze",
++ "analyze_mpg",
+ "pes_demux", // 10
+ "es_demux",
+ "ts_demux",
+@@ -87,7 +87,7 @@
+ };
+
+
+-enum { streamtype_, // 0
++enum { streamtype_mpg_, // 0
+ ts2pes_, // 1
+ ps2vid_,
+ pes2aud_es_,
+@@ -96,7 +96,7 @@
+ pes2vid_,
+ tspids_,
+ pes2ts_,
+- analyze_,
++ analyze_mpg_,
+ pes_demux_, // 10
+ es_demux_,
+ ts_demux_,
+@@ -123,9 +123,9 @@
+ {
+ switch(progn) {
+
+- case streamtype_:
+- cerr << "usage: streamtype <filename>" << endl;
+- cerr << "or streamtype < <filename> (or pipe)" << endl;
++ case streamtype_mpg_:
++ cerr << "usage: streamtype_mpg <filename>" << endl;
++ cerr << "or streamtype_mpg < <filename> (or pipe)" << endl;
+ break;
+
+ case ts2pes_:
+@@ -175,9 +175,9 @@
+ cerr << " (or pipe)" << endl;
+ break;
+
+- case analyze_:
+- cerr << "usage: analyze <filename>" << endl;
+- cerr << " or analyze < <filename> (or pipe)" << endl;
++ case analyze_mpg_:
++ cerr << "usage: analyze_mpg <filename>" << endl;
++ cerr << " or analyze_mpg < <filename> (or pipe)" << endl;
+ break;
+
+ case pes_demux_:
+@@ -320,7 +320,7 @@
+ }
+
+ switch( progn ) {
+- case streamtype_: {
++ case streamtype_mpg_: {
+ char *streams[4] = { "PS_STREAM", "TS_STREAM"
+ , "PES_STREAM"};
+ char *tv_form[3] = {"DUNNO", "PAL", "NTSC"};
+@@ -426,7 +426,7 @@
+ }
+ break;
+
+- case analyze_:
++ case analyze_mpg_:
+ if (fd == STDIN_FILENO) {
+ analyze(cin);
+ } else {
+diff -ru libdvb-0.5.5.1-orig/dvb-mpegtools/Makefile.am libdvb-0.5.5.1/dvb-mpegtools/Makefile.am
+--- libdvb-0.5.5.1-orig/dvb-mpegtools/Makefile.am 2006-07-24 21:48:22.000000000 +0200
++++ libdvb-0.5.5.1/dvb-mpegtools/Makefile.am 2006-07-24 22:04:56.000000000 +0200
+@@ -21,8 +21,8 @@
+ LIBDVBMPEG = $(top_builddir)/libdvbmpeg/libdvbmpegtools.la
+
+ LINKS = \
+- streamtype ts2pes ps2vid pes2aud_es pes2aud pes2vid_es pes2vid \
+- tspids pes2ts analyze pes_demux es_demux ts_demux ts_es_demux \
++ streamtype_mpg ts2pes ps2vid pes2aud_es pes2aud pes2vid_es pes2vid \
++ tspids pes2ts analyze_mpg pes_demux es_demux ts_demux ts_es_demux \
+ pesplot pes2ts2 pes_repack split_mpg cut_mpg ts2ps ts2es \
+ insert_pat_pmt get_http extract_pes extract_pes_payload \
+ change_aspect_1_1 change_aspect_4_3 change_aspect_16_9 \
+diff -ru libdvb-0.5.5.1-orig/dvb-mpegtools/README libdvb-0.5.5.1/dvb-mpegtools/README
+--- libdvb-0.5.5.1-orig/dvb-mpegtools/README 2006-07-24 21:48:22.000000000 +0200
++++ libdvb-0.5.5.1/dvb-mpegtools/README 2006-07-24 21:50:03.000000000 +0200
+@@ -21,10 +21,10 @@
+ get_http http://mymachine:8090/test.avi | mplayer -
+ usage: get_http <URL>
+
+-streamtype
++streamtype_mpg (original name was streamtype, renamed to avoid name collisions)
+ tries to recognize the stream type and gives information about the stream.
+-usage: streamtype <filename>
+-or streamtype < <filename> (or pipe)
++usage: streamtype_mpg <filename>
++or streamtype_mpg < <filename> (or pipe)
+
+ ts2ps
+ ts2pes
+@@ -70,11 +70,11 @@
+ usage: pes2ts2 <filename> <audio PID> <video PID>
+ or pes2ts2 < <filename> <audio PID> <video PID> (or pipe)
+
+-analyze
++analyze_mpg (original name was analyze, renamed to avoid name collisions)
+ gives some information about a PS/PES stream and all the packets
+ contained therein.
+-usage: analyze <filename>
+-or analyze < <filename> (or pipe)
++usage: analyze_mpg <filename>
++or analyze_mpg < <filename> (or pipe)
+
+ pes_demux
+ es_demux
diff --git a/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild b/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild
new file mode 100644
index 000000000000..12b5f20a8f6d
--- /dev/null
+++ b/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils autotools
+
+DESCRIPTION="libdvb package with CAM library. libdvbmpegtools, and dvb-mpegtools"
+HOMEPAGE="http://www.metzlerbros.org/dvb/"
+SRC_URI="http://www.metzlerbros.org/dvb/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="doc"
+
+DEPEND="virtual/linuxtv-dvb-headers"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-autotools.patch"
+ epatch "${FILESDIR}/${P}-rename-analyze.patch"
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+
+ eautoreconf
+}
+
+src_install() {
+ #einstall DESTDIR="${D}" || die "Install problem"
+ insinto /usr/$(get_libdir)
+ make DESTDIR="${D}" PREFIX=/usr LIBDIR=$(get_libdir) install || die "Problem at make install"
+
+ cd "${D}"/usr/bin
+ mv dia dia_dvb
+
+ cd "${S}"
+ if use doc; then
+ insinto "/usr/share/doc/${PF}/sample_progs"
+ doins sample_progs/*
+ insinto "/usr/share/doc/${PF}/samplerc"
+ doins samplerc/*
+ fi
+
+ elog "The script called 'dia' has been installed as dia_dvb"
+ elog "so that it doesn't overwrite the binary of app-office/dia."
+ elog "analyze has been renamed to analyze_mpg."
+
+ dodoc README
+}
diff --git a/media-libs/libdvb/metadata.xml b/media-libs/libdvb/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/media-libs/libdvb/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>