libretro-bsnes-mercury-performance: add package

This commit is contained in:
Lukas Rusak
2017-02-01 15:44:18 -08:00
parent 2b3ed6b4f6
commit e630bf75cf
2 changed files with 75 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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)