openjazz, new recipe, Co-Authered by Przemysław Buczkowski (#3544)

* openjazz, new recipe, Co-Authered by Przemysław Buczkowski
This commit is contained in:
Schrijvers Luc
2019-01-23 17:42:21 +01:00
committed by GitHub
parent 914b192f66
commit 7ea0ea1048
3 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
SUMMARY="A free, open-source version of classic Jazz Jackrabbit games"
DESCRIPTION="A free, open-source version of classic Jazz Jackrabbit games.\
Requires the original game data to work.\
Please put the data into the folder:\
~/config/non-packaged/Data/openjazz"
HOMEPAGE="https://github.com/AlisterT/openjazz"
COPYRIGHT="Alister Thomson"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/AlisterT/openjazz/releases/download/$portVersion/openjazz-$portVersion.tar.xz"
CHECKSUM_SHA256="91341adcc4908db12aad6b82d2fb0125429a26585f65d7eb32d403656313eaab"
SOURCE_DIR="openjazz-$portVersion"
ADDITIONAL_FILES="openjazz.rdef"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
PROVIDES="
openjazz = $portVersion
app:OpenJazz = $portVersion
"
REQUIRES="
haiku
lib:libsdl
# lib:libxmp
lib:libmodplug
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
# devel:libxmp
devel:libmodplug
devel:libz
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:awk
cmd:gcc
cmd:make
cmd:pkg_config
"
BUILD()
{
autoreconf -vfi
runConfigure --omit-dirs binDir \
./configure --bindir=$appsDir
make $jobArgs
}
INSTALL()
{
make install
# remove unneeded data for Haiku
rm -rf "$dataDir"/icons
rm -rf "$dataDir"/applications
addResourcesToBinaries \
$portDir/additional-files/openjazz.rdef $appsDir/OpenJazz
addAppDeskbarSymlink $appsDir/OpenJazz
}