From 5272d1275b8469b0f7ece0a8970c99b98e75ef87 Mon Sep 17 00:00:00 2001 From: AlexanderR Date: Tue, 29 Oct 2013 11:31:36 +1100 Subject: [PATCH] Added Yabause --- metadata/org.yabause.android.txt | 34 ++++++++++++++++++++ metadata/org.yabause.android/toolchain.patch | 14 ++++++++ 2 files changed, 48 insertions(+) create mode 100644 metadata/org.yabause.android.txt create mode 100644 metadata/org.yabause.android/toolchain.patch diff --git a/metadata/org.yabause.android.txt b/metadata/org.yabause.android.txt new file mode 100644 index 0000000000..f2b0d41f78 --- /dev/null +++ b/metadata/org.yabause.android.txt @@ -0,0 +1,34 @@ +Category:Games +License:GPLv2+ +Web Site:http://yabause.org +Source Code:http://sourceforge.net/p/yabause/code/ +Issue Tracker:http://sourceforge.net/projects/yabause/support +Donate:http://sourceforge.net/p/yabause/donate/ + +Summary:Sega Saturn emulator +Description: +Yabause support booting games using Saturn cds or iso files. BIOS (optional) should be placed into +/sdcard/yabause/bios and games go in /sdcard/yabause/games. + +[Compatibility list http://yabause.org/compatibility-list/] + +Status: ALPHA +. + +Repo Type:git +Repo:http://svn.code.sf.net/p/yabause/code/trunk/ + +# r3136 is the last, known to work for sure +Build Version:0.9.11,1,3136,buildjni=no,subdir=yabause/src/android,patch=toolchain.patch,\ +build=\ + cd ../.. && \ + export PATH="$PATH:$$NDK$$/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin" && \ + export ANDROID_NDK="$$NDK$$" && \ + cmake -DCMAKE_TOOLCHAIN_FILE=src/android/android.cmake \ + -DNDK_BUILD=$$NDK$$/ndk-build -DSDK_ANDROID=$$SDK$$/tools/android \ + -DYAB_PORTS=android . && make + +Auto Update Mode:None +Update Check Mode:None +Current Version:0.9.11 +Current Version Code:1 diff --git a/metadata/org.yabause.android/toolchain.patch b/metadata/org.yabause.android/toolchain.patch new file mode 100644 index 0000000000..43eb0825e5 --- /dev/null +++ b/metadata/org.yabause.android/toolchain.patch @@ -0,0 +1,14 @@ +--- a/yabause/src/android/android.cmake ++++ b/yabause/src/android/android.cmake +@@ -5,7 +5,10 @@ SET(CMAKE_C_COMPILER arm-linux-androideabi-gcc) + SET(CMAKE_CXX_COMPILER arm-linux-androideabi-g++) + SET(CMAKE_ASM-ATT_COMPILER arm-linux-androideabi-as) + +-SET(CMAKE_FIND_ROOT_PATH /home/guillaume/projects/android/toolchain/sysroot/usr/) ++SET(CMAKE_FIND_ROOT_PATH $ENV{ANDROID_NDK}/platforms/android-8/arch-arm/usr/) ++ ++set(CMAKE_C_FLAGS "--sysroot=$ENV{ANDROID_NDK}/platforms/android-8/arch-arm" CACHE STRING "GCC flags" FORCE) ++set(CMAKE_CXX_FLAGS "--sysroot=$ENV{ANDROID_NDK}/platforms/android-8/arch-arm" CACHE STRING "G++ flags" FORCE) + + SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)