2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
2022-04-04 20:32:55 +00:00
# Copyright (C) 2022-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME = "raze"
2022-08-11 22:10:16 +00:00
PKG_VERSION = "7f18e9c54946ce98a5ed2dd485f5250d82ede323"
2022-02-05 14:23:32 +00:00
PKG_LICENSE = "GPL"
2022-04-07 23:18:33 +00:00
PKG_SITE = "https://github.com/coelckers/Raze"
2022-02-05 14:23:32 +00:00
PKG_URL = " ${ PKG_SITE } .git "
PKG_DEPENDS_TARGET = "toolchain SDL2 raze:host zmusic libvpx"
PKG_SHORTDESC = "Raze is a fork of Build engine games backed by GZDoom tech and combines Duke Nukem 3D, Blood, Redneck Rampage, Shadow Warrior and Exhumed/Powerslave in a single package."
PKG_LONGDESC = "Raze is a fork of Build engine games backed by GZDoom tech and combines Duke Nukem 3D, Blood, Redneck Rampage, Shadow Warrior and Exhumed/Powerslave in a single package."
GET_HANDLER_SUPPORT = "git"
PKG_TOOLCHAIN = "cmake-make"
2022-02-12 22:49:55 +00:00
PKG_PATCH_DIRS += " ${ DEVICE } "
2022-02-05 14:23:32 +00:00
p r e _ b u i l d _ h o s t ( ) {
HOST_CMAKE_OPTS = ""
}
m a k e _ h o s t ( ) {
cmake . -DNO_GTK= ON
make
}
m a k e i n s t a l l _ h o s t ( ) {
: #no
}
p r e _ c o n f i g u r e _ h o s t ( ) {
PKG_CMAKE_OPTS_HOST = " -DZMUSIC_LIBRARIES= $( get_build_dir zmusic) /build_host/source/libzmusic.so \
-DZMUSIC_INCLUDE_DIR= $( get_build_dir zmusic) /include"
}
p r e _ c o n f i g u r e _ t a r g e t ( ) {
PKG_CMAKE_OPTS_TARGET = " -DNO_GTK=ON \
-DFORCE_CROSSCOMPILE= ON \
2022-03-31 11:34:01 +00:00
-DIMPORT_EXECUTABLES= ${ PKG_BUILD } /.${ HOST_NAME } /ImportExecutables.cmake \
2022-02-05 14:23:32 +00:00
-DCMAKE_BUILD_TYPE= Release \
-DHAVE_GLES2= ON \
-DHAVE_VULKAN= OFF \
-DZMUSIC_LIBRARIES= $( get_build_dir zmusic) /build_target/source/libzmusic.so -DZMUSIC_INCLUDE_DIR= $( get_build_dir zmusic) /include"
}
m a k e i n s t a l l _ t a r g e t ( ) {
2022-03-31 11:34:01 +00:00
mkdir -p ${ INSTALL } /usr/bin
2022-04-01 00:48:51 +00:00
cp ${ PKG_DIR } /sources/start_raze.sh ${ INSTALL } /usr/bin/
2022-03-31 11:34:01 +00:00
cp ${ PKG_BUILD } /.${ TARGET_NAME } /raze ${ INSTALL } /usr/bin
2022-04-01 00:48:51 +00:00
chmod 0755 ${ INSTALL } /usr/bin/*
2022-03-31 11:34:01 +00:00
mkdir -p ${ INSTALL } /usr/config/game/raze
2022-08-19 04:36:54 +00:00
cp -rf ${ PKG_DIR } /config/games ${ INSTALL } /usr/config/game/raze
2022-08-19 01:37:51 +00:00
chmod 0755 ${ INSTALL } /usr/config/game/raze/games/*sh
2022-03-31 11:34:01 +00:00
if [ -d " ${ PKG_DIR } /config/ ${ DEVICE } " ]
then
2022-08-19 01:42:47 +00:00
cp -rf ${ PKG_DIR } /config/${ DEVICE } /* ${ INSTALL } /usr/config/game/raze
2022-03-31 11:34:01 +00:00
fi
cp ${ PKG_BUILD } /.${ TARGET_NAME } /*.pk3 ${ INSTALL } /usr/config/game/raze
cp -r ${ PKG_BUILD } /.${ TARGET_NAME } /soundfonts ${ INSTALL } /usr/config/game/raze
2022-02-05 14:23:32 +00:00
}