evtest: convert to addon

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-05-28 16:41:48 +02:00
parent cc74e9491d
commit 2d77541d76
6 changed files with 40 additions and 10 deletions

View File

@ -0,0 +1,27 @@
#!/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 $ADDON_BUILD/$PKG_ADDON_ID/bin
cp $PKG_BUILD/evtest $ADDON_BUILD/$PKG_ADDON_ID/bin
cp $PKG_BUILD/evtest-capture $ADDON_BUILD/$PKG_ADDON_ID/bin

View File

@ -22,9 +22,12 @@
. config/options $1 . config/options $1
LDFLAGS="$LDFLAGS -static"
CFLAGS="$CFLAGS -pthread"
cd $PKG_BUILD cd $PKG_BUILD
./configure --host=$TARGET_NAME \ ./configure --host=$TARGET_NAME \
--build=$HOST_NAME \ --build=$HOST_NAME \
--prefix=/usr \ --prefix=/usr \
make make LIBS="-lm -lz -liconv"

View File

@ -0,0 +1,2 @@
0.99.1
- initial addon based on evtest-1.27

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -28,9 +28,11 @@ PKG_URL="http://cgit.freedesktop.org/evtest/snapshot/$PKG_NAME-$PKG_VERSION.tar.
PKG_DEPENDS="libxml2" PKG_DEPENDS="libxml2"
PKG_BUILD_DEPENDS="toolchain libxml2" PKG_BUILD_DEPENDS="toolchain libxml2"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="tools" PKG_SECTION="debug/tools"
PKG_SHORTDESC="evtest: Simple tool for input event debugging." PKG_SHORTDESC="evtest: Simple tool for input event debugging."
PKG_LONGDESC="evtest is a simple tool for input event debugging." PKG_LONGDESC="evtest is a simple tool for input event debugging."
PKG_IS_ADDON="no"
PKG_IS_ADDON="yes"
PKG_ADDON_TYPE="xbmc.python.script"
PKG_AUTORECONF="yes" PKG_AUTORECONF="yes"

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################ ################################################################################
# This file is part of OpenELEC - http://www.openelec.tv # This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
@ -20,8 +18,6 @@
# http://www.gnu.org/copyleft/gpl.html # http://www.gnu.org/copyleft/gpl.html
################################################################################ ################################################################################
. config/options $1 import os
import sys
mkdir -p $INSTALL/usr/bin import xbmcaddon
cp $PKG_BUILD/evtest $INSTALL/usr/bin
cp $PKG_BUILD/evtest-capture $INSTALL/usr/bin