distribution/packages/games/libretro/citra/package.mk

35 lines
806 B
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)
PKG_NAME="citra"
2022-12-14 16:40:49 +00:00
PKG_VERSION="f0b09a5c0cb3767d43f5f8ca12a783012298fd44"
2022-09-29 03:58:19 +00:00
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/libretro/citra"
PKG_URL="$PKG_SITE.git"
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
}
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/libretro
cp citra_libretro.so $INSTALL/usr/lib/libretro/
}