2020-05-17 06:46:52 +00:00
|
|
|
SUMMARY="Community-maintained Star Wars Jedi Knight: Jedi Academy, story version"
|
|
|
|
DESCRIPTION="OpenJK is an effort by the JACoders group to maintain and improve the \
|
|
|
|
game engines on which the Jedi Academy (JA) and Jedi Outcast (JO) games run on, while \
|
|
|
|
maintaining full backwards compatibility with the existing games. This project does \
|
|
|
|
not attempt to rebalance or otherwise modify core gameplay.
|
|
|
|
|
|
|
|
Our aims are to:
|
|
|
|
* Improve the stability of the engine by fixing bugs and improving performance.
|
|
|
|
* Provide a clean base from which new JO and JA code modifications can be made.
|
|
|
|
|
|
|
|
Make available this engine to more operating systems.
|
|
|
|
Currently, the most stable portion of this project is the Jedi Academy multiplayer code, \
|
|
|
|
with the single player code in a reasonable state.
|
|
|
|
|
|
|
|
Rough support for Jedi Outcast single player is also available, however this should be \
|
|
|
|
considered heavily work in progress. This is not currently actively worked on or tested. \
|
|
|
|
OpenJK does not have Jedi Outcast multiplayer support."
|
|
|
|
HOMEPAGE="https://github.com/JACoders/OpenJK"
|
|
|
|
COPYRIGHT="2003 Activision"
|
|
|
|
LICENSE="GNU GPL v2"
|
2020-05-17 10:09:35 +00:00
|
|
|
REVISION="2"
|
2020-05-17 06:46:52 +00:00
|
|
|
srcGitRev="52030235f052772008d99e6ccb16de48e7ddb688"
|
|
|
|
SOURCE_URI="https://github.com/JACoders/OpenJK/archive/$srcGitRev.tar.gz"
|
|
|
|
CHECKSUM_SHA256="2b6fadf16cca2fdf4cce32f977e0d0aa34e2a19d1c596b996f9857b6a97c7d32"
|
|
|
|
SOURCE_DIR="OpenJK-$srcGitRev"
|
|
|
|
srcGitRev2="8a5551caf0c0a0fef76c2142afc23623ea937a59"
|
|
|
|
SOURCE_URI_2="https://github.com/EXL/BeGameLauncher/archive/$srcGitRev2.tar.gz"
|
|
|
|
CHECKSUM_SHA256_2="14bb125ec0d0ded707e7c38e6e621ab31ccf3f93b13ba69304e7b64b06075e1f"
|
|
|
|
SOURCE_DIR_2="BeGameLauncher-$srcGitRev2"
|
|
|
|
PATCHES="openjk_academy-$portVersion.patchset"
|
|
|
|
ADDITIONAL_FILES="openjk_academy.rdef.in"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2020-05-17 06:46:52 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
openjk_academy$secondaryArchSuffix = $portVersion
|
|
|
|
app:JediAcademy$secondaryArchSuffix = $portVersion
|
|
|
|
app:JediAcademyMP$secondaryArchSuffix = $portVersion
|
|
|
|
cmd:openjkded$secondaryArchSuffix = $portVersion
|
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libgl$secondaryArchSuffix
|
|
|
|
lib:libintl$secondaryArchSuffix
|
|
|
|
lib:libsdl2_2.0$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libgl$secondaryArchSuffix
|
|
|
|
devel:libintl$secondaryArchSuffix
|
|
|
|
devel:libsdl2_2.0$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:cmake
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:ld$secondaryArchSuffix
|
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=$appsDir/JediAcademy \
|
|
|
|
-DUseInternalZlib=ON \
|
|
|
|
-DUseInternalPNG=ON \
|
|
|
|
-DUseInternalJPEG=ON \
|
|
|
|
-DBuildJK2SPEngine=OFF \
|
|
|
|
-DBuildJK2SPGame=OFF \
|
|
|
|
-DBuildJK2SPRdVanilla=OFF \
|
|
|
|
-DBuildMPCGame=ON \
|
|
|
|
-DBuildMPDed=ON \
|
|
|
|
-DBuildMPEngine=ON \
|
|
|
|
-DBuildMPGame=ON \
|
|
|
|
-DBuildMPRdVanilla=ON \
|
|
|
|
-DBuildMPUI=ON \
|
|
|
|
-DBuildSPEngine=ON \
|
|
|
|
-DBuildSPGame=ON\
|
|
|
|
-DBuildSPRdVanilla=ON \
|
|
|
|
-DBuildTests=OFF
|
|
|
|
make $jobArgs
|
|
|
|
|
|
|
|
cd $sourceDir2
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DLAUNCHER=openjk_academy
|
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
cd build
|
|
|
|
|
|
|
|
mkdir -p $appsDir/JediAcademy/lib $binDir
|
|
|
|
|
|
|
|
cp openjk_sp.* $appsDir/JediAcademy/JediAcademy
|
|
|
|
cp openjk.* $appsDir/JediAcademy/JediAcademyMP
|
|
|
|
cp openjkded.* $appsDir/JediAcademy/openjkded
|
|
|
|
ln -s $appsDir/JediAcademy/openjkded $binDir/openjkded
|
|
|
|
|
|
|
|
cp code/{game,rd-vanilla}/*.so $appsDir/JediAcademy/lib
|
|
|
|
cp codemp/{game,cgame,rd-vanilla,ui}/*.so $appsDir/JediAcademy/lib
|
|
|
|
|
|
|
|
cp $sourceDir2/build/JediAcademyLauncher $appsDir/JediAcademy
|
|
|
|
|
|
|
|
local APP_SIGNATURE="application/x-vnd.JediAcademy"
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
|
|
local LONG_INFO="$SUMMARY"
|
|
|
|
sed \
|
|
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
|
|
$portDir/additional-files/openjk_academy.rdef.in > $sourceDir/build/openjk_academy.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/build/openjk_academy.rdef $appsDir/JediAcademy/JediAcademy
|
|
|
|
|
|
|
|
local APP_SIGNATURE="application/x-vnd.JediAcademyMP"
|
|
|
|
sed \
|
|
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
|
|
$portDir/additional-files/openjk_academy.rdef.in > $sourceDir/build/openjk_academy_mp.rdef
|
|
|
|
|
|
|
|
addResourcesToBinaries $sourceDir/build/openjk_academy_mp.rdef $appsDir/JediAcademy/JediAcademyMP
|
|
|
|
|
|
|
|
addAppDeskbarSymlink $appsDir/JediAcademy/JediAcademyLauncher "StarWars Jedi Knight: Jedi Academy"
|
|
|
|
}
|