forked from libretro/Lakka-LibreELEC
33 lines
1.1 KiB
Makefile
33 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-beetle-pcfx"
|
|
PKG_VERSION="7bbe18c328be977b6d00102a0a08966acb8f536d"
|
|
PKG_SHA256="38dcaaa39974e938b8b7c75cb626a16ad39cb81628042558d184b7d738277b07"
|
|
PKG_LICENSE="GPLv2"
|
|
PKG_SITE="https://github.com/libretro/beetle-pcfx-libretro"
|
|
PKG_URL="https://github.com/libretro/beetle-pcfx-libretro/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="libretro implementation of Mednafen PC-FX."
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
if [ "${ARCH}" = "x86_64" ]; then
|
|
PKG_MAKE_OPTS_TARGET="platform=unix"
|
|
else
|
|
PKG_MAKE_OPTS_TARGET="platform=armv"
|
|
fi
|
|
|
|
pre_make_target() {
|
|
PKG_MAKE_OPTS_TARGET+=" CC=${CC} CXX=${CXX} AR=${AR}"
|
|
}
|
|
|
|
PKG_LIBNAME="mednafen_pcfx_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="BEETLE-PCFX_LIB"
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}
|
|
cp ${PKG_LIBPATH} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME}
|
|
echo "set(${PKG_LIBVAR} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME})" > ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}/${PKG_NAME}-config.cmake
|
|
}
|