summaryrefslogtreecommitdiff
path: root/media-libs/libmp4v2/libmp4v2-2.1.3-r1.ebuild
blob: 8f0d153412d1ee8415bbf7afa6bea5dff11bccd8 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_P=${P/lib}

inherit cmake

DESCRIPTION="Functions for accessing ISO-IEC:14496-1:2001 MPEG-4 standard"
HOMEPAGE="https://mp4v2.org/"
SRC_URI="https://github.com/enzo1982/mp4v2/releases/download/v${PV}/${MY_P}.tar.bz2"

LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="utils"
# Tests need DejaGnu but are non-existent (just an empty framework)
RESTRICT="test"

S="${WORKDIR}/${MY_P}"

PATCHES=(
	"${FILESDIR}/${PN}-2.0.0-unsigned-int-cast.patch"
	"${FILESDIR}/${P}-mem-leaks-1.patch"
	"${FILESDIR}/${P}-mem-leaks-2.patch"
)

src_configure() {
	local mycmakeargs=(
		-DBUILD_UTILS=$(usex utils)
	)
	cmake_src_configure
}