libretro-dosbox-pure: fix URL and build

add patch to disable CPU-guessing from /proc/cpuinfo and adding
ARM optimization flags

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2021-10-09 23:35:44 +02:00
parent 3f8a42f7ce
commit e71ade56d0
2 changed files with 24 additions and 2 deletions

View File

@ -5,8 +5,8 @@ PKG_NAME="libretro-dosbox-pure"
PKG_VERSION="4d70760d65140c97634d2d6e8a9876e571790670"
PKG_SHA256="4f9a260dc097eb357e68b81d87c72a38a3ca2bef16898f4d0385e8b73fad50b7"
PKG_LICENSE="GPLv2"
PKG_SITE="https://github.com/schellingb/dosbox-pure"
PKG_URL="https://github.com/schellingb/dosbox-pure/archive/${PKG_VERSION}.tar.gz"
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 kodi-platform"
PKG_LONGDESC="game.libretro.dosbox-pure: DOSBox-Pure for Kodi"
PKG_BUILD_FLAGS="+pic"

View File

@ -0,0 +1,22 @@
diff --git a/Makefile b/Makefile
index fed5ce1..6f1b23c 100644
--- a/Makefile
+++ b/Makefile
@@ -150,6 +150,9 @@ else
CXX ?= g++
LDFLAGS := -Wl,--gc-sections -fno-ident
COMMONFLAGS += -pthread
+ifeq (1,1) # always
+ CPUFLAGS :=
+else
# ARM optimizations
PROCCPU := $(shell cat /proc/cpuinfo))
ifneq ($(and $(filter ARMv7,$(PROCCPU)),$(filter neon,$(PROCCPU))),)
@@ -174,6 +177,7 @@ else
CXX := g++-9
endif
endif
+endif
ifeq ($(BUILD),DEBUG)
BUILDDIR := debug