mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
86 lines
2.3 KiB
Bash
86 lines
2.3 KiB
Bash
SUMMARY="Collection of video game music file emulators"
|
|
DESCRIPTION="Game_Music_Emu is a collection of video game music file emulators that \
|
|
support the following formats and systems:
|
|
|
|
- AY ZX Spectrum/Amstrad CPC
|
|
- GBS Nintendo Game Boy
|
|
- GYM Sega Genesis/Mega Drive
|
|
- HES NEC TurboGrafx-16/PC Engine
|
|
- KSS MSX Home Computer/other Z80 systems (doesn't support FM sound)
|
|
- NSF/NSFE Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
|
|
- SAP Atari systems using POKEY sound chip
|
|
- SPC Super Nintendo/Super Famicom
|
|
- VGM/VGZ Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro"
|
|
HOMEPAGE="https://bitbucket.org/mpyne/game-music-emu"
|
|
COPYRIGHT="2002 Stephane Dallongeville
|
|
2003-2009 Shay Green"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="2"
|
|
SOURCE_URI="https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d"
|
|
SOURCE_DIR="game-music-emu-$portVersion"
|
|
PATCHES="game_music_emu-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersionCompat="$portVersion compat >= ${portVersion%.*.*}"
|
|
|
|
PROVIDES="
|
|
game_music_emu$secondaryArchSuffix = $portVersion
|
|
lib:libgme$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
game_music_emu${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgme$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
game_music_emu$secondaryArchSuffix == $portVersion base
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage game_music_emu$secondaryArchSuffix \
|
|
$libDir/libgme.so.$portVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
|
|
-DLIB_SUFFIX=/${secondaryArchSuffix#"_"} \
|
|
-DENABLE_UBSAN=OFF -L
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# copy develop documentation
|
|
mkdir -p $developDocDir
|
|
cp -rd $sourceDir/{design,gme,readme}.txt $developDocDir
|
|
|
|
|
|
prepareInstalledDevelLib libgme
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|