mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 14:56:18 +00:00
32 lines
1.2 KiB
Makefile
32 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="libretro-dosbox-pure"
|
|
PKG_VERSION="4fdb557e415698aae5bd90b076f76437f5e9b0b4"
|
|
PKG_SHA256="a523019fd18123eda4dfd04d5ea458d24ce670c0c30c9ce01b2b9be94870968e"
|
|
PKG_LICENSE="GPLv2"
|
|
PKG_SITE="https://github.com/libretro/dosbox-pure"
|
|
PKG_URL="https://github.com/libretro/dosbox-pure/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
PKG_LONGDESC="DOSBox Pure is a fork of DOSBox, an emulator for DOS games, built for RetroArch/Libretro aiming for simplicity and ease of use."
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_LIBNAME="dosbox_pure_libretro.so"
|
|
PKG_LIBPATH="${PKG_LIBNAME}"
|
|
PKG_LIBVAR="DOSBOX-PURE_LIB"
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
make_target() {
|
|
# remove optimization from CFLAGS, set via Makefile
|
|
CFLAGS="${CFLAGS//-O3/}"
|
|
CFLAGS="${CFLAGS//-O2/}"
|
|
make CXX=${CXX} CPUFLAGS="${CFLAGS}"
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}
|
|
cp ${PKG_LIBPATH} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME}
|
|
echo "set(${PKG_LIBVAR} ${SYSROOT_PREFIX}/usr/lib/${PKG_LIBNAME})" > ${SYSROOT_PREFIX}/usr/lib/cmake/${PKG_NAME}/${PKG_NAME}-config.cmake
|
|
}
|