blob: fbf383cf25b5687a4cf72831b3d510530b8aa328 (
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-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_P=${P/lib}
inherit libtool
DESCRIPTION="Functions for accessing ISO-IEC:14496-1:2001 MPEG-4 standard"
HOMEPAGE="https://code.google.com/p/mp4v2/"
SRC_URI="https://mp4v2.googlecode.com/files/${MY_P}.tar.bz2"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="static-libs test utils"
RESTRICT="!test? ( test )"
BDEPEND="
sys-apps/sed
test? ( dev-util/dejagnu )
utils? ( sys-apps/help2man )
"
DOCS=( doc/{Authors,BuildSource,Documentation,ReleaseNotes,ToolGuide}.txt README )
S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}/${P}-gcc7.patch"
"${FILESDIR}/${P}-mp4tags-corruption.patch"
"${FILESDIR}/${P}-clang.patch"
)
src_prepare() {
default
elibtoolize
}
src_configure() {
econf \
--disable-gch \
$(use_enable utils util) \
$(use_enable static-libs static)
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
|