summaryrefslogtreecommitdiff
path: root/media-video/tsmuxer/tsmuxer-2.7.0.ebuild
blob: bae1aac9bfc8b848ae0f2ab9c03e430d1a226c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="tsMuxer"
inherit cmake xdg

DESCRIPTION="Utility to create and demux TS and M2TS files"
HOMEPAGE="https://github.com/justdan96/tsMuxer"
SRC_URI="https://github.com/justdan96/tsMuxer/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gui"

DEPEND="
	gui? (
		dev-qt/qtbase:6[gui,widgets]
		dev-qt/qtmultimedia:6
	)
	media-libs/freetype
	virtual/zlib:=
"
RDEPEND="${DEPEND}"
BDEPEND="
	virtual/pkgconfig
	gui? ( dev-qt/qttools:6[linguist] )
"

DOCS=( README.md )

PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) # bug 967123

src_configure() {
	local mycmakeargs=(
		-DTSMUXER_STATIC_BUILD=OFF
		-DTSMUXER_GUI=$(usex gui)
	)
	use gui && mycmakeargs+=( -DQT_VERSION=6 )
	cmake_src_configure
}