summaryrefslogtreecommitdiff
blob: 818583eb094e73d428e6d1d796c85c82f2c36363 (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
45
46
47
48
49
50
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="Information, extraction or creation for OGG media streams"
HOMEPAGE="https://www.bunkus.org/videotools/ogmtools/"
SRC_URI="https://www.bunkus.org/videotools/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE="dvd"

RDEPEND="
	media-libs/libogg
	media-libs/libvorbis
	media-sound/vorbis-tools
	dvd? ( media-libs/libdvdread:= )"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-comments.patch
	"${FILESDIR}"/${P}-endian-fix.patch
	"${FILESDIR}"/${P}-vorbis_verbosity.patch
	"${FILESDIR}"/${P}-summary_length.patch
	"${FILESDIR}"/${P}-fix-autotools.patch
	"${FILESDIR}"/${P}-gcc11.patch
)

src_prepare() {
	default
	mv configure.{in,ac} || die
	eautoreconf
}

src_configure() {
	econf $(use_with dvd dvdread)
}

src_install() {
	dobin ogmmerge ogmdemux ogminfo ogmsplit ogmcat

	use dvd && dobin dvdxchap

	einstalldocs
	doman *.1
}