summaryrefslogtreecommitdiff
blob: 3c009c8acfb3e2cb99f1a90267bfba315f40574b (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit multilib-minimal

DESCRIPTION="Open implementation of the Advanced Access Content System (AACS) specification"
HOMEPAGE="https://www.videolan.org/developers/libaacs.html"
SRC_URI="https://downloads.videolan.org/pub/videolan/libaacs/${PV}/${P}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv sparc x86"

RDEPEND="
	>=dev-libs/libgcrypt-1.5.3:0=[${MULTILIB_USEDEP}]
	>=dev-libs/libgpg-error-1.12[${MULTILIB_USEDEP}]
"
DEPEND="${RDEPEND}"
BDEPEND="
	sys-devel/bison
	sys-devel/flex
"

DOCS=( ChangeLog KEYDB.cfg README.md )

multilib_src_configure() {
	# Force Bison & flex as it doesn't work even w/ build system fixed
	# https://code.videolan.org/videolan/libaacs/-/merge_requests/14
	unset YACC
	export LEX=flex

	local myeconfargs=(
		--disable-optimizations
		--enable-shared
	)

	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"

	# Workaround automake bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54390
	mkdir -p "${BUILD_DIR}"/src/file || die
}

multilib_src_install_all() {
	einstalldocs

	find "${ED}" -type f -name "*.la" -delete || die
}