distribution/packages/emulators/standalone/mupen64plus-sa/mupen64plus-sa-video-parallel/package.mk

56 lines
2 KiB
Makefile
Raw Normal View History

2023-06-08 14:57:02 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present RiShooty (https://github.com/rishooty)
PKG_NAME="mupen64plus-sa-video-parallel"
2023-06-08 21:25:18 +00:00
PKG_VERSION="7cae79e294f8762d2382a6f508aa4e476ea6f70d"
2023-06-08 14:57:02 +00:00
PKG_LICENSE="MIT"
2023-06-08 21:25:18 +00:00
PKG_SITE="https://github.com/rishooty/parallel-rdp-standalone.git"
2023-06-08 14:57:02 +00:00
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain mupen64plus-sa-core mupen64plus-sa-simplecore"
PKG_LONGDESC="Mupen64Plus Standalone Parallel64 Video Driver"
PKG_TOOLCHAIN="manual"
2023-06-08 21:25:18 +00:00
PKG_GIT_CLONE_BRANCH="ci-m64p"
2023-06-08 14:57:02 +00:00
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
2023-06-08 21:25:18 +00:00
make_target() {
case ${ARCH} in
aarch64|arm)
export HOST_CPU=aarch64
;;
x86_64)
export HOST_CPU=x86_64
PKG_MAKE_OPTS_TARGET+="USE_GLES=0"
;;
esac
make clean -C ${PKG_BUILD}/build
mkdir ${PKG_BUILD}/build
cd ${PKG_BUILD}/build
APIDIR=$(get_build_dir mupen64plus-sa-core)/.install_pkg/usr/local/include/mupen64plus
cmake -DAPIDIR=${APIDIR} ..
cmake --build . --parallel
cp ${PKG_BUILD}/build/mupen64plus-video-parallel.so ${PKG_BUILD}/build/mupen64plus-video-parallel-base.so
APIDIR=$(get_build_dir mupen64plus-sa-simplecore)/.install_pkg/usr/local/include/mupen64plus
cmake -DAPIDIR=${APIDIR} ..
cmake --build . --parallel
cp ${PKG_BUILD}/build/mupen64plus-video-parallel.so ${PKG_BUILD}/build/mupen64plus-video-parallel-simple.so
2023-06-08 14:57:02 +00:00
}
2023-06-08 21:25:18 +00:00
makeinstall_target() {
UPREFIX=${INSTALL}/usr/local
ULIBDIR=${UPREFIX}/lib
USHAREDIR=${UPREFIX}/share/mupen64plus
UPLUGINDIR=${ULIBDIR}/mupen64plus
mkdir -p ${UPLUGINDIR}
cp ${PKG_BUILD}/build/mupen64plus-video-parallel-base.so ${UPLUGINDIR}/mupen64plus-video-parallel.so
#${STRIP} ${UPLUGINDIR}/mupen64plus-video-parallel.so
chmod 0644 ${UPLUGINDIR}/mupen64plus-video-parallel.so
cp ${PKG_BUILD}/build/mupen64plus-video-parallel-simple.so ${UPLUGINDIR}
#${STRIP} ${UPLUGINDIR}/mupen64plus-video-parallel-simple.so
chmod 0644 ${UPLUGINDIR}/mupen64plus-video-parallel-simple.so
}