mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
SUMMARY="A port of gpSP, a Game Boy Advance emulator to the libretro API"
|
|
DESCRIPTION="gpSP was initially a Nintendo Game Boy Advance emulator for the \
|
|
Sony PlayStation Portable console, but is now available on various platforms \
|
|
thanks to its Libretro core."
|
|
HOMEPAGE="http://gpsp-dev.blogspot.com/"
|
|
COPYRIGHT="2007-2018 Exophase, the libretro team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
srcGitRev="638aad3ad5e724bb43294b255a292aa2ff83009f"
|
|
SOURCE_URI="https://github.com/libretro/gpsp/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="2928762aa4b0346573820db79803fec1347c4c056d65195b1c133bce90d971e4"
|
|
SOURCE_FILENAME="gpsp-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="gpsp-$srcGitRev"
|
|
ADDITIONAL_FILES="gpsp_libretro.info.in"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
gpsp_libretro$secondaryArchSuffix = $portVersion
|
|
addon:gpsp_libretro$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
retroarch$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
|
|
$portDir/additional-files/gpsp_libretro.info.in \
|
|
> gpsp_libretro.info
|
|
make $jobArgs GIT_VERSION=${srcGitRev:0:7}
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -m 0755 -d "$docDir"
|
|
install -m 0644 -t "$docDir" COPYING readme.txt
|
|
install -m 0755 -d "$addOnsDir"/libretro
|
|
install -m 0644 -t "$addOnsDir"/libretro \
|
|
gpsp_libretro.info \
|
|
gpsp_libretro.so
|
|
}
|