58769c80d3
* Update games to use .config/game/configs moving configurations out of the system config root. * Split modules into a separate package (packages/misc/modules). * Remove some unused packages and move a few virtual packages to packages/virtual.
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="lzdoom"
|
|
PKG_VERSION="f8b3a07637d4a0d8c8cd72a66b8e75ee61d92d16"
|
|
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"
|
|
|
|
PKG_PATCH_DIRS+="${DEVICE}"
|
|
|
|
pre_build_host() {
|
|
HOST_CMAKE_OPTS=""
|
|
}
|
|
|
|
make_host() {
|
|
cmake . -DNO_GTK=ON
|
|
make
|
|
}
|
|
|
|
makeinstall_host() {
|
|
: #no
|
|
}
|
|
|
|
pre_configure_target() {
|
|
PKG_CMAKE_OPTS_TARGET=" -DNO_GTK=ON \
|
|
-DFORCE_CROSSCOMPILE=ON \
|
|
-DIMPORT_EXECUTABLES=$PKG_BUILD/.$HOST_NAME/ImportExecutables.cmake \
|
|
-DCMAKE_BUILD_TYPE=Release"
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p $INSTALL/usr/bin
|
|
cp $PKG_DIR/lzdoom.sh $INSTALL/usr/bin/
|
|
cp $PKG_BUILD/.$TARGET_NAME/lzdoom $INSTALL/usr/bin
|
|
|
|
mkdir -p $INSTALL/usr/config/game/lzdoom
|
|
cp $PKG_DIR/config/${DEVICE}/* $INSTALL/usr/config/game/lzdoom
|
|
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
|
|
}
|