mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
libretro-bsnes-mercury-performance: add package
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2016 Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="libretro-bsnes-mercury-performance"
|
||||
PKG_VERSION="425015a"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPLv2"
|
||||
PKG_SITE="https://github.com/libretro/bsnes-mercury"
|
||||
PKG_URL="https://github.com/libretro/bsnes-mercury/archive/$PKG_VERSION.tar.gz"
|
||||
PKG_SOURCE_DIR="bsnes-mercury-$PKG_VERSION*"
|
||||
PKG_DEPENDS_TARGET="toolchain kodi-platform"
|
||||
PKG_SECTION="emulation"
|
||||
PKG_SHORTDESC="game.libretro.beetle-bsnes-performance: Beetle bSNES for Kodi"
|
||||
PKG_LONGDESC="game.libretro.beetle-bsnes-performance: Beetle bSNES for Kodi"
|
||||
PKG_AUTORECONF="no"
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_LIBNAME="bsnes_mercury_performance_libretro.so"
|
||||
PKG_LIBPATH="out/$PKG_LIBNAME"
|
||||
PKG_LIBVAR="BSNES_MERCURY_LIB"
|
||||
|
||||
make_target() {
|
||||
make profile=performance
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp $PKG_LIBPATH $INSTALL/usr/lib/$PKG_LIBNAME
|
||||
echo "set($PKG_LIBVAR $INSTALL/usr/lib/$PKG_LIBNAME)" > $SYSROOT_PREFIX/usr/$PKG_NAME-config.cmake
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
diff -Naur a/Makefile b/Makefile
|
||||
--- a/Makefile 2016-01-05 20:14:14.000000000 +0100
|
||||
+++ b/Makefile 2016-01-11 20:38:29.377951179 +0100
|
||||
@@ -32,8 +32,8 @@
|
||||
flags := -I. -O3 -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
-cflags := -std=gnu99 -xc
|
||||
-cppflags := -std=gnu++0x
|
||||
+cflags := $(CFLAGS) -std=gnu99 -xc
|
||||
+cppflags := $(CXXFLAGS) -std=gnu++0x
|
||||
|
||||
objects := libco
|
||||
|
||||
@@ -48,13 +48,7 @@
|
||||
flags += -fprofile-use
|
||||
endif
|
||||
|
||||
-ifeq ($(compiler),)
|
||||
- ifneq ($(CXX),)
|
||||
- compiler := $(CXX)
|
||||
- else
|
||||
- compiler := g++
|
||||
- endif
|
||||
-endif
|
||||
+compiler = $(CXX)
|
||||
|
||||
# platform
|
||||
ui := target-$(target)
|
||||
Reference in New Issue
Block a user