2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME = "lzdoom"
2022-04-18 21:25:10 +00:00
PKG_VERSION = "2ee3ea91bc9c052b3143f44c96d85df22851426f"
2022-02-05 14:23:32 +00:00
PKG_LICENSE = "GPL"
PKG_SITE = "https://github.com/351ELEC/lzdoom"
PKG_URL = " ${ PKG_SITE } .git "
PKG_DEPENDS_TARGET = "toolchain SDL2 lzdoom:host"
PKG_SHORTDESC = "LZDoom"
PKG_LONGDESC = "ZDoom is a family of enhanced ports of the Doom engine for running on modern operating systems. It runs on Windows, Linux, and OS X, and adds new features not found in the games as originally published by id Software."
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 _ t a r g e t ( ) {
PKG_CMAKE_OPTS_TARGET = " -DNO_GTK=ON \
-DFORCE_CROSSCOMPILE= ON \
2022-03-30 19:56:12 +00:00
-DIMPORT_EXECUTABLES= ${ PKG_BUILD } /.$HOST_NAME /ImportExecutables.cmake \
2022-02-05 14:23:32 +00:00
-DCMAKE_BUILD_TYPE= Release"
}
m a k e i n s t a l l _ t a r g e t ( ) {
2022-03-30 19:56:12 +00:00
mkdir -p ${ INSTALL } /usr/bin
2022-04-01 00:48:51 +00:00
cp ${ PKG_DIR } /sources/start_lzdoom.sh ${ INSTALL } /usr/bin/
2022-03-30 19:56:12 +00:00
cp ${ PKG_BUILD } /.$TARGET_NAME /lzdoom ${ INSTALL } /usr/bin
2022-04-01 00:48:51 +00:00
chmod 0755 ${ INSTALL } /usr/bin/*
2022-03-30 19:56:12 +00:00
mkdir -p ${ INSTALL } /usr/config/game/lzdoom
if [ -d " ${ PKG_DIR } /config/ ${ DEVICE } " ]
then
cp ${ PKG_DIR } /config/${ DEVICE } /* ${ INSTALL } /usr/config/game/lzdoom
fi
cp ${ PKG_BUILD } /.$TARGET_NAME /*.pk3 ${ INSTALL } /usr/config/game/lzdoom
cp -r ${ PKG_BUILD } /.$TARGET_NAME /soundfonts ${ INSTALL } /usr/config/game/lzdoom
cp -r ${ PKG_BUILD } /.$TARGET_NAME /fm_banks ${ INSTALL } /usr/config/game/lzdoom
2022-02-05 14:23:32 +00:00
}