premake: Add 5.0.0~alpha14git (alpha14 + Haiku git fixes)

Didn't want to wait for a proper release as I need it for nativefiledialog.

Managed to build it once so it should work.
This commit is contained in:
François Revol
2019-10-15 04:42:26 +02:00
parent 261fabd6d1
commit 6ff1ba6abf

View File

@@ -0,0 +1,49 @@
SUMMARY="Powerfully simple build configuration"
DESCRIPTION="\
Describe your software project with a full-featured scripting language and \
let Premake write the build scripts for you. With one file your project can \
support both IDE-addicted Windows coders and Linux command-line junkies!"
HOMEPAGE="http://industriousone.com/premake"
COPYRIGHT="2012 Industrious One, LLC"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/premake/premake-core/archive/b02c495d024ea72966bc0b5d448d21c7149f69c2.zip"
CHECKSUM_SHA256="eed7555ce858075fc68e9584a3b179aac1be7d32a8227f1fe2928d0ead8579e1"
SOURCE_DIR="premake-core-b02c495d024ea72966bc0b5d448d21c7149f69c2"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandBinDir=$prefix/bin
fi
PROVIDES="
premake$secondaryArchSuffix = $portVersion
cmd:premake5 = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
make -f Bootstrap.mak haiku
}
INSTALL()
{
cd bin/release
mkdir -p $commandBinDir
install -m 0755 premake5 $commandBinDir
}