Permalink
Browse files

add libcec package to xbmc-live

  • Loading branch information...
1 parent 8c1047f commit c824b30d9d6e931d345487b3b390e61d67e1b29a @pietheinstrengholt pietheinstrengholt committed Oct 12, 2011
Showing with 63 additions and 0 deletions.
  1. +31 −0 SDK/buildDEBs/build-libcec.sh
  2. +32 −0 SDK/copyFiles-libcec.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Copyright (C) 2005-2008 Team XBMC
+# http://www.xbmc.org
+#
+# 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 XBMC; see the file COPYING. If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# http://www.gnu.org/copyleft/gpl.html
+
+
+THISDIR=$(pwd)
+
+if ! ls libcec*.deb > /dev/null 2>&1 ; then
+ echo "Making libcec..."
+ git clone https://github.com/Pulse-Eight/libcec.git
+ cd libcec
+ dpkg-buildpackage -rfakeroot -b -uc -us
@opdenkamp

opdenkamp Oct 12, 2011

Member

does this work without "autoreconf -vif" here?

+ cd $THISDIR
+fi
+
View
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Copyright (C) 2005-2008 Team XBMC
+# http://www.xbmc.org
+#
+# 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 XBMC; see the file COPYING. If not, write to
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+# http://www.gnu.org/copyleft/gpl.html
+
+echo "--------------------------"
+echo "Copying libcec files..."
+echo "--------------------------"
+
+mkdir -p $WORKPATH/buildLive/Files/packages &> /dev/null
+
+if ! ls $WORKPATH/buildDEBs/libcec*.deb > /dev/null 2>&1; then
+echo "Files missing (libcec), exiting..."
+ exit 1
+fi
+
+cp $WORKPATH/buildDEBs/libcec*.deb $WORKPATH/buildLive/Files/packages

8 comments on commit c824b30

Member

theuni replied Oct 12, 2011

What is it with this thing being shoe-horned in all over the place?

libcec should be dlopen'ed, and fetch-able from a ppa (preferably an upstream one, but I won't fight too hard if we end up with it)

I agree, we need te move all packages to our ppa. If you need help please let me know.

Member

opdenkamp replied Oct 12, 2011

@theuni changing it to use dlopen right now. PPA can be found here: https://launchpad.net/~pulse-eight/+archive/libcec

Member

theuni replied Oct 12, 2011

@opdenkamp: perfect, thanks.

@xbmcfreak: no need to host these when there's an upstream ppa. And since it will be dlopen'ed, there's no need to worry about it at build time. Users will just need to apt-get from the pulse-eight repo if they want support. I assume they'll be pushing soon for inclusion into distros.

These changes can be reverted.

Member

opdenkamp replied Oct 12, 2011

I'd rather have them included in xbmc-live by default.
why ask users to log in on a console, add an apt source, etc. just to download the lib if they want support, where the other half of the support (peripherals/devices/PeripheralCecAdapter) is already in our tree?

Changes will be reverted. Instead xbmc-live will use pulse-eight's ppa.

Member

theuni replied Oct 12, 2011

Yea, no problem for live. It just needs to reference a ppa rather than build.

@xbmcfreak: sounds good, thanks

Member

opdenkamp replied Oct 13, 2011

I implemented it using dlopen (not pushed to master), but davilla is working on a PR that uses dllloader.

Please sign in to comment.