2022-04-16 12:53:05 +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="melonds-lr"
|
2023-04-14 10:22:45 +00:00
|
|
|
PKG_VERSION="c6488c88cb4c7583dbcd61609e0eef441572fae8"
|
2022-04-16 12:53:05 +00:00
|
|
|
PKG_REV="1"
|
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://git.libretro.com/libretro/melonDS"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-07-11 22:23:00 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
2022-04-16 12:53:05 +00:00
|
|
|
PKG_PRIORITY="optional"
|
|
|
|
PKG_SECTION="libretro"
|
2022-04-16 12:59:29 +00:00
|
|
|
PKG_SHORTDESC="MelonDS - Nintendo DS emulator for libretro"
|
2022-04-16 12:53:05 +00:00
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
|
2022-07-11 22:23:00 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
fi
|
|
|
|
|
2022-04-16 12:53:05 +00:00
|
|
|
pre_make_target() {
|
|
|
|
|
|
|
|
cd ${PKG_BUILD}
|
2022-08-31 22:42:33 +00:00
|
|
|
if [ -e "CMakeLists.txt" ]
|
|
|
|
then
|
|
|
|
rm CMakeLists.txt
|
|
|
|
fi
|
2022-04-16 12:53:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/libretro
|
|
|
|
cp melonds_libretro.so ${INSTALL}/usr/lib/libretro/
|
2022-04-16 12:53:05 +00:00
|
|
|
}
|