From 74e2138f21295d929c4cebcff26c8e236434e244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flor=C3=A9al=20Toumikian?= Date: Sat, 1 Mar 2014 14:58:30 +0100 Subject: [PATCH] Added mupen64plus package --- packages/RPi-Lakka/mupen64plus/package.mk | 45 +++++++++++++++++++++++ packages/RPi-Lakka/package.mk | 2 +- tools/mkpkg/mkpkg_mupen64plus | 45 +++++++++++++++++++++++ 3 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 packages/RPi-Lakka/mupen64plus/package.mk create mode 100755 tools/mkpkg/mkpkg_mupen64plus diff --git a/packages/RPi-Lakka/mupen64plus/package.mk b/packages/RPi-Lakka/mupen64plus/package.mk new file mode 100644 index 00000000000..7a9b803f6df --- /dev/null +++ b/packages/RPi-Lakka/mupen64plus/package.mk @@ -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="mupen64plus" +PKG_VERSION="b28bb4e" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPLv3" +PKG_SITE="https://github.com/libretro/mupen64plus-libretro" +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="libretro implementation of Doom" +PKG_LONGDESC="libretro implementation of Doom" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +make_target() { + make platform=rpi +} + +makeinstall_target() { + mkdir -p $INSTALL/usr/lib/libretro + cp mupen64plus_libretro.so $INSTALL/usr/lib/libretro/mupen64plus_libretro.so +} diff --git a/packages/RPi-Lakka/package.mk b/packages/RPi-Lakka/package.mk index d3917e6ca4c..5022f9f8ee6 100644 --- a/packages/RPi-Lakka/package.mk +++ b/packages/RPi-Lakka/package.mk @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="https://github.com/Niouby/OpenELEC.tv" PKG_URL="" -PKG_DEPENDS="RetroArch vecx snes9x-next dosbox dinothawr prboom mednafen-pce fba pcsx_rearmed scummvm handy picodrive pocketsnes genesis-plus-gx nxengine fceu-next gambatte stella imame4all vbam mednafen-gba vba-next meteor nestopia quicknes libretro-ffmpeg retroarch-joypad-autoconfig core-info" +PKG_DEPENDS="RetroArch mupen64plus vecx snes9x-next dosbox dinothawr prboom mednafen-pce fba pcsx_rearmed scummvm handy picodrive pocketsnes genesis-plus-gx nxengine fceu-next gambatte stella imame4all vbam mednafen-gba vba-next meteor nestopia quicknes libretro-ffmpeg retroarch-joypad-autoconfig core-info" PKG_BUILD_DEPENDS="" PKG_PRIORITY="optional" PKG_SECTION="virtual" diff --git a/tools/mkpkg/mkpkg_mupen64plus b/tools/mkpkg/mkpkg_mupen64plus new file mode 100755 index 00000000000..a0a42f1dcb3 --- /dev/null +++ b/tools/mkpkg/mkpkg_mupen64plus @@ -0,0 +1,45 @@ +#!/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 mupen64plus.git ]; then + git clone https://github.com/libretro/mupen64plus-libretro.git -b master mupen64plus.git +fi + +cd mupen64plus.git +git pull +GIT_REV=`git log -n1 --format=%h` +cd .. + +echo "copying sources..." +rm -rf mupen64plus-$GIT_REV +cp -R mupen64plus.git mupen64plus-$GIT_REV +rm -rf mupen64plus.git + +echo "cleaning sources..." +rm -rf mupen64plus-$GIT_REV/.git +rm mupen64plus-$GIT_REV/.gitignore + +echo "packing sources..." +tar cvJf mupen64plus-$GIT_REV.tar.xz mupen64plus-$GIT_REV + +echo "remove temporary sourcedir..." +rm -rf mupen64plus-$GIT_REV