distribution/packages/emulators/standalone/openbor/package.mk
fewtarius 984ad9d91d
* Update emulators, cores, and support packages.
* Correct a bug in our X-Box 360 Retroarch gamepad configuration file.
* Add mame to Game and Watch + enable on all devices (another docs update to follow).
* Enable EMMC on Powkiddy x55 to allow JELOS to be installed to it.
2024-01-17 22:10:37 +00:00

38 lines
1.6 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="openbor"
PKG_VERSION="e838382583583f6f74115cf230df56170ca10f8b"
PKG_ARCH="any"
PKG_SITE="https://github.com/DCurrent/openbor"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain SDL2 libogg libvorbisidec libvpx libpng"
PKG_SHORTDESC="OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!"
PKG_LONGDESC="OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!"
PKG_TOOLCHAIN="make"
GET_HANDLER_SUPPORT="git"
pre_configure_target() {
PKG_MAKE_OPTS_TARGET="BUILD_LINUX_${ARCH}=1 -C ${PKG_BUILD}/engine SDKPATH=${SYSROOT_PREFIX} PREFIX=${TARGET_NAME}"
cd ${PKG_BUILD}
#sed -i "s|device->mappings\[SDID_START\] = SDL_CONTROLLER_BUTTON_START;|device->mappings\[SDID_START\] = SDL_CONTROLLER_BUTTON_BACK;|g" engine/sdl/control.c
#sed -i "s|device->mappings\[SDID_SCREENSHOT\] = SDL_CONTROLLER_BUTTON_BACK;|device->mappings\[SDID_SCREENSHOT\] = SDL_CONTROLLER_BUTTON_START;|g" engine/sdl/control.c
sed -i "s|-Werror||g" engine/Makefile
}
pre_make_target() {
cd ${PKG_BUILD}/engine
chmod 0755 version.sh
./version.sh
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp OpenBOR ${INSTALL}/usr/bin/OpenBOR
cp ${PKG_DIR}/sources/start_OpenBOR.sh ${INSTALL}/usr/bin
chmod 0777 ${INSTALL}/usr/bin/*
mkdir -p ${INSTALL}/usr/config/openbor
cp ${PKG_DIR}/config/master.cfg ${INSTALL}/usr/config/openbor/master.cfg
}