summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2005-03-27 23:14:13 +0000
committerChris White <chriswhite@gentoo.org>2005-03-27 23:14:13 +0000
commitff4abe9c39b80874f1e361898f4768ee5b3a7b38 (patch)
tree1935f0aff8872c695e78455b6fde534c785134f8 /media-video
parentVersion bump. (diff)
downloadgentoo-2-ff4abe9c39b80874f1e361898f4768ee5b3a7b38.tar.gz
gentoo-2-ff4abe9c39b80874f1e361898f4768ee5b3a7b38.tar.bz2
gentoo-2-ff4abe9c39b80874f1e361898f4768ee5b3a7b38.zip
Initial import into the tree. Closes bug #31632. Thanks to swegner for the ebuild!
(Portage version: 2.0.51.19)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/bbtools/ChangeLog11
-rw-r--r--media-video/bbtools/Manifest3
-rw-r--r--media-video/bbtools/bbtools-1.9.ebuild39
-rw-r--r--media-video/bbtools/files/bbtools-1.9-gentoo.patch78
-rw-r--r--media-video/bbtools/files/digest-bbtools-1.91
-rw-r--r--media-video/bbtools/metadata.xml17
6 files changed, 149 insertions, 0 deletions
diff --git a/media-video/bbtools/ChangeLog b/media-video/bbtools/ChangeLog
new file mode 100644
index 000000000000..f1e7aa2df5b8
--- /dev/null
+++ b/media-video/bbtools/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-video/bbtools
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/bbtools/ChangeLog,v 1.1 2005/03/27 23:14:13 chriswhite Exp $
+
+*bbtools-1.9 (28 Mar 2005)
+
+ 28 Mar 2005; Chris White <chriswhite@gentoo.org> +metadata.xml,
+ +files/bbtools-1.9-gentoo.patch, +bbtools-1.9.ebuild:
+ Initial import into the tree. Closes bug #31632. Thanks to swegner for the
+ ebuild!
+
diff --git a/media-video/bbtools/Manifest b/media-video/bbtools/Manifest
new file mode 100644
index 000000000000..2aac47222c34
--- /dev/null
+++ b/media-video/bbtools/Manifest
@@ -0,0 +1,3 @@
+MD5 d31f54e098e4facadc24ecc087f74e7f bbtools-1.9.ebuild 742
+MD5 3935934a35196bfef16ebe39883f7200 files/bbtools-1.9-gentoo.patch 2768
+MD5 a4a1e55a94bc7019f6c88f684d1286f4 files/digest-bbtools-1.9 60
diff --git a/media-video/bbtools/bbtools-1.9.ebuild b/media-video/bbtools/bbtools-1.9.ebuild
new file mode 100644
index 000000000000..4397b10fdff1
--- /dev/null
+++ b/media-video/bbtools/bbtools-1.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/bbtools/bbtools-1.9.ebuild,v 1.1 2005/03/27 23:14:13 chriswhite Exp $
+
+inherit eutils
+
+DESCRIPTION="bbdmux, bbinfo, bbvinfo and bbainfo from Brent Beyeler"
+HOMEPAGE="http://members.cox.net/beyeler/bbmpeg.html"
+SRC_URI="http://files.digital-digest.com/downloads/files/encode/bbtool${PV/./}_src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+DEPEND="virtual/libc"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+
+ mv BBINFO.cpp bbinfo.cpp
+ mv BITS.CPP bits.cpp
+ mv BITS.H bits.h
+ mv bbdmux.CPP bbdmux.cpp
+ rm *.ide
+ edos2unix *.cpp *.h
+
+ epatch ${FILESDIR}/bbtools-${PV}-gentoo.patch
+}
+
+src_compile() {
+ make || die "make failed"
+}
+
+src_install() {
+ dobin bbainfo bbdmux bbinfo bbvinfo
+}
diff --git a/media-video/bbtools/files/bbtools-1.9-gentoo.patch b/media-video/bbtools/files/bbtools-1.9-gentoo.patch
new file mode 100644
index 000000000000..2c33cae118c7
--- /dev/null
+++ b/media-video/bbtools/files/bbtools-1.9-gentoo.patch
@@ -0,0 +1,78 @@
+--- bits.h
++++ bits.h 2003-10-20 22:04:30.000000000 +0000
+@@ -15,4 +15,4 @@
+ int seek_sync(unsigned int sync, int N);
+ unsigned int look_ahead(int N);
+
+-
++#define strlwr(x)
+--- bbainfo.cpp
++++ bbainfo.cpp 2003-10-20 22:19:15.000000000 +0000
+@@ -97,8 +97,8 @@
+ {
+ int i, framesize, skip;
+
+- framesize = bitrate_index[3 - layer][bit_rate] /
+- frequency[freq] * slots[3 - layer];
++ framesize = (int) (bitrate_index[3 - layer][bit_rate] /
++ frequency[freq] * slots[3 - layer]);
+
+ if (padding_bit)
+ framesize++;
+--- bbinfo.cpp
++++ bbinfo.cpp 2003-10-20 22:16:43.000000000 +0000
+@@ -984,7 +984,7 @@
+ bit_rate = (k & 0xF0) >> 4;
+ freq = (k & 0x0C) >> 2;
+ padding_bit = (k & 0x02) >> 1;
+- audio_sync[i] = ((bitrate_index[3 - layer][bit_rate] /
++ audio_sync[i] = (int) ((bitrate_index[3 - layer][bit_rate] /
+ frequency[freq]) * slots[3 - layer]) - 4;
+ if (padding_bit)
+ audio_sync[i] += 1;
+@@ -1274,7 +1274,7 @@
+ bit_rate = (k & 0xF0) >> 4;
+ freq = (k & 0x0C) >> 2;
+ padding_bit = (k & 0x02) >> 1;
+- audio_sync[i] = ((bitrate_index[3 - layer][bit_rate] /
++ audio_sync[i] = (int) ((bitrate_index[3 - layer][bit_rate] /
+ frequency[freq]) * slots[3 - layer]) - 4;
+
+ if (padding_bit)
+@@ -2198,7 +2198,7 @@
+ bit_rate = (k & 0xF0) >> 4;
+ freq = (k & 0x0C) >> 2;
+ padding_bit = (k & 0x02) >> 1;
+- streams[PID]->audio_sync = ((bitrate_index[3 - layer][bit_rate] /
++ streams[PID]->audio_sync = (int) ((bitrate_index[3 - layer][bit_rate] /
+ frequency[freq]) * slots[3 - layer]) - 4;
+ if (padding_bit)
+ streams[PID]->audio_sync += 1;
+--- Makefile
++++ Makefile 2003-10-20 22:26:07.000000000 +0000
+@@ -0,0 +1,25 @@
++all: bbainfo bbdmux bbinfo bbvinfo
++
++bbdmux: bits.o bbdmux.o
++ $(CXX) $(CXXFLAGS) -lm -o $@ $^
++
++bbinfo: bits.o bbinfo.o
++ $(CXX) $(CXXFLAGS) -lm -o $@ $^
++
++bbvinfo: bits.o bbvinfo.o
++ $(CXX) $(CXXFLAGS) -lm -o $@ $^
++
++bbainfo: bits.o bbainfo.o
++ $(CXX) $(CXXFLAGS) -lm -o $@ $^
++
++%.o: %.c
++ $(CXX) $(CXXFLAGS) -c -o $@ $<
++
++clean:
++ rm -f bbainfo bbdmux bbinfo bbvinfo core *.o
++
++bbainfo.o: bbainfo.cpp bits.h
++bbdmux.o: bbdmux.cpp bits.h
++bbinfo.o: bbinfo.cpp bits.h
++bbvinfo.o: bbvinfo.cpp bits.h
++bits.o: bits.cpp bits.h
diff --git a/media-video/bbtools/files/digest-bbtools-1.9 b/media-video/bbtools/files/digest-bbtools-1.9
new file mode 100644
index 000000000000..e54920b59d13
--- /dev/null
+++ b/media-video/bbtools/files/digest-bbtools-1.9
@@ -0,0 +1 @@
+MD5 4bc2667542e2e63ad9419a84f1d50139 bbtool19_src.zip 68080
diff --git a/media-video/bbtools/metadata.xml b/media-video/bbtools/metadata.xml
new file mode 100644
index 000000000000..421b9241a8c5
--- /dev/null
+++ b/media-video/bbtools/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>video</herd>
+<maintainer>
+ <email>media-video@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+bbtools is a package of 4 small tools written by Brent Beyeler.
+
+bbdmux: an MPEG-1 or MPEG-2 program/transport stream de-multiplexer
+bbinfo: an MPEG-1 or MPEG-2 program/transport stream analyzer
+bbvinfo: an MPEG-1 or MPEG-2 video stream analyzer
+bbainfo: an MPEG-1 audio stream analyzer
+</longdescription>
+</pkgmetadata>
+