From 211cab90ae755d558ddba42e6ebe212d6fe2a91d Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 6 Jul 2011 11:52:27 +0200 Subject: [PATCH] new package: add package 'libhid', thanks to philro Signed-off-by: Stephan Raue --- packages/sysutils/libhid/build | 35 +++++++++++++++++++++++++++++++ packages/sysutils/libhid/install | 26 +++++++++++++++++++++++ packages/sysutils/libhid/meta | 36 ++++++++++++++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100755 packages/sysutils/libhid/build create mode 100755 packages/sysutils/libhid/install create mode 100644 packages/sysutils/libhid/meta diff --git a/packages/sysutils/libhid/build b/packages/sysutils/libhid/build new file mode 100755 index 0000000000..dc1b293101 --- /dev/null +++ b/packages/sysutils/libhid/build @@ -0,0 +1,35 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --enable-shared \ + --disable-static \ + --enable-swig \ + +make + +$MAKEINSTALL diff --git a/packages/sysutils/libhid/install b/packages/sysutils/libhid/install new file mode 100755 index 0000000000..ab769d8dae --- /dev/null +++ b/packages/sysutils/libhid/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib \ No newline at end of file diff --git a/packages/sysutils/libhid/meta b/packages/sysutils/libhid/meta new file mode 100644 index 0000000000..78106f1aab --- /dev/null +++ b/packages/sysutils/libhid/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="libhid" +PKG_VERSION="0.2.16" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://libhid.alioth.debian.org/" +PKG_URL="http://alioth.debian.org/frs/download.php/1958/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="libusb" +PKG_BUILD_DEPENDS="toolchain libusb" +PKG_PRIORITY="optional" +PKG_SECTION="system" +PKG_SHORTDESC="libhid: userspace USB HID access library" +PKG_LONGDESC="libhid provides a generic and flexible way to access and interact with USB HID devices, much like libusb does for plain USB devices" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes"