mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-20 10:40:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
53 lines
1.3 KiB
Bash
53 lines
1.3 KiB
Bash
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="2"
|
|
SOURCE_URI="http://sourceforge.net/projects/premake/files/Premake/4.4/premake-4.4-beta5-src.zip"
|
|
CHECKSUM_SHA256="0fa1ed02c5229d931e87995123cdb11d44fcc8bd99bba8e8bb1bbc0aaa798161"
|
|
SOURCE_DIR="premake-4.4-beta5"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
premake$secondaryArchSuffix = $portVersion
|
|
cmd:premake4$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -i '/#define LUA_USE_ULONGJMP/d' src/host/lua-5.1.4/src/luaconf.h
|
|
sed -i '/-lm/d' build/gmake.unix/Premake4.make
|
|
sed -i 's/-rdynamic//g' build/gmake.unix/Premake4.make
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cd build/gmake.unix
|
|
make config=release
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd bin/release
|
|
mkdir -p $binDir
|
|
install -m 0755 premake4 $binDir
|
|
}
|