mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Entropia Engine++
This commit is contained in:
89
games-engines/eepp/eepp-hg.recipe
Normal file
89
games-engines/eepp/eepp-hg.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="A C++ 2D game engine designed for an easy cross-platform game development"
|
||||
DESCRIPTION="
|
||||
Entropia Engine++ is a C++ 2D game engine designed for an easy \
|
||||
cross-platform game development.
|
||||
"
|
||||
HOMEPAGE="http://bitbucket.org/SpartanJ/eepp"
|
||||
SRC_URI="hg+http://bitbucket.org/SpartanJ/eepp#7318464094366388344fe30e58f521c6b46781b6"
|
||||
REVISION="1"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2011-2014 Martín Lucas Golini"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
eepp$secondaryArchSuffix = $portVersion
|
||||
lib:libeepp$secondaryArchSuffix = $portVersion
|
||||
lib:libeepp_debug$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libsdl2$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
soil2$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libgcc_s$secondaryArchSuffix
|
||||
lib:libstdc++$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsdl2$secondaryArchSuffix
|
||||
devel:libopenal$secondaryArchSuffix
|
||||
soil2${secondaryArchSuffix}_devel
|
||||
devel:libgl$secondaryArchSuffix
|
||||
lib:libgcc_s$secondaryArchSuffix
|
||||
lib:libstdc++$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:premake4$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:hg
|
||||
"
|
||||
|
||||
SOURCE_DIR=""
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src/eepp/helper
|
||||
rm -rf SOIL2
|
||||
hg clone http://bitbucket.org/SpartanJ/soil2 SOIL2 -r 5ebbd585ec79022bf94db977c0e56eae374e7156
|
||||
sed -i '/targetname "soil2"/a \
|
||||
\
|
||||
configuration "haiku" \
|
||||
buildoptions{ "-march=native" }' SOIL2/premake4.lua
|
||||
cd ../../..
|
||||
premake4 gmake --os=haiku
|
||||
cd make/haiku
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $includeDir
|
||||
mkdir -p $developLibDir
|
||||
mkdir -p $libDir
|
||||
cp -r include/* $includeDir/
|
||||
cp libs/haiku/lib*.a $developLibDir/
|
||||
cp libs/haiku/lib*.so $libDir/
|
||||
|
||||
prepareInstalledDevelLibs libeepp-debug
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
eepp${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libeepp$secondaryArchSuffix = $portVersion
|
||||
devel:libeepp_debug$secondaryArchSuffix = $portVersion
|
||||
devel:libeepp_main$secondaryArchSuffix = $portVersion
|
||||
devel:libeepp_static_debug$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
eepp$secondaryArchSuffix == $portVersion
|
||||
"
|
||||
Reference in New Issue
Block a user