distribution/packages/games/libretro/beetle-saturn/package.mk

34 lines
954 B
Makefile
Raw Normal View History

2022-11-29 18:37:02 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present BrooksyTech (https://github.com/brooksytech)
PKG_NAME="beetle-saturn"
PKG_VERSION="c81603e585ae5c8591603facf9b0dba99032f8c9"
2022-11-29 18:37:02 +00:00
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/libretro/beetle-saturn-libretro"
2023-02-24 13:53:43 +00:00
PKG_URL="${PKG_SITE}.git"
2022-11-29 18:37:02 +00:00
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="libretro"
PKG_SHORTDESC="Beetle Saturn libretro, a fork from mednafen"
PKG_TOOLCHAIN="make"
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
2022-11-29 21:11:10 +00:00
make_target() {
2023-02-24 13:53:43 +00:00
if [ "${ARCH}" == "i386" -o "${ARCH}" == "x86_64" ]; then
make platform=unix CC=${CC} CXX=${CXX} AR=$AR
2022-11-29 21:11:10 +00:00
else
2023-02-24 13:53:43 +00:00
make platform=armv CC=${CC} CXX=${CXX} AR=$AR
2022-11-29 21:11:10 +00:00
fi
}
2022-11-29 18:37:02 +00:00
makeinstall_target() {
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/lib/libretro
cp mednafen_saturn_libretro.so ${INSTALL}/usr/lib/libretro/beetle_saturn_libretro.so
2022-11-29 18:37:02 +00:00
}