diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/bbtools |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/bbtools')
-rw-r--r-- | media-video/bbtools/Manifest | 6 | ||||
-rw-r--r-- | media-video/bbtools/bbtools-1.9.ebuild | 37 | ||||
-rw-r--r-- | media-video/bbtools/files/bbtools-1.9-gentoo.patch | 78 | ||||
-rw-r--r-- | media-video/bbtools/metadata.xml | 15 |
4 files changed, 136 insertions, 0 deletions
diff --git a/media-video/bbtools/Manifest b/media-video/bbtools/Manifest new file mode 100644 index 000000000000..5fb5c444153d --- /dev/null +++ b/media-video/bbtools/Manifest @@ -0,0 +1,6 @@ +AUX bbtools-1.9-gentoo.patch 2816 SHA256 1fe81381496520d41bb06927aab1bc2776a357906cf3cb51bd80c824b9e0a91c SHA512 7ed795bbf5042b8ae70234d2d90139d7f6cf0b610c94688d0c5e401a028f733df9f53894e61b01f91acf8fd58f1253e6db229628775d5cb4a7e8c278f3e23e09 WHIRLPOOL c3d0270d881b3f0eb1856dc4b96fde5d171043ca26e1a93bea2c5b77f985a3a194725bfcda1b8bcea5f762b2d7760efd6d2db31fb0b2c23102d82ae7f604ab8e +DIST bbtool19_src.zip 68080 SHA256 69e0b0b2b2f3b1e60f7b5391df3e41b0355612243c2591916fd510d9813a3b2d SHA512 7d22a3934e0b5a8fa228963989b20387b493a672026adcac1761256030f64681fdc936f15934bb7ecf019db43f3bdfbebbf94782534b21883c5c5c3674d073c7 WHIRLPOOL cb820e1c567a8166ec5802e8acd1933491b920af8458897128601d0aac3b91585db258a997b7754840321be0cd261b3df1514d53bbcc73701b3228c3954f2dea +EBUILD bbtools-1.9.ebuild 783 SHA256 5fc6584a7ad44cf81e31969ea4ef678e236e096b55a343feadbe7143ee66c5ee SHA512 de5abc7824c872a710bf940377369127430803c1248dbcf3832deb174075413ae494d1c57acd5523f779c2dd8a5237d073f287a182bf49447e6a0959448b5891 WHIRLPOOL efc71a1367619b201c0a312715097987d550058175406c132e4a62f687f7647a7025737ef41217ab2f659a5fbe462385764afaa45debf08cde69823fb0a32bcc +MISC ChangeLog 2852 SHA256 684777d8aaf8bb184de3d865601b6255e960e6e4c2e79ef68c55d1e22600ad3d SHA512 3f6605d7de873ca00554a96b91038290c604198c019e09c694f180e04707f855927c8e0499ae62ca5c0fbdc7b482c5b8eec1d7baec671b1ffc7ec3df24d569d9 WHIRLPOOL 3e1a8094980a4ca99cba96bd0347ae3054d7ab65ab5ff8fed229d2e1456d3189bcc3c52d1be94892098c0372063b76e377b06da98638c4b513d047a31b114f95 +MISC ChangeLog-2015 1121 SHA256 a27cb03a864bfda6c2b319edc2c2b3106341db4524da0581f91e9e4ebc840d63 SHA512 24c7b2c4b23a3985c60998cc45ed889e9a6abc78a8e54ad92e5ebce7d38feef98cd2941bee8c379f84a8b980fd4a8e70c07b76c6429e1032b6c5e7239c801323 WHIRLPOOL eaee266c8977aa23b43bc806b94534e2d1cd564359e4597c0176381f8aece6f301a7e6fad8d187f669e524032b08d71dc6f11a5bf28e6d3f216660e8f35cd243 +MISC metadata.xml 554 SHA256 73bd35c6a1f387da37295d61358dca1aca5d5c8845808063dfa3052ffce56036 SHA512 ca7a79616518939ae835c8d2e327aadd7f7d48d9ab28af61ad61b7ab435b9384c285d45614f0ee10a0222fa556739b02cfe4ed0f78b9233a4007fbb8b41f0ad7 WHIRLPOOL c9e529894713b307cfa67a32bbf2ca2b780b7df4fe5fadaa60a36c09f2abcdd33800a4f510b58d40b09e6c1b378c11898876769f3dc5e22eb595fcf29884dc78 diff --git a/media-video/bbtools/bbtools-1.9.ebuild b/media-video/bbtools/bbtools-1.9.ebuild new file mode 100644 index 000000000000..f824754bccb5 --- /dev/null +++ b/media-video/bbtools/bbtools-1.9.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils flag-o-matic toolchain-funcs + +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="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + mv BBINFO.cpp bbinfo.cpp || die + mv BITS.CPP bits.cpp || die + mv BITS.H bits.h || die + mv bbdmux.CPP bbdmux.cpp || die + rm *.ide + edos2unix *.cpp *.h + + epatch "${FILESDIR}"/bbtools-${PV}-gentoo.patch + + append-lfs-flags + tc-export CXX +} + +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..7f9ff7ab6279 --- /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) $(LDFLAGS) $^ -lm -o $@ ++ ++bbinfo: bits.o bbinfo.o ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -lm -o $@ ++ ++bbvinfo: bits.o bbvinfo.o ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -lm -o $@ ++ ++bbainfo: bits.o bbainfo.o ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -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/metadata.xml b/media-video/bbtools/metadata.xml new file mode 100644 index 000000000000..b02500394b71 --- /dev/null +++ b/media-video/bbtools/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <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> |