diff options
author | Bart Ribbers <bribbers@disroot.org> | 2020-01-03 12:08:02 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-03 19:13:49 +0100 |
commit | 3a58a8d1301726b7ca7181348292908b28a1f704 (patch) | |
tree | d43ef4addce7181ea4eedcef8533e32b0d6efa40 /community/libretro-bsnes | |
parent | 6b7b1935639c99ada3b2455029f693ca77015b7b (diff) | |
download | aports-3a58a8d1301726b7ca7181348292908b28a1f704.tar.bz2 aports-3a58a8d1301726b7ca7181348292908b28a1f704.tar.xz |
community/libretro-bsnes: move from testing
Diffstat (limited to 'community/libretro-bsnes')
-rw-r--r-- | community/libretro-bsnes/APKBUILD | 27 | ||||
-rw-r--r-- | community/libretro-bsnes/flags.patch | 33 |
2 files changed, 60 insertions, 0 deletions
diff --git a/community/libretro-bsnes/APKBUILD b/community/libretro-bsnes/APKBUILD new file mode 100644 index 0000000000..c437d9e655 --- /dev/null +++ b/community/libretro-bsnes/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=libretro-bsnes +pkgver=0_git20191009 +pkgrel=0 +_commit="feb8c10c672094e689ed057a278c2b354e113f32" +arch="all" +url="https://github.com/libretro/bsnes-libretro" +pkgdesc="Super Nintendo Entertainment System (Famicon) core" +license="GPL-3.0-only" +source="$pkgname-$_commit.tar.gz::https://github.com/libretro/bsnes-libretro/archive/$_commit.tar.gz" +builddir="$srcdir/bsnes-libretro-$_commit" +options="!check" # No tests + +build() { + for p in accuracy balanced performance; do + make profile=$p + done +} + +package() { + for p in accuracy balanced performance; do + install -Dm644 out/bsnes2014_${p}_libretro.so "$pkgdir"/usr/lib/libretro/bsnes2014_${p}_libretro.so + done +} + +sha512sums="fe318ea28cf37385dd30806cce79aef318fe9a2f6169da1e8051ccb898cfa0b0ef4d8e19e2098713b85de6277cab02f5bd515222257dddb76e0eb9da39a239d4 libretro-bsnes-feb8c10c672094e689ed057a278c2b354e113f32.tar.gz" diff --git a/community/libretro-bsnes/flags.patch b/community/libretro-bsnes/flags.patch new file mode 100644 index 0000000000..aa05ec1dfc --- /dev/null +++ b/community/libretro-bsnes/flags.patch @@ -0,0 +1,33 @@ +diff -rupN libretro-bsnes.orig/.git/FETCH_HEAD libretro-bsnes/.git/FETCH_HEAD +--- libretro-bsnes.orig/.git/FETCH_HEAD 1970-01-01 01:00:00.000000000 +0100 ++++ libretro-bsnes/.git/FETCH_HEAD 2018-12-07 18:31:25.943337424 +0100 +@@ -0,0 +1,3 @@ ++2a0b1a4f0b47100a781e025b085cb7ed88798527 not-for-merge branch '096' of /home/alucryd/Packages/src/libretro-bsnes ++c6e90ddcdfdc5ca1b56319df662912b3c026d78f not-for-merge branch 'libretro' of /home/alucryd/Packages/src/libretro-bsnes ++95350550af6c76b57593dea980b5c3a27e5bf09e not-for-merge branch 'master' of /home/alucryd/Packages/src/libretro-bsnes +Binary files libretro-bsnes.orig/.git/index and libretro-bsnes/.git/index differ +diff -rupN libretro-bsnes.orig/Makefile libretro-bsnes/Makefile +--- libretro-bsnes.orig/Makefile 2018-12-07 18:09:48.766873570 +0100 ++++ libretro-bsnes/Makefile 2018-12-07 18:22:39.006021877 +0100 +@@ -32,7 +32,8 @@ sfc_lagfix := 1 + ifeq ($(DEBUG), 1) + flags := -I. -Ilibco -O0 -g + else +- flags := -I. -Ilibco -O3 -fomit-frame-pointer ++ flags := $(CFLAGS) -I. -Ilibco -fomit-frame-pointer ++ link := $(LDFLAGS) + endif + + cflags := -std=gnu99 -xc +diff -rupN libretro-bsnes.orig/target-libretro/Makefile libretro-bsnes/target-libretro/Makefile +--- libretro-bsnes.orig/target-libretro/Makefile 2018-12-07 18:09:48.813540589 +0100 ++++ libretro-bsnes/target-libretro/Makefile 2018-12-07 18:31:23.149982988 +0100 +@@ -46,7 +46,7 @@ obj/libretro-$(profile).o: $(ui)/libretr + #targets + build: $(objects) + ifeq ($(platform),linux) +- $(compiler) -o out/bsnes_$(profile)_libretro.so -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T ++ $(compiler) -o out/bsnes_$(profile)_libretro.so $(link) -shared $(objects) -ldl -Wl,--no-undefined -Wl,--version-script=$(ui)/link.T + else ifneq (,$(findstring ios,$(platform))) + ifeq ($(platform),ios-arm64) + $(compiler) -o out/bsnes_$(profile)_libretro_ios.dylib -dynamiclib $(objects) -isysroot $(IOSSDK) -arch arm64 |