distribution/packages/emulators/libretro/citra-lr/package.mk

49 lines
1.4 KiB
Makefile
Raw Normal View History

2022-09-29 03:58:19 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
2023-03-17 21:06:43 +00:00
PKG_NAME="citra-lr"
2023-03-01 23:15:40 +00:00
PKG_VERSION="d7e1612c17b1acb5d5eb68bb046820db49aeea5e"
2022-09-29 03:58:19 +00:00
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/libretro/citra"
2023-02-24 13:53:43 +00:00
PKG_URL="${PKG_SITE}.git"
2022-09-29 03:58:19 +00:00
PKG_DEPENDS_TARGET="toolchain boost"
PKG_SECTION="libretro"
PKG_SHORTDESC="Citra - Nintendo 3DS emulator for libretro"
PKG_TOOLCHAIN="make"
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
pre_make_target() {
cd ${PKG_BUILD}
if [ -e "CMakeLists.txt" ]
then
rm CMakeLists.txt
fi
2023-04-22 14:23:31 +00:00
PKG_MAKE_OPTS_TARGET="GIT_REV=${PKG_VERSION:0:7} \
HAVE_FFMPEG_STATIC=1 \
FFMPEG_DISABLE_VDPAU=1 \
HAVE_FFMPEG_CROSSCOMPILE=1 \
FFMPEG_XC_CPU=${TARGET_CPU} \
FFMPEG_XC_ARCH=${TARGET_ARCH} \
FFMPEG_XC_PREFIX=${TARGET_PREFIX} \
FFMPEG_XC_SYSROOT=${SYSROOT_PREFIX} \
FFMPEG_XC_NM=${NM} \
FFMPEG_XC_AR=${AR} \
FFMPEG_XC_AS=${CC} \
FFMPEG_XC_CC=${CC} \
FFMPEG_XC_LD=${CC}"
2022-09-29 03:58:19 +00:00
}
makeinstall_target() {
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/lib/libretro
cp citra_libretro.so ${INSTALL}/usr/lib/libretro/
2022-09-29 03:58:19 +00:00
}