distribution/packages/games/libretro/mupen64plus-nx/package.mk

42 lines
1 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
PKG_NAME="mupen64plus-nx"
PKG_VERSION="bc241538b9ef85d8b22c392d7699dc73f460e283"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/mupen64plus-libretro-nx"
2022-05-27 22:33:28 +00:00
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
2022-07-20 23:02:00 +00:00
PKG_DEPENDS_TARGET="toolchain nasm:host"
2022-02-05 14:23:32 +00:00
PKG_SECTION="libretro"
PKG_SHORTDESC="mupen64plus NX"
PKG_LONGDESC="mupen64plus NX"
PKG_TOOLCHAIN="make"
PKG_BUILD_FLAGS="-lto"
PKG_PATCH_DIRS+="${DEVICE}"
2022-07-20 23:02:00 +00:00
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
2022-02-05 14:23:32 +00:00
pre_configure_target() {
2022-09-01 00:32:15 +00:00
sed -e "s|^GIT_VERSION ?.*$|GIT_VERSION := \" ${PKG_VERSION:0:7}\"|" -i Makefile
2022-08-31 23:07:29 +00:00
case ${DEVICE} in
RG552)
PKG_MAKE_OPTS_TARGET=" platform=RK3399"
;;
RG503|RG353P)
PKG_MAKE_OPTS_TARGET=" platform=RK3566"
;;
esac
2022-02-05 14:23:32 +00:00
}
makeinstall_target() {
2022-05-27 22:33:28 +00:00
mkdir -p ${INSTALL}/usr/lib/libretro
cp mupen64plus_next_libretro.so ${INSTALL}/usr/lib/libretro/
2022-02-05 14:23:32 +00:00
}