From cdefba9942c93ffac7db8d2f7b1e3aa084805a32 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 21 Jun 2012 12:21:53 +0200 Subject: [PATCH] new package: add package 'xbmc-addon-njoy' Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc-addon-njoy/build | 33 +++++++++++++++ packages/mediacenter/xbmc-addon-njoy/install | 30 ++++++++++++++ packages/mediacenter/xbmc-addon-njoy/meta | 35 ++++++++++++++++ packages/mediacenter/xbmc-frodo/meta | 1 + packages/mediacenter/xbmc-rpi/meta | 1 + packages/mediacenter/xbmc/meta | 1 + tools/mkpkg/mkpkg_xbmc-addon-njoy | 43 ++++++++++++++++++++ 7 files changed, 144 insertions(+) create mode 100755 packages/mediacenter/xbmc-addon-njoy/build create mode 100755 packages/mediacenter/xbmc-addon-njoy/install create mode 100644 packages/mediacenter/xbmc-addon-njoy/meta create mode 100755 tools/mkpkg/mkpkg_xbmc-addon-njoy diff --git a/packages/mediacenter/xbmc-addon-njoy/build b/packages/mediacenter/xbmc-addon-njoy/build new file mode 100755 index 0000000000..511952d615 --- /dev/null +++ b/packages/mediacenter/xbmc-addon-njoy/build @@ -0,0 +1,33 @@ +#!/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 +################################################################################ + +. config/options $1 + +cd $PKG_BUILD + +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr/share/xbmc \ + --disable-static \ + --enable-shared + +make diff --git a/packages/mediacenter/xbmc-addon-njoy/install b/packages/mediacenter/xbmc-addon-njoy/install new file mode 100755 index 0000000000..a291258cef --- /dev/null +++ b/packages/mediacenter/xbmc-addon-njoy/install @@ -0,0 +1,30 @@ +#!/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 +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/share/xbmc/addons/pvr.njoy + cp -PRf $PKG_BUILD/addons/pvr.njoy/resources $INSTALL/usr/share/xbmc/addons/pvr.njoy + cp -Pf $PKG_BUILD/addons/pvr.njoy/addon.xml $INSTALL/usr/share/xbmc/addons/pvr.njoy + cp -Pf $PKG_BUILD/addons/pvr.njoy/XBMC_Njoy.pvr $INSTALL/usr/share/xbmc/addons/pvr.njoy + cp -Pf $PKG_BUILD/addons/pvr.njoy/changelog.txt $INSTALL/usr/share/xbmc/addons/pvr.njoy + cp -Pf $PKG_BUILD/addons/pvr.njoy/icon.png $INSTALL/usr/share/xbmc/addons/pvr.njoy diff --git a/packages/mediacenter/xbmc-addon-njoy/meta b/packages/mediacenter/xbmc-addon-njoy/meta new file mode 100644 index 0000000000..e7bae37e5d --- /dev/null +++ b/packages/mediacenter/xbmc-addon-njoy/meta @@ -0,0 +1,35 @@ +################################################################################ +# 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="xbmc-addon-njoy" +PKG_VERSION="1ff90c9" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://github.com/jdembski/pvr.njoy" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="curl" +PKG_BUILD_DEPENDS="toolchain curl" +PKG_PRIORITY="optional" +PKG_SECTION="mediacenter" +PKG_SHORTDESC="Njoy N7 addon for XBMC" +PKG_LONGDESC="This addon allows XBMC PVR to connect to Njoy's N7 Network tuner as a TV/PVR backend." +PKG_IS_ADDON="no" +PKG_AUTORECONF="yes" diff --git a/packages/mediacenter/xbmc-frodo/meta b/packages/mediacenter/xbmc-frodo/meta index e45e426ad1..5314396c63 100644 --- a/packages/mediacenter/xbmc-frodo/meta +++ b/packages/mediacenter/xbmc-frodo/meta @@ -178,5 +178,6 @@ if [ "$XVBA" = yes ]; then fi if [ "$PVR" = yes ]; then + PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-njoy" PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-vuplus" fi diff --git a/packages/mediacenter/xbmc-rpi/meta b/packages/mediacenter/xbmc-rpi/meta index 8a895d84c4..a39891fa51 100644 --- a/packages/mediacenter/xbmc-rpi/meta +++ b/packages/mediacenter/xbmc-rpi/meta @@ -174,5 +174,6 @@ if [ "$XVBA" = yes ]; then fi if [ "$PVR" = yes ]; then + PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-njoy" PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-vuplus" fi diff --git a/packages/mediacenter/xbmc/meta b/packages/mediacenter/xbmc/meta index b911361efa..5b72a64b00 100644 --- a/packages/mediacenter/xbmc/meta +++ b/packages/mediacenter/xbmc/meta @@ -151,5 +151,6 @@ if [ "$XVBA" = yes ]; then fi if [ "$PVR" = yes ]; then + PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-njoy" PKG_DEPENDS="$PKG_DEPENDS xbmc-addon-xvdr xbmc-addon-vuplus" fi diff --git a/tools/mkpkg/mkpkg_xbmc-addon-njoy b/tools/mkpkg/mkpkg_xbmc-addon-njoy new file mode 100755 index 0000000000..318b5cd9a9 --- /dev/null +++ b/tools/mkpkg/mkpkg_xbmc-addon-njoy @@ -0,0 +1,43 @@ +#!/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 xbmc-addon-njoy.git ]; then + git clone git://github.com/jdembski/pvr.njoy.git xbmc-addon-njoy.git + fi + + cd xbmc-addon-njoy.git + git pull + GIT_REV=`git log -n1 --format=%h` + cd .. + +echo "copying sources..." + rm -rf xbmc-addon-njoy-$GIT_REV + cp -R xbmc-addon-njoy.git xbmc-addon-njoy-$GIT_REV + +echo "cleaning sources..." + rm -rf xbmc-addon-njoy-$GIT_REV/.git + +echo "packing sources..." + tar cvJf xbmc-addon-njoy-$GIT_REV.tar.xz xbmc-addon-njoy-$GIT_REV + +echo "remove temporary sourcedir..." + rm -rf xbmc-addon-njoy-$GIT_REV