diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-06-20 23:07:44 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-06-20 23:08:32 +0300 |
commit | f96f969f7691f00bc21fc3890ea18d0657254721 (patch) | |
tree | e81f20799fb1b25302b1a4aba0d90e06d0a6ac5f /media-tv | |
parent | sys-libs/readline: Stabilize 8.2_p10 arm64, #934622 (diff) | |
download | gentoo-f96f969f7691f00bc21fc3890ea18d0657254721.tar.gz gentoo-f96f969f7691f00bc21fc3890ea18d0657254721.tar.bz2 gentoo-f96f969f7691f00bc21fc3890ea18d0657254721.zip |
media-tv/dvbstream: add 0.8.2
Closes: https://bugs.gentoo.org/879033
Closes: https://bugs.gentoo.org/919183
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/dvbstream/Manifest | 1 | ||||
-rw-r--r-- | media-tv/dvbstream/dvbstream-0.8.2.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/media-tv/dvbstream/Manifest b/media-tv/dvbstream/Manifest index 9390f2d260c4..01376f0a2645 100644 --- a/media-tv/dvbstream/Manifest +++ b/media-tv/dvbstream/Manifest @@ -1 +1,2 @@ +DIST dvbstream-0.8.2.tar.bz2 60542 BLAKE2B c2e57c9e94cf4b359025e1607e827a1e23330d2caa0ce0788b7366501df66781775a6e4cc3ac4ed670f619ce53b60cf970156257944c3baf1f344ee830ece307 SHA512 06d6fc6c62ee898726b240164a8f9cdd7f2a61dd148db052a6f37c3cf174ef9f3f886c1eafcc3e249fdc9fee057790efbc3baccf71dd6cad98b3fef06a2b7c9a DIST dvbstream-snapshot-20080302.tar.bz2 58089 BLAKE2B 9dd2fdd5e1dfa3741554b84cd5361697cef16b0ecba6ee5a8a2890959678dfc1497e54003d9b5ebb9e0092e5f3e71a4b5786a2c2e224d31a9243ecaafeea98e1 SHA512 7116310435584b61c51f642d38cfdbbdf706df27448af7824b5a050e374ad72d3d08c2eb03de0d5ed6ec1cb15461e3be90ee8bd3b045b6ba858b5896c5546671 diff --git a/media-tv/dvbstream/dvbstream-0.8.2.ebuild b/media-tv/dvbstream/dvbstream-0.8.2.ebuild new file mode 100644 index 000000000000..d84aea3032e4 --- /dev/null +++ b/media-tv/dvbstream/dvbstream-0.8.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="RTP multicast stream server and other tools for DVB cards" +HOMEPAGE="https://www.orcas.net/dvbstream/" +SRC_URI="http://www.orcas.net/dvbstream/${P}.tar.bz2" +S=${WORKDIR}/${PN} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-lang/perl" +BDEPEND="sys-kernel/linux-headers" + +src_prepare() { + default + + sed -i Makefile \ + -e 's:$(CFLAGS):$(CFLAGS) $(CPPFLAGS):' \ + -e '/CFLAGS.*=.*-g -Wall -O2/s:-g -Wall -O2::' \ + -e '/CFLAGS.*=/s:CFLAGS:CPPFLAGS:' \ + -e 's:-I \.\./DVB/include:-I /usr/include:' \ + -e 's:$(CC):$(CC) $(LDFLAGS):g' \ + || die 'failed to fix flags in the Makefile' + + sed -e 's:\./svdrpsend.pl:dvbstream-send.pl:' \ + -i TELNET/*.sh \ + || die 'failed to rename the svdrpsend.pl command in scripts' + + # bug 919183 + sed -e '/#include "ringbuffy.h"/a #include <string.h>' \ + -i mpegtools/ringbuffy.c || die 'failed to fix ringbuffy.c' + + sed -e "s:-lcurses:$( $(tc-getPKG_CONFIG) --libs ncurses ):" \ + -i Makefile || die 'failed to fix ncurses linking in Makefile' + + sed -e 's:^DUMPRTP=.*$:DUMPRTP=dumprtp:' -i *.sh || die 'failed to set DUMPRTP and TS2ES in scripts' +} + +src_compile() { + emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dobin dvbstream dumprtp rtpfeed ts_filter + newbin TELNET/svdrpsend.pl dvbstream-send.pl + + dodoc README* + newdoc TELNET/README README.telnet + + insinto "/usr/share/doc/${PF}/tune" + doins TELNET/*.sh + + insinto "/usr/share/doc/${PF}/multicast" + doins *.sh +} |