distribution/packages/emulators/libretro/desmume/package.mk

32 lines
810 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="desmume"
2023-03-14 21:59:38 +00:00
PKG_VERSION="fbd368c8109f95650e1f81bca1facd6d4d8687d7"
PKG_LICENSE="GPLv2"
PKG_SITE="https://git.libretro.com/libretro/desmume"
2023-02-24 13:53:43 +00:00
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain libpcap"
PKG_PRIORITY="optional"
PKG_SECTION="libretro"
PKG_SHORTDESC="DeSmuME - Nintendo DS 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_configure_target() {
cd ${PKG_BUILD}/desmume/src/frontend/libretro
}
makeinstall_target() {
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/lib/libretro
cp desmume_libretro.so ${INSTALL}/usr/lib/libretro/
}