1
0
This repository has been archived on 2024-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
Lakka-rk322x/packages/lakka/libretro_cores/fsuae/package.mk
2022-12-16 00:42:11 +02:00

36 lines
861 B
Makefile

PKG_NAME="fsuae"
PKG_VERSION="06e3030a46a6063aa0f7028c269d972f06c46d5d"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/libretro-fsuae"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain libmpeg2 openal-soft glib"
PKG_LONGDESC="FS-UAE amiga emulator libretro core."
#PKG_BUILD_FLAGS="-lto"
PKG_TOOLCHAIN="configure"
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
if [ "$PROJECT" = "RPi" ] ; then
PKG_CONFIGURE_OPTS_TARGET="--disable-jit --enable-neon"
fi
pre_configure_target() {
cd ${PKG_BUILD}
rm -rf .${TARGET_NAME}
export ac_cv_func_realloc_0_nonnull=yes
}
make_target() {
make CC=${HOST_CC} CFLAGS= gen
make CC=${CC}
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp -v fsuae_libretro.so ${INSTALL}/usr/lib/libretro/
mkdir -p ${INSTALL}/usr/share/fs-uae
cp -v fs-uae.dat ${INSTALL}/usr/share/fs-uae/
}