Package bsnes-mercury balanced for Generic

This commit is contained in:
Jean-André Santoni 2014-08-22 17:51:21 +02:00
parent 906ac22e97
commit 9318e441c8
3 changed files with 90 additions and 1 deletions

View File

@ -25,7 +25,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/lakkatv/Lakka"
PKG_URL=""
PKG_DEPENDS_TARGET="Mesa RetroArch tyrquake 2048 virtualjaguar ppsspp dosbox beetle-vb beetle-wswan hatari desmume beetle-ngp beetle-pcfx mame beetle-psx mupen64plus vecx snes9x-next dinothawr prboom beetle-pce fba handy genesis-plus-gx nxengine fceu-next gambatte stella vbam libretro-ffmpeg retroarch-joypad-autoconfig core-info"
PKG_DEPENDS_TARGET="Mesa RetroArch bsnes-mercury tyrquake 2048 virtualjaguar ppsspp dosbox beetle-vb beetle-wswan hatari desmume beetle-ngp beetle-pcfx mame beetle-psx mupen64plus vecx snes9x-next dinothawr prboom beetle-pce fba handy genesis-plus-gx nxengine fceu-next gambatte stella vbam libretro-ffmpeg retroarch-joypad-autoconfig core-info"
PKG_BUILD_DEPENDS=""
PKG_PRIORITY="optional"
PKG_SECTION="virtual"

View File

@ -0,0 +1,45 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program 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, or (at your option)
# any later version.
#
# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
PKG_NAME="bsnes-mercury"
PKG_VERSION="96fc84a"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPLv3"
PKG_SITE="https://github.com/libretro/bsnes-mercury"
PKG_URL="$LAKKA_MIRROR/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="RetroArch"
PKG_SHORTDESC="Fork of bsnes with HLE DSP emulation restored."
PKG_LONGDESC="Fork of bsnes with HLE DSP emulation restored."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
make compiler=$CXX ui='target-libretro' profile='balanced'
}
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/libretro
cp out/bsnes_mercury_libretro.so $INSTALL/usr/lib/libretro/bsnes_mercury_balanced_libretro.so
}

44
tools/mkpkg/mkpkg_bsnes-mercury Executable file
View File

@ -0,0 +1,44 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program 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, or (at your option)
# any later version.
#
# This Program 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 OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
echo "getting sources..."
if [ ! -d bsnes-mercury.git ]; then
git clone https://github.com/libretro/bsnes-mercury.git -b master bsnes-mercury.git
fi
cd bsnes-mercury.git
git pull
GIT_REV=`git log -n1 --format=%h`
cd ..
echo "copying sources..."
rm -rf bsnes-mercury-$GIT_REV
cp -R bsnes-mercury.git bsnes-mercury-$GIT_REV
echo "cleaning sources..."
rm -rf bsnes-mercury-$GIT_REV/.git
rm bsnes-mercury-$GIT_REV/.gitignore
echo "packing sources..."
tar cvJf bsnes-mercury-$GIT_REV.tar.xz bsnes-mercury-$GIT_REV
echo "remove temporary sourcedir..."
rm -rf bsnes-mercury-$GIT_REV