2023-09-18 16:15:36 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 13:59:09 +00:00
|
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
2023-09-18 16:15:36 +00:00
|
|
|
|
|
|
|
PKG_NAME="boom3-lr"
|
|
|
|
PKG_VERSION="0bea79abf5ec8262dfe9af73cb8c54ea6e2aeb98"
|
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://github.com/libretro/boom3"
|
|
|
|
PKG_URL="https://github.com/libretro/boom3/archive/${PKG_VERSION}.tar.gz"
|
2023-10-12 01:25:39 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2023-09-18 16:15:36 +00:00
|
|
|
PKG_LONGDESC="Doom3 - dhewm3 port to libretro."
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
|
|
|
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL}"
|
|
|
|
elif [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2023-10-12 01:25:39 +00:00
|
|
|
make_target() {
|
|
|
|
make -C neo BASE=1
|
|
|
|
make -C neo D3XP=1
|
2023-09-18 16:15:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp -v ${PKG_BUILD}/neo/boom3_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
|
|
cp -v ${PKG_BUILD}/neo/boom3_xp_libretro.so ${INSTALL}/usr/lib/libretro/
|
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/config/idtech
|
|
|
|
cp -rf ${PKG_DIR}/scripts/* ${INSTALL}/usr/config/idtech/
|
|
|
|
chmod 0755 ${INSTALL}/usr/config/idtech/*
|
|
|
|
}
|