mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
new package: add package 'wiiuse'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8e6dfdcc39
commit
14537dad28
13
packages/sysutils/wiiuse/build
Executable file
13
packages/sysutils/wiiuse/build
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $BUILD/${PKG_NAME}_v${PKG_VERSION}
|
||||
|
||||
make wiiuse
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp src/release*/*.so $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||
cp src/wiiuse.h $SYSROOT_PREFIX/usr/include
|
6
packages/sysutils/wiiuse/install
Executable file
6
packages/sysutils/wiiuse/install
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PR $BUILD/${PKG_NAME}_v${PKG_VERSION}/src/release*/*.so $INSTALL/usr/lib
|
14
packages/sysutils/wiiuse/meta
Normal file
14
packages/sysutils/wiiuse/meta
Normal file
@ -0,0 +1,14 @@
|
||||
PKG_NAME="wiiuse"
|
||||
PKG_VERSION="0.12"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_SITE="http://www.wiiuse.net/"
|
||||
PKG_URL="http://downloads.sourceforge.net/project/wiiuse/wiiuse/v0.12/wiiuse_v0.12_src.tar.gz"
|
||||
PKG_DEPENDS="bluez"
|
||||
PKG_BUILD_DEPENDS="toolchain bluez"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="Wiiuse is a library written in C that connects with several Nintendo Wii remotes."
|
||||
PKG_LONGDESC="Wiiuse is a library written in C that connects with several Nintendo Wii remotes. Supports motion sensing, IR tracking, nunchuk, classic controller, and the Guitar Hero 3 controller. Single threaded and nonblocking makes a light weight and clean API."
|
||||
PKG_IS_ADDON="yes"
|
11
packages/sysutils/wiiuse/patches/wiiuse-connect-0.1.diff
Normal file
11
packages/sysutils/wiiuse/patches/wiiuse-connect-0.1.diff
Normal file
@ -0,0 +1,11 @@
|
||||
diff -Naur wiiuse_v0.12/src/io_nix.c wiiuse_v0.12.patch/src/io_nix.c
|
||||
--- wiiuse_v0.12/src/io_nix.c 2008-03-29 22:53:32.000000000 +0100
|
||||
+++ wiiuse_v0.12.patch/src/io_nix.c 2010-09-21 22:50:08.889265428 +0200
|
||||
@@ -171,6 +171,7 @@
|
||||
static int wiiuse_connect_single(struct wiimote_t* wm, char* address) {
|
||||
struct sockaddr_l2 addr;
|
||||
|
||||
+ memset(&addr, 0, sizeof (addr)); //is missing in the line 174 of io_nix.c
|
||||
if (!wm || WIIMOTE_IS_CONNECTED(wm))
|
||||
return 0;
|
||||
|
@ -0,0 +1,36 @@
|
||||
diff -Naur wiiuse_v0.12/example/Makefile wiiuse_v0.12.patch/example/Makefile
|
||||
--- wiiuse_v0.12/example/Makefile 2008-04-02 02:45:40.000000000 +0200
|
||||
+++ wiiuse_v0.12.patch/example/Makefile 2010-09-21 21:31:12.052265717 +0200
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# Change this to your GCC version.
|
||||
#
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
|
||||
####################################################
|
||||
#
|
||||
diff -Naur wiiuse_v0.12/example-sdl/Makefile wiiuse_v0.12.patch/example-sdl/Makefile
|
||||
--- wiiuse_v0.12/example-sdl/Makefile 2008-04-02 02:45:53.000000000 +0200
|
||||
+++ wiiuse_v0.12.patch/example-sdl/Makefile 2010-09-21 21:31:19.907265540 +0200
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# Change this to your GCC version.
|
||||
#
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
|
||||
####################################################
|
||||
#
|
||||
diff -Naur wiiuse_v0.12/src/Makefile wiiuse_v0.12.patch/src/Makefile
|
||||
--- wiiuse_v0.12/src/Makefile 2008-03-03 00:30:04.000000000 +0100
|
||||
+++ wiiuse_v0.12.patch/src/Makefile 2010-09-21 21:31:27.338390537 +0200
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# Change this to your GCC version.
|
||||
#
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
|
||||
####################################################
|
||||
#
|
Loading…
x
Reference in New Issue
Block a user