1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit l10n toolchain-funcs
9 DESCRIPTION="Nintendo Gameboy sound player for GBS format"
10 HOMEPAGE="https://www.cgarbs.de/gbsplay.en.html"
11 SRC_URI="mirror://gentoo/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+alsa nas nls oss"
18 RDEPEND="alsa? ( media-libs/alsa-lib:0 )
19 nas? ( media-libs/nas:0 )"
22 nls? ( sys-devel/gettext:0 )"
25 "${FILESDIR}/${P}-fix-buildsystem.patch"
31 # No econf, because "unknown option '--build=x86_64-pc-linux-gnu'"
34 --mandir=/usr/share/man \
35 --docdir=/usr/share/doc/${PF} \
36 --without-xmmsplugin \
38 $(use_enable nls i18n) \
39 $(use_enable oss devdsp) \
41 $(use_enable nas) || die "Configure failed."
45 emake CC="$(tc-getCC)" SPLINT="true"
48 remove_disabled_locale() {
49 rm -r "${D}"/usr/share/locale/$1 || die
55 l10n_for_each_disabled_locale_do remove_disabled_locale