diff --git a/packages/mediacenter/xbmc-pvr-addons/build b/packages/mediacenter/xbmc-pvr-addons/build new file mode 100755 index 0000000000..511952d615 --- /dev/null +++ b/packages/mediacenter/xbmc-pvr-addons/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-pvr-addons/install b/packages/mediacenter/xbmc-pvr-addons/install new file mode 100755 index 0000000000..dac787ca1c --- /dev/null +++ b/packages/mediacenter/xbmc-pvr-addons/install @@ -0,0 +1,32 @@ +#!/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 + +for addon in `find $PKG_BUILD/addons/ -type d -name "pvr.*"`; do + ADDON=`basename $addon` + mkdir -p $INSTALL/usr/share/xbmc/addons/$ADDON + cp -PRf $PKG_BUILD/addons/$ADDON/addon/* $INSTALL/usr/share/xbmc/addons/$ADDON + + mkdir -p $INSTALL/usr/lib/xbmc/addons/$ADDON + cp -Pf $PKG_BUILD/addons/$ADDON/*.pvr $INSTALL/usr/lib/xbmc/addons/$ADDON +done diff --git a/packages/mediacenter/xbmc-pvr-addons/meta b/packages/mediacenter/xbmc-pvr-addons/meta new file mode 100644 index 0000000000..1ca7bde4af --- /dev/null +++ b/packages/mediacenter/xbmc-pvr-addons/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-pvr-addons" +PKG_VERSION="94c9f6f" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://github.com/opdenkamp/xbmc-pvr-addons" +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="Various PVR addons for XBMC" +PKG_LONGDESC="This addons allows XBMC PVR to connect to various TV/PVR backends and tuners." +PKG_IS_ADDON="no" +PKG_AUTORECONF="yes" diff --git a/packages/mediacenter/xbmc-pvr-addons/patches/xbmc-pvr-addons-94c9f6f-crosscompiling.patch b/packages/mediacenter/xbmc-pvr-addons/patches/xbmc-pvr-addons-94c9f6f-crosscompiling.patch new file mode 100644 index 0000000000..923c5230f8 --- /dev/null +++ b/packages/mediacenter/xbmc-pvr-addons/patches/xbmc-pvr-addons-94c9f6f-crosscompiling.patch @@ -0,0 +1,20 @@ +diff -Naur xbmc-pvr-addons-94c9f6f/configure.ac xbmc-pvr-addons-94c9f6f.patch/configure.ac +--- xbmc-pvr-addons-94c9f6f/configure.ac 2012-09-05 20:43:31.000000000 +0200 ++++ xbmc-pvr-addons-94c9f6f.patch/configure.ac 2012-09-05 21:24:01.619154672 +0200 +@@ -75,10 +75,12 @@ + use_libcurl="no" + PKG_CHECK_MODULES([CURL],[libcurl],use_libcurl="yes",AC_MSG_WARN("CURL was not found, N7 add-on will not be available")) + +-### Check for Intree building +-checkpath=".." +-AC_CHECK_FILE([$checkpath/xbmc/xbmc.h], [AM_CONDITIONAL(IS_INTREE_BUILD, true) intree=true], [AM_CONDITIONAL(IS_INTREE_BUILD, false) intree=false]) +-echo "Intree build: $intree" ++# ### Check for Intree building ++# checkpath=".." ++# AC_CHECK_FILE([$checkpath/xbmc/xbmc.h], [AM_CONDITIONAL(IS_INTREE_BUILD, true) intree=true], [AM_CONDITIONAL(IS_INTREE_BUILD, false) intree=false]) ++# echo "Intree build: $intree" ++ ++AM_CONDITIONAL(IS_INTREE_BUILD, false) + + HOST_CXXFLAGS="-Wall -Wextra -Wno-missing-field-initializers -Woverloaded-virtual -Wno-parentheses -fPIC $HOST_CXXFLAGS" + diff --git a/tools/mkpkg/mkpkg_xbmc-pvr-addons b/tools/mkpkg/mkpkg_xbmc-pvr-addons new file mode 100755 index 0000000000..1ae56728dd --- /dev/null +++ b/tools/mkpkg/mkpkg_xbmc-pvr-addons @@ -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-pvr-addons.git ]; then + git clone git://github.com/opdenkamp/xbmc-pvr-addons.git xbmc-pvr-addons.git + fi + + cd xbmc-pvr-addons.git + git pull + GIT_REV=`git log -n1 --format=%h` + cd .. + +echo "copying sources..." + rm -rf xbmc-pvr-addons-$GIT_REV + cp -R xbmc-pvr-addons.git xbmc-pvr-addons-$GIT_REV + +echo "cleaning sources..." + rm -rf xbmc-pvr-addons-$GIT_REV/.git + +echo "packing sources..." + tar cvJf xbmc-pvr-addons-$GIT_REV.tar.xz xbmc-pvr-addons-$GIT_REV + +echo "remove temporary sourcedir..." + rm -rf xbmc-pvr-addons-$GIT_REV