mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
DevilutionX: bump, remove old (#4430)
* DevilutionX: bump, remove old * Fix MIDDLE
This commit is contained in:
@@ -1,84 +0,0 @@
|
||||
SUMMARY="Diablo build for modern operating systems"
|
||||
DESCRIPTION="This new effort is an open-source re-implementation of \
|
||||
Blizzard's Diablo game from 1996 while now working on Linux and other \
|
||||
operating systems nicely."
|
||||
HOMEPAGE="https://github.com/diasurgical/devilutionX"
|
||||
COPYRIGHT="2018 GalaXyHaXz"
|
||||
LICENSE="Public Domain"
|
||||
REVISION="1"
|
||||
srcGitRev="9af17fea8dc656a5ddd52daddd889959f0ec8e13"
|
||||
SOURCE_URI="https://github.com/diasurgical/devilutionX/archive/$srcGitRev.zip"
|
||||
CHECKSUM_SHA256="05bbbac4c939da485a34cb29e4f7e32eb87deb02d578c4c2f126b380d75693b2"
|
||||
SOURCE_DIR="devilutionX-$srcGitRev"
|
||||
ADDITIONAL_FILES="devilutionx.sh"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/diasurgical/devilution/diablo.ini
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
devilutionx$secondaryArchSuffix = $portVersion
|
||||
app:devilutionx$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_ttf$secondaryArchSuffix
|
||||
lib:libsodium$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsdl2$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_ttf$secondaryArchSuffix
|
||||
devel:libsodium$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build && cd haiku_build
|
||||
cmake ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
|
||||
local MAJOR="0"
|
||||
local MIDDLE="3"
|
||||
local MINOR="1"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
../resources/haiku/devilutionX.rdef.in > devilutionx.rdef
|
||||
|
||||
addResourcesToBinaries devilutionx.rdef devilutionx
|
||||
|
||||
mkdir -p $appsDir/DevilutionX
|
||||
cp devilutionx $appsDir/DevilutionX
|
||||
|
||||
# Installing start-script
|
||||
cp $portDir/additional-files/devilutionx.sh \
|
||||
$appsDir/DevilutionX
|
||||
chmod +x $appsDir/DevilutionX/devilutionx.sh
|
||||
|
||||
# Installing extra-attribs
|
||||
rc devilutionx.rdef
|
||||
resattr -o $appsDir/DevilutionX/devilutionx.sh \
|
||||
devilutionx.rsrc
|
||||
|
||||
addAppDeskbarSymlink $appsDir/DevilutionX/devilutionx.sh "DevilutionX"
|
||||
}
|
||||
@@ -5,9 +5,9 @@ operating systems nicely."
|
||||
HOMEPAGE="https://github.com/diasurgical/devilutionX"
|
||||
COPYRIGHT="2018 GalaXyHaXz"
|
||||
LICENSE="Public Domain"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/diasurgical/devilutionX/archive/$portVersion.zip"
|
||||
CHECKSUM_SHA256="9bc3e3f17338dea8d8d7d9829de1afe59e06865a5459e09f09b222045154da41"
|
||||
CHECKSUM_SHA256="31498d48ad97f392bc48e95393d504f5e255600cc65fe95a48324ec4bf66051c"
|
||||
SOURCE_DIR="devilutionX-$portVersion"
|
||||
ADDITIONAL_FILES="devilutionx.sh"
|
||||
|
||||
@@ -46,23 +46,28 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build && cd haiku_build
|
||||
cmake -DBINARY_RELEASE=ON ..
|
||||
mkdir -p build && cd build
|
||||
cmake .. \
|
||||
-DASAN=OFF \
|
||||
-DUBSAN=OFF \
|
||||
-DDEBUG=OFF \
|
||||
-DDIST=OFF \
|
||||
-DFASTER=OFF
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
cd build
|
||||
|
||||
local MAJOR="0"
|
||||
local MIDDLE="4"
|
||||
local MIDDLE="5"
|
||||
local MINOR="0"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
../resources/haiku/devilutionX.rdef.in > devilutionx.rdef
|
||||
../Packaging/haiku/devilutionX.rdef.in > devilutionx.rdef
|
||||
|
||||
addResourcesToBinaries devilutionx.rdef devilutionx
|
||||
|
||||
Reference in New Issue
Block a user