mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: move WiiMote daemon to a own addon
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
294cb33869
commit
02d2a9af66
29
packages/addons/driver/xbmc-wiimote/addon
Executable file
29
packages/addons/driver/xbmc-wiimote/addon
Executable file
@ -0,0 +1,29 @@
|
||||
#!/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 $BUILD/xbmc-*/tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote $ADDON_BUILD/$PKG_ADDON_ID/bin/wiimote
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
|
||||
cp -P $BUILD/wiiuse_v[0-9]*/src/release*/*.so $ADDON_BUILD/$PKG_ADDON_ID/lib
|
11
packages/mediacenter/xbmc/udev.d/98-wiiremote.rules → packages/addons/driver/xbmc-wiimote/build
Normal file → Executable file
11
packages/mediacenter/xbmc/udev.d/98-wiiremote.rules → packages/addons/driver/xbmc-wiimote/build
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
@ -18,10 +20,9 @@
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
# only does something with "bluetooth" subsystem devices.
|
||||
SUBSYSTEM!="bluetooth", GOTO="end"
|
||||
. config/options $1
|
||||
|
||||
# Start Wii Remote support if bluetooth is starting
|
||||
ACTION=="add|remove", RUN+="/lib/udev/wiiremote_helper"
|
||||
$SCRIPTS/unpack xbmc
|
||||
|
||||
LABEL="end"
|
||||
cd $BUILD/xbmc-*/tools/EventClients/Clients/WiiRemote
|
||||
$CXX $CFLAGS -lwiiuse WiiUse_WiiRemote.cpp -o WiiUse_WiiRemote
|
2
packages/addons/driver/xbmc-wiimote/changelog.txt
Normal file
2
packages/addons/driver/xbmc-wiimote/changelog.txt
Normal file
@ -0,0 +1,2 @@
|
||||
1.0.0
|
||||
- initial version xbmc-wiimote
|
BIN
packages/addons/driver/xbmc-wiimote/icon/icon.png
Normal file
BIN
packages/addons/driver/xbmc-wiimote/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
38
packages/addons/driver/xbmc-wiimote/meta
Normal file
38
packages/addons/driver/xbmc-wiimote/meta
Normal file
@ -0,0 +1,38 @@
|
||||
################################################################################
|
||||
# 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="xbmc-wiimote"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_REV="0"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.xbmc.org"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain wiiuse"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="driver/remote"
|
||||
PKG_SHORTDESC="xbmc-wiimote: a driver to support WiiMote Controllers."
|
||||
PKG_LONGDESC="xbmc-wiimote is a driver to support WiiMote Controllers."
|
||||
|
||||
PKG_IS_ADDON="yes"
|
||||
PKG_ADDON_TYPE="xbmc.service"
|
||||
|
||||
PKG_AUTORECONF="no"
|
33
packages/addons/driver/xbmc-wiimote/source/bin/wiimote.service
Executable file
33
packages/addons/driver/xbmc-wiimote/source/bin/wiimote.service
Executable file
@ -0,0 +1,33 @@
|
||||
#!/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
|
||||
################################################################################
|
||||
|
||||
# Addon settings
|
||||
ADDON_DIR="$HOME/.xbmc/addons/driver.remote.xbmc-wiimote"
|
||||
ADDON_HOME="$HOME/.xbmc/userdata/addon_data/driver.remote.xbmc-wiimote"
|
||||
|
||||
|
||||
################################################################################
|
||||
# start ps3d
|
||||
################################################################################
|
||||
chmod +x $ADDON_DIR/lib/*
|
||||
|
||||
LD_LIBRARY_PATH="$ADDON_DIR/lib:$LD_LIBRARY_PATH" wiimote &
|
19
packages/mediacenter/xbmc/scripts/wiiremote_helper → packages/addons/driver/xbmc-wiimote/source/default.py
Executable file → Normal file
19
packages/mediacenter/xbmc/scripts/wiiremote_helper → packages/addons/driver/xbmc-wiimote/source/default.py
Executable file → Normal file
@ -1,8 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
||||
# http://www.openelec.tv
|
||||
# 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
|
||||
@ -20,15 +18,6 @@
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
case "${ACTION}" in
|
||||
add)
|
||||
if [ -f /usr/bin/xbmc-wiiremote ]; then
|
||||
/usr/bin/xbmc-wiiremote &
|
||||
fi
|
||||
;;
|
||||
remove)
|
||||
killall xbmc-wiiremote
|
||||
;;
|
||||
esac
|
||||
import xbmc, time, os, subprocess
|
||||
|
||||
exit 0
|
||||
os.system("wiimote.service")
|
@ -239,9 +239,3 @@ cd $PKG_BUILD
|
||||
make externals
|
||||
make xbmc.bin
|
||||
make xbmc-xrandr
|
||||
|
||||
if [ "$WIIMOTE_SUPPORT" = yes ]; then
|
||||
(cd tools/EventClients/Clients/WiiRemote;
|
||||
$CXX $CFLAGS -lwiiuse WiiUse_WiiRemote.cpp -o WiiUse_WiiRemote;
|
||||
)
|
||||
fi
|
||||
|
@ -99,10 +99,3 @@ if [ "$XBMC_EXTRA_FONTS" = yes ]; then
|
||||
mkdir -p $INSTALL/usr/share/xbmc/media/Fonts
|
||||
cp $PKG_DIR/fonts/*.ttf $INSTALL/usr/share/xbmc/media/Fonts
|
||||
fi
|
||||
|
||||
if [ "$WIIMOTE_SUPPORT" = yes ]; then
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp $PKG_BUILD/tools/EventClients/Clients/WiiRemote/WiiUse_WiiRemote $INSTALL/usr/bin/xbmc-wiiremote
|
||||
mkdir -p $INSTALL/lib/udev
|
||||
cp $PKG_DIR/scripts/wiiremote_helper $INSTALL/lib/udev
|
||||
fi
|
||||
|
@ -117,11 +117,6 @@ if [ "$CRYSTALHD" = yes ]; then
|
||||
PKG_DEPENDS="$PKG_DEPENDS crystalhd"
|
||||
fi
|
||||
|
||||
if [ "$WIIMOTE_SUPPORT" = yes ]; then
|
||||
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS wiiuse"
|
||||
PKG_DEPENDS="$PKG_DEPENDS wiiuse"
|
||||
fi
|
||||
|
||||
# some python stuff needed for various addons
|
||||
PKG_DEPENDS="$PKG_DEPENDS Imaging"
|
||||
PKG_DEPENDS="$PKG_DEPENDS simplejson"
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="no"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="yes"
|
||||
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="no"
|
||||
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="yes"
|
||||
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="yes"
|
||||
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="no"
|
||||
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="no"
|
||||
|
||||
|
@ -226,9 +226,6 @@
|
||||
# build and install remote support (yes / no)
|
||||
REMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install WiiMote support (yes / no)
|
||||
WIIMOTE_SUPPORT="yes"
|
||||
|
||||
# build and install ATV IR remote support (yes / no)
|
||||
ATVCLIENT_SUPPORT="no"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user