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

33 lines
978 B
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="018ee72b4fe247b38ed161033ad12a19bb936f00"
PKG_SHA256="1dd5d92adc5db29e03ee493cbfea4406de9a4b9c0e90106dd7e1bf8ed1e1d208"
PKG_ARCH="any"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/mupen64plus-libretro-nx"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain nasm:host $OPENGLES"
PKG_SECTION="libretro"
PKG_SHORTDESC="mupen64plus NX"
PKG_LONGDESC="mupen64plus NX"
PKG_TOOLCHAIN="make"
PKG_BUILD_FLAGS="-lto"
pre_configure_target() {
sed -e "s|^GIT_VERSION ?.*$|GIT_VERSION := \" ${PKG_VERSION:0:7}\"|" -i Makefile
if [ $ARCH == "arm" ]; then
sed -i "s|cortex-a53|cortex-a35|g" Makefile
PKG_MAKE_OPTS_TARGET+=" platform=odroidgoa"
else
PKG_MAKE_OPTS_TARGET+=" platform=amlogic64"
fi
}
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/libretro
cp mupen64plus_next_libretro.so $INSTALL/usr/lib/libretro/
}