diff --git a/packages/emulation/libretro-bsnes-mercury-performance/package.mk b/packages/emulation/libretro-bsnes-mercury-performance/package.mk new file mode 100644 index 0000000000..3c2f11c626 --- /dev/null +++ b/packages/emulation/libretro-bsnes-mercury-performance/package.mk @@ -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 . +################################################################################ + +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 +} + diff --git a/packages/emulation/libretro-bsnes-mercury-performance/patches/libretro-bsnes-mercury-performance-0001_fix-cross-compile.patch b/packages/emulation/libretro-bsnes-mercury-performance/patches/libretro-bsnes-mercury-performance-0001_fix-cross-compile.patch new file mode 100644 index 0000000000..723c948270 --- /dev/null +++ b/packages/emulation/libretro-bsnes-mercury-performance/patches/libretro-bsnes-mercury-performance-0001_fix-cross-compile.patch @@ -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)