diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2006-07-24 20:10:01 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2006-07-24 20:10:01 +0000 |
commit | 37616794f1b8e8fce7e483d9d7006db19bf488f1 (patch) | |
tree | 4f2aff55459819bcefe9c7cf755a60c8c9fce577 /media-libs/libdvb | |
parent | version bump (diff) | |
download | historical-37616794f1b8e8fce7e483d9d7006db19bf488f1.tar.gz historical-37616794f1b8e8fce7e483d9d7006db19bf488f1.tar.bz2 historical-37616794f1b8e8fce7e483d9d7006db19bf488f1.zip |
Now using patch to use autotools, thank to azarah.
Package-Manager: portage-2.1.1_pre3-r4
Diffstat (limited to 'media-libs/libdvb')
-rw-r--r-- | media-libs/libdvb/ChangeLog | 8 | ||||
-rw-r--r-- | media-libs/libdvb/files/libdvb-0.5.5.1-autotools.patch | 616 | ||||
-rw-r--r-- | media-libs/libdvb/files/libdvb-0.5.5.1-rename-analyze.patch | 129 | ||||
-rw-r--r-- | media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild | 33 |
4 files changed, 769 insertions, 17 deletions
diff --git a/media-libs/libdvb/ChangeLog b/media-libs/libdvb/ChangeLog index 89b6c6159872..5f4581ad9050 100644 --- a/media-libs/libdvb/ChangeLog +++ b/media-libs/libdvb/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libdvb # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvb/ChangeLog,v 1.30 2006/07/24 19:18:55 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvb/ChangeLog,v 1.31 2006/07/24 20:10:01 zzam Exp $ + + 24 Jul 2006; Matthias Schwarzott <zzam@gentoo.org> + +files/libdvb-0.5.5.1-autotools.patch, + +files/libdvb-0.5.5.1-rename-analyze.patch, + -files/libdvb-0.5.5.1-shared-libs.patch, libdvb-0.5.5.1-r3.ebuild: + Now using patch to use autotools, thank to azarah. *libdvb-0.5.5.1-r3 (24 Jul 2006) 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..82d903a6b35f --- /dev/null +++ b/media-libs/libdvb/files/libdvb-0.5.5.1-autotools.patch @@ -0,0 +1,616 @@ +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,25 @@ ++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_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-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 index 06f7e5c7e2c4..6187be218e4c 100644 --- a/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild +++ b/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild,v 1.1 2006/07/24 19:18:55 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvb/libdvb-0.5.5.1-r3.ebuild,v 1.2 2006/07/24 20:10:01 zzam Exp $ -inherit eutils multilib +inherit eutils autotools DESCRIPTION="libdvb package with added CAM library and libdvbmpegtools as well as dvb-mpegtools" HOMEPAGE="http://www.metzlerbros.org/dvb/" @@ -19,16 +19,10 @@ src_unpack() { unpack ${A} cd "${S}" - # Disable compilation of sample programs - # and use DESTDIR when installing - epatch "${FILESDIR}"/${P}-gentoo.patch - epatch "${FILESDIR}"/${P}-gentoo-file-collisions.patch - epatch "${FILESDIR}"/${P}-shared-libs.patch + epatch "${FILESDIR}/${P}-autotools.patch" + epatch "${FILESDIR}/${P}-rename-analyze.patch" - sed -i -e '/^CFLAGS=/d' config.mk || die - sed -i Makefile \ - -e 's-/include-/include/libdvb-' \ - -e 's-/lib/-/$(LIBDIR)/-' + eautoreconf } src_install() { @@ -36,13 +30,20 @@ src_install() { insinto /usr/$(get_libdir) make DESTDIR="${D}" PREFIX=/usr LIBDIR=$(get_libdir) install || die "Problem at make install" - use doc && insinto "/usr/share/doc/${PF}/sample_progs" && \ - doins sample_progs/* && \ - insinto "/usr/share/doc/${PF}/samplerc" && \ - doins samplerc/* + cd ${D}/usr/bin + mv dia dia_dvb - einfo "The script called 'dia' has been installed as 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 + + einfo "The script called 'dia' has been installed as dia_dvb" einfo "so that it doesn't overwrite the binary of app-office/dia." + einfo "analyze has been renamed to analyze_mpg." dodoc README } |