pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libretro-pcsx-rearmed: Make this work on my Banana Pi.
Module Name: pkgsrc-wip
Committed By: Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By: nee
Date: Tue Jun 6 00:38:30 2017 +0100
Changeset: cbd0cfd70f94cc505107af9f27db6a0ac02d54dc
Modified Files:
libretro-pcsx-rearmed/Makefile
libretro-pcsx-rearmed/options.mk
Log Message:
libretro-pcsx-rearmed: Make this work on my Banana Pi.
This seemed to assume that the configuration script got executed
during the build process (it didn't) and that libpng gets linked in
(it doesn't).
With the dynarec, Ridge Racer NTSC-J works but Spyro 2 PAL doesn't.
Pending further investigation.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cbd0cfd70f94cc505107af9f27db6a0ac02d54dc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libretro-pcsx-rearmed/Makefile | 11 ++---------
libretro-pcsx-rearmed/options.mk | 15 ++++++++++++---
2 files changed, 14 insertions(+), 12 deletions(-)
diffs:
diff --git a/libretro-pcsx-rearmed/Makefile b/libretro-pcsx-rearmed/Makefile
index 190f012478..0cfde9634a 100644
--- a/libretro-pcsx-rearmed/Makefile
+++ b/libretro-pcsx-rearmed/Makefile
@@ -21,18 +21,12 @@ BUILDLINK_TRANSFORM+= rm:-ldl
.include "../../mk/bsd.prefs.mk"
-.if !empty(MACHINE_ARCH:M*arm*hf)
-PCSX_REARMED_PLATFORM= ${MACHINE_ARCH}-hardfloat
-.else
-PCSX_REARMED_PLATFORM= unix
-.endif
-
-MAKE_ENV+= platform="${PCSX_REARMED_PLATFORM}"
-
.if !empty(MACHINE_ARCH:M*arm*)
# only ARM-specific options for now, and options framework
#insists on having at least one option, so only pull it in for ARM
.include "options.mk"
+CFLAGS+= -marm
+BUILD_MAKE_FLAGS+= ARCH=arm
.endif
do-install:
@@ -40,5 +34,4 @@ do-install:
${DESTDIR}${PREFIX}/lib/libretro/pcsx_rearmed_libretro.so
.include "../../devel/zlib/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/libretro-pcsx-rearmed/options.mk b/libretro-pcsx-rearmed/options.mk
index 263f82100c..6c781c57be 100644
--- a/libretro-pcsx-rearmed/options.mk
+++ b/libretro-pcsx-rearmed/options.mk
@@ -9,10 +9,19 @@ PKG_SUPPORTED_OPTIONS+= dynarec
PKG_SUGGESTED_OPTIONS+= dynarec
.endif
+.if !empty(MACHINE_ARCH:M*armv7*)
+PKG_SUPPORTED_OPTIONS+= simd
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdynarec)
-# enabled by default
-.else
-CONFIGURE_ARGS+= --disable-dynarec
+BUILD_MAKE_FLAGS+= DRC_CACHE_BASE=0
+BUILD_MAKE_FLAGS+= USE_DYNAREC=1
+.endif
+
+.if !empty(PKG_OPTIONS:Msimd)
+CFLAGS+= -mfpu=neon # needed for assembly code to work
+BUILD_MAKE_FLAGS+= HAVE_NEON=1
+BUILD_MAKE_FLAGS+= BUILTIN_GPU=neon
.endif
Home |
Main Index |
Thread Index |
Old Index