52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
SUMMARY="A 3D Engine using the libretro architecture"
|
|
DESCRIPTION="This 3D Engine for libretro GL with additional features \
|
|
(camera/location/...) should be compatible from libretro 3D/GLES 2.0 and up."
|
|
HOMEPAGE="https://github.com/libretro/libretro-3dengine"
|
|
COPYRIGHT="2014-2020 the libretro team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
srcGitRev="4fbe7cb2f90d3c8db994af60085fb2ac93677545"
|
|
SOURCE_URI="https://github.com/libretro/libretro-3dengine/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="a131509512d0ff7be250c218b91d700a2803d60041a9ea56be7be9bd4b805abc"
|
|
SOURCE_FILENAME="libretro-3dengine-$portVersion-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="libretro-3dengine-$srcGitRev"
|
|
ADDITIONAL_FILES="3dengine_libretro.info.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
3dengine_libretro$secondaryArchSuffix = $portVersion
|
|
addon:3dengine_libretro$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
retroarch$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
|
|
$portDir/additional-files/3dengine_libretro.info.in \
|
|
> 3dengine_libretro.info
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -m 0755 -d "$addOnsDir"/libretro
|
|
install -m 0644 -t "$addOnsDir"/libretro \
|
|
3dengine_libretro.info \
|
|
3dengine_libretro.so
|
|
}
|