mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-13 16:42:39 +02:00
Closes: https://bugs.gentoo.org/834552 Signed-off-by: Vivian Heisz (vhz) <demize@unstable.systems> Part-of: https://github.com/gentoo/gentoo/pull/41449 Closes: https://github.com/gentoo/gentoo/pull/41449 Signed-off-by: Sam James <sam@gentoo.org>
36 lines
1,008 B
Bash
36 lines
1,008 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake-multilib multibuild
|
|
|
|
DESCRIPTION="Video game music file emulators"
|
|
HOMEPAGE="https://bitbucket.org/mpyne/game-music-emu/wiki/Home"
|
|
SRC_URI="https://bitbucket.org/mpyne/game-music-emu/downloads/${P}.tar.xz"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="test? ( sys-process/parallel )"
|
|
DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
DOCS=( changes.txt design.txt gme.txt readme.txt )
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DENABLE_UBSAN=off # disabled so that if gcc[-sanitize] it does not fail to compile
|
|
)
|
|
cmake-multilib_src_configure
|
|
}
|
|
|
|
multilib_src_test() {
|
|
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BUILD_DIR}/gme" \
|
|
emake -C "${S}/test" test \
|
|
LIBGME_NEW_PATH="${BUILD_DIR}/gme/libgme.so" \
|
|
CXXFLAGS="${CXXFLAGS}" LIBRARIES="${BUILD_DIR}/gme"
|
|
}
|