1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools libtool multilib-minimal toolchain-funcs
8 DESCRIPTION="A library to encapsulate CD-ROM reading and control"
9 HOMEPAGE="https://www.gnu.org/software/libcdio/"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
13 SLOT="0/17" # subslot is based on SONAME
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15 IUSE="cddb +cxx minimal static-libs test"
16 RESTRICT="!test? ( test )"
20 >=sys-libs/ncurses-5.7-r7:0=
21 cddb? ( >=media-libs/libcddb-1.3.2 )
23 >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
30 test? ( dev-lang/perl )
33 DOCS="AUTHORS ChangeLog NEWS README* THANKS TODO"
35 MULTILIB_WRAPPED_HEADERS=(
36 /usr/include/cdio/cdio_config.h
37 /usr/include/cdio/version.h
46 -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \
49 elibtoolize # to prevent -L/usr/lib ending up in the linker line wrt 499510
52 multilib_src_configure() {
54 if ! multilib_is_native_abi || use minimal ; then
55 util_switch="--without"
60 # Tests fail if ECONF_SOURCE is not relative
61 ECONF_SOURCE="../${P}" econf \
62 --disable-maintainer-mode \
65 --disable-example-progs \
66 $(use_enable static-libs static) \
69 ${util_switch}-{cd-drive,cd-info,cdda-player,cd-read,iso-info,iso-read}
72 multilib_src_install_all() {
74 find "${ED}" -name '*.la' -delete || die