libretro-bsnes: fix for latest update

This commit is contained in:
CvH 2020-11-01 07:41:33 +01:00
parent 25ee50c880
commit 9c9b3810fd
6 changed files with 33 additions and 129 deletions

View File

@ -11,11 +11,11 @@ PKG_DEPENDS_TARGET="toolchain kodi-platform"
PKG_LONGDESC="game.libretro.beetle-bsnes-accuracy: Beetle bSNES for Kodi"
PKG_LIBNAME="bsnes_mercury_accuracy_libretro.so"
PKG_LIBPATH="out/$PKG_LIBNAME"
PKG_LIBPATH="$PKG_LIBNAME"
PKG_LIBVAR="BSNES-MERCURY-ACCURACY_LIB"
make_target() {
make profile=accuracy
make PROFILE=accuracy
}
makeinstall_target() {

View File

@ -1,35 +1,3 @@
From ed19aa8fbd4012ea2ccb74a2160855be01aba5e4 Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Sun, 5 Feb 2017 18:15:12 -0800
Subject: [PATCH 1/2] fix cross compile
---
Makefile | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 0ac8061..b76c4c6 100644
--- a/Makefile
+++ b/Makefile
@@ -51,13 +51,7 @@ else ifeq ($(pgo),optimize)
flags += -fprofile-use
endif
-ifeq ($(compiler),)
- ifneq ($(CXX),)
- compiler := $(CXX)
- else
- compiler := g++
- endif
-endif
+compiler = $(CXX)
# platform
ui := target-$(target)
--
2.9.3
From da71b9ec79482c31c37496019792da316626f1f2 Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Sun, 5 Feb 2017 20:40:42 -0800
@ -40,18 +8,18 @@ Subject: [PATCH 2/2] no -O3
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index b76c4c6..9622b5a 100644
index 948f5fb..04e585d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ sfc_lagfix := 1
ifeq ($(DEBUG), 1)
flags := -I. -O0 -g
else
- flags := -I. -O3 -fomit-frame-pointer
+ flags := -I. -fomit-frame-pointer
endif
@@ -459,7 +459,7 @@ OBJECTS := $(SOURCES_CXX:.cpp=.o) $(SOURCES_C:.c=.o)
all: $(TARGET)
cflags := $(CPPFLAGS) $(CFLAGS) -std=gnu99 -xc
ifeq ($(DEBUG),0)
- FLAGS += -O3 $(EXTRA_GCC_FLAGS)
+ FLAGS += $(EXTRA_GCC_FLAGS)
else
FLAGS += -O0 -g
endif
--
2.9.3

View File

@ -11,11 +11,11 @@ PKG_DEPENDS_TARGET="toolchain kodi-platform"
PKG_LONGDESC="game.libretro.beetle-bsnes-balanced: Beetle bSNES for Kodi"
PKG_LIBNAME="bsnes_mercury_balanced_libretro.so"
PKG_LIBPATH="out/$PKG_LIBNAME"
PKG_LIBPATH="$PKG_LIBNAME"
PKG_LIBVAR="BSNES-MERCURY-BALANCED_LIB"
make_target() {
make profile=balanced
make PROFILE=balanced
}
makeinstall_target() {

View File

@ -1,35 +1,3 @@
From ed19aa8fbd4012ea2ccb74a2160855be01aba5e4 Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Sun, 5 Feb 2017 18:15:12 -0800
Subject: [PATCH 1/2] fix cross compile
---
Makefile | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 0ac8061..b76c4c6 100644
--- a/Makefile
+++ b/Makefile
@@ -51,13 +51,7 @@ else ifeq ($(pgo),optimize)
flags += -fprofile-use
endif
-ifeq ($(compiler),)
- ifneq ($(CXX),)
- compiler := $(CXX)
- else
- compiler := g++
- endif
-endif
+compiler = $(CXX)
# platform
ui := target-$(target)
--
2.9.3
From da71b9ec79482c31c37496019792da316626f1f2 Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Sun, 5 Feb 2017 20:40:42 -0800
@ -40,18 +8,18 @@ Subject: [PATCH 2/2] no -O3
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index b76c4c6..9622b5a 100644
index 948f5fb..04e585d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ sfc_lagfix := 1
ifeq ($(DEBUG), 1)
flags := -I. -O0 -g
else
- flags := -I. -O3 -fomit-frame-pointer
+ flags := -I. -fomit-frame-pointer
endif
@@ -459,7 +459,7 @@ OBJECTS := $(SOURCES_CXX:.cpp=.o) $(SOURCES_C:.c=.o)
all: $(TARGET)
cflags := $(CPPFLAGS) $(CFLAGS) -std=gnu99 -xc
ifeq ($(DEBUG),0)
- FLAGS += -O3 $(EXTRA_GCC_FLAGS)
+ FLAGS += $(EXTRA_GCC_FLAGS)
else
FLAGS += -O0 -g
endif
--
2.9.3

View File

@ -11,11 +11,11 @@ PKG_DEPENDS_TARGET="toolchain kodi-platform"
PKG_LONGDESC="game.libretro.beetle-bsnes-performance: Beetle bSNES for Kodi"
PKG_LIBNAME="bsnes_mercury_performance_libretro.so"
PKG_LIBPATH="out/$PKG_LIBNAME"
PKG_LIBPATH="$PKG_LIBNAME"
PKG_LIBVAR="BSNES-MERCURY-PERFORMANCE_LIB"
make_target() {
make profile=performance
make PROFILE=performance
}
makeinstall_target() {

View File

@ -1,35 +1,3 @@
From ed19aa8fbd4012ea2ccb74a2160855be01aba5e4 Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Sun, 5 Feb 2017 18:15:12 -0800
Subject: [PATCH 1/2] fix cross compile
---
Makefile | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 0ac8061..b76c4c6 100644
--- a/Makefile
+++ b/Makefile
@@ -51,13 +51,7 @@ else ifeq ($(pgo),optimize)
flags += -fprofile-use
endif
-ifeq ($(compiler),)
- ifneq ($(CXX),)
- compiler := $(CXX)
- else
- compiler := g++
- endif
-endif
+compiler = $(CXX)
# platform
ui := target-$(target)
--
2.9.3
From da71b9ec79482c31c37496019792da316626f1f2 Mon Sep 17 00:00:00 2001
From: Lukas Rusak <lorusak@gmail.com>
Date: Sun, 5 Feb 2017 20:40:42 -0800
@ -40,18 +8,18 @@ Subject: [PATCH 2/2] no -O3
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index b76c4c6..9622b5a 100644
index 948f5fb..04e585d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ sfc_lagfix := 1
ifeq ($(DEBUG), 1)
flags := -I. -O0 -g
else
- flags := -I. -O3 -fomit-frame-pointer
+ flags := -I. -fomit-frame-pointer
endif
@@ -459,7 +459,7 @@ OBJECTS := $(SOURCES_CXX:.cpp=.o) $(SOURCES_C:.c=.o)
all: $(TARGET)
cflags := $(CPPFLAGS) $(CFLAGS) -std=gnu99 -xc
ifeq ($(DEBUG),0)
- FLAGS += -O3 $(EXTRA_GCC_FLAGS)
+ FLAGS += $(EXTRA_GCC_FLAGS)
else
FLAGS += -O0 -g
endif
--
2.9.3