0
0
Fork 0
haikuports/games-emulation/opera_libretro/opera_libretro-1.0.0_202110...

55 lines
1.5 KiB
Bash

SUMMARY="A fork of 4DO, a 3DO emulator to the libretro architecture"
DESCRIPTION="Opera is a fork of 4DO, originally a port of 4DO, itself a fork \
of FreeDO, to libretro. The fork/rename occurred due to the original 4DO \
project being dormant and to differenciate the project due to new development \
and focus."
HOMEPAGE="https://github.com/libretro/opera-libretro"
COPYRIGHT="2011-2020 the 4DO/FreeDO team, the libretro team"
LICENSE="FreeDO
GNU LGPL v3"
REVISION="1"
srcGitRev="fef06b06127736544f6ebb4f703efd01b6e018dd"
SOURCE_URI="https://github.com/libretro/opera-libretro/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="415c1aab5466e663fbf12ac80de06b6d3a69520db11440b7f2473f62d043f1d3"
SOURCE_FILENAME="libretro-opera-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="opera-libretro-$srcGitRev"
ADDITIONAL_FILES="opera_libretro.info.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
opera_libretro$secondaryArchSuffix = $portVersion
addon:opera_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/opera_libretro.info.in \
> opera_libretro.info
make $jobArgs
}
INSTALL()
{
install -m 0755 -d "$docDir"
install -m 0644 -t "$docDir" README.md
install -m 0755 -d "$addOnsDir"/libretro
install -m 0644 -t "$addOnsDir"/libretro \
opera_libretro.info \
opera_libretro.so
}