pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libretro-mgba: Add SIMD on armv6/armv7
Module Name: pkgsrc-wip
Committed By: Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By: nee
Date: Sat Jun 10 10:10:33 2017 +0100
Changeset: d4a14689a000238815d17fd8b83bb2810e99b7d2
Modified Files:
libretro-mgba/Makefile
Added Files:
libretro-mgba/options.mk
Log Message:
libretro-mgba: Add SIMD on armv6/armv7
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d4a14689a000238815d17fd8b83bb2810e99b7d2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libretro-mgba/Makefile | 6 ++++++
libretro-mgba/options.mk | 16 ++++++++++++++++
2 files changed, 22 insertions(+)
diffs:
diff --git a/libretro-mgba/Makefile b/libretro-mgba/Makefile
index fb86df07ca..b2970428a3 100644
--- a/libretro-mgba/Makefile
+++ b/libretro-mgba/Makefile
@@ -21,4 +21,10 @@ do-install:
${INSTALL_LIB} ${WRKSRC}/mgba_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/mgba_libretro.so
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if !empty(MACHINE_ARCH:M*armv6*) || !empty(MACHINE_ARCH:M*armv7*)
+.include "options.mk"
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/libretro-mgba/options.mk b/libretro-mgba/options.mk
new file mode 100644
index 0000000000..3bddfd9781
--- /dev/null
+++ b/libretro-mgba/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libretro-mgba
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if !empty(MACHINE_ARCH:M*armv6*) || !empty(MACHINE_ARCH:M*armv7*)
+PKG_SUPPORTED_OPTIONS+= simd
+PKG_SUGGESTED_OPTIONS+= simd
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msimd)
+BUILD_MAKE_FLAGS+= HAVE_NEON=1
+.endif
Home |
Main Index |
Thread Index |
Old Index