]> Some of my projects - anidbudpclient-overlay.git/commitdiff
Add TSDuck ebuild
authorAPTX <marek321@gmail.com>
Tue, 9 Jun 2020 12:46:50 +0000 (21:46 +0900)
committerAPTX <marek321@gmail.com>
Tue, 9 Jun 2020 12:46:50 +0000 (21:46 +0900)
media-tv/tsduck/tsduck-9999.ebuild [new file with mode: 0644]

diff --git a/media-tv/tsduck/tsduck-9999.ebuild b/media-tv/tsduck/tsduck-9999.ebuild
new file mode 100644 (file)
index 0000000..c6cafd8
--- /dev/null
@@ -0,0 +1,41 @@
+EAPI="7"
+
+EGIT_REPO_URI="https://github.com/tsduck/tsduck.git"
+EXPERIMENTAL="true"
+
+inherit git-r3
+
+DESCRIPTION="The MPEG Transport Stream Toolkit"
+HOMEPAGE="https://tsduck.io"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="curl dektec smartcard srt teletext test"
+
+
+DEPEND="
+       curl? ( net-misc/curl )
+       smartcard? ( sys-apps/pcsc-lite )
+       srt? ( net-libs/srt )
+"
+
+RDEPEND="${DEPEND}"
+
+src_compile() {
+       local make_opts=""
+       use "test" || make_opts+=" NOTEST=1"
+       use "dektec" || make_opts+=" NODTAPI=1"
+       use "curl" || make_opts+=" NOCURL=1"
+       use "smartcard" || make_opts+=" NOPCSC=1"
+       use "srt" || make_opts+=" NOSRT=1"
+       use "teletext" || make_opts+=" NOTELETEXT=1"
+
+       emake $make_opts
+}
+
+src_install() {
+       emake -j1 SYSROOT="${D}" install
+       emake -j1 SYSROOT="${D}" install-devel
+}
+