1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="Console mode MIDI player with builtin userland OPL2 driver"
8 HOMEPAGE="https://bisqwit.iki.fi/source/fmdrv.html"
9 SRC_URI="https://bisqwit.iki.fi/src/arch/${P}.tar.bz2"
11 LICENSE="fmdrv GPL-2" # GPL-2 only
16 epatch "${FILESDIR}"/${P}-ioperm.patch
19 src_configure() { :; } # it is a fake
23 CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
24 CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
35 elog "If you want to use AdLib (FM OPL2), you need to setuid /usr/bin/fmdv."
36 elog "chmod 4711 /usr/bin/fmdrv"