32 lines
1,018 B
Makefile
32 lines
1,018 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2022-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
|
|
|
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"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
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
|
|
|
|
make_target() {
|
|
make -C neo BASE=1
|
|
make -C neo D3XP=1
|
|
}
|
|
|
|
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/*
|
|
}
|