o2em_libretro: a port of O2EM to the libretro API (#2463)

This commit is contained in:
kwyxz
2018-04-19 10:03:49 -07:00
committed by fbrosson
parent 9ffe2fcc61
commit 68fbe7232c
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
SUMMARY="An Odyssey 2 / VideoPac emulator using the libretro API"
DESCRIPTION="This is the libretro port of O2EM, a Magnavox Odyssey 2 and \
Philips VideoPac emulator. These machines shared the same hardware and were \
rebranded depending on the market where they were sold."
HOMEPAGE="http://o2em.sourceforge.net/"
COPYRIGHT="1996-2018 Daniel Boris, the O2EM team, the libretro team"
LICENSE="Artistic"
REVISION="1"
srcGitRev="bdfb4000122bb32b9cabf46ffdaa4bcbc55f686b"
SOURCE_URI="https://github.com/libretro/libretro-o2em/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="ba62271504351539087dcdda0e8c7834615ee7121e56aadb86633ea552d10e6c"
SOURCE_FILENAME="libretro-o2em-${portVersion/_/-}-$srcGitRev.tar.gz"
SOURCE_DIR="libretro-o2em-$srcGitRev"
ADDITIONAL_FILES="o2em_libretro.info.in"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
o2em_libretro$secondaryArchSuffix = $portVersion
addon:o2em_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/o2em_libretro.info.in \
> o2em_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 \
o2em_libretro.info \
o2em_libretro.so
}