mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
new package:
- add package lirc
This commit is contained in:
parent
085e2cd87a
commit
283711c834
34
packages/sysutils/lirc/build
Executable file
34
packages/sysutils/lirc/build
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
# $SCRIPTS/build libirman
|
||||||
|
|
||||||
|
if [ "$DEBUG" = yes ]; then
|
||||||
|
DEBUG_CONFIG="--enable-debug --disable-stripping"
|
||||||
|
else
|
||||||
|
DEBUG_CONFIG="--disable-debug --enable-stripping"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export ac_cv_path_LIBUSB_CONFIG=
|
||||||
|
export ac_cv_func_forkpty=no
|
||||||
|
export ac_cv_lib_util_forkpty=no
|
||||||
|
export MAKEFLAGS=-j1
|
||||||
|
|
||||||
|
cd $PKG_BUILD
|
||||||
|
./configure --host=$TARGET_NAME \
|
||||||
|
--build=$HOST_NAME \
|
||||||
|
--prefix=/usr \
|
||||||
|
--disable-shared \
|
||||||
|
--enable-sandboxed \
|
||||||
|
--without-x \
|
||||||
|
--with-driver=$RECEIVER \
|
||||||
|
--with-port=0x3f8 \
|
||||||
|
--with-irq=4 \
|
||||||
|
--with-kerneldir=$(kernel_path) \
|
||||||
|
$DEBUG_CONFIG
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
$MAKEINSTALL -C tools
|
104
packages/sysutils/lirc/config/lircd_mceusb.conf
Normal file
104
packages/sysutils/lirc/config/lircd_mceusb.conf
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
#
|
||||||
|
# RC-6 config file
|
||||||
|
#
|
||||||
|
# source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm
|
||||||
|
# http://home.hccnet.nl/m.majoor/pronto.pdf
|
||||||
|
#
|
||||||
|
# used by: Philips
|
||||||
|
#
|
||||||
|
#########
|
||||||
|
#
|
||||||
|
# Philips Media Center Edition remote control
|
||||||
|
# For use with the USB MCE ir receiver
|
||||||
|
#
|
||||||
|
# Dan Conti dconti|acm.wwu.edu
|
||||||
|
#
|
||||||
|
# Updated with codes for MCE 2005 Remote additional buttons
|
||||||
|
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
|
||||||
|
# Note: TV power button transmits no code until programmed.
|
||||||
|
# Updated 12th September 2005
|
||||||
|
# Graham Auld - mce|graham.auld.me.uk
|
||||||
|
#
|
||||||
|
# Radio, Print, RecTV are only available on the HP Media Center remote control
|
||||||
|
#
|
||||||
|
|
||||||
|
begin remote
|
||||||
|
|
||||||
|
name mceusb
|
||||||
|
bits 16
|
||||||
|
flags RC6|CONST_LENGTH
|
||||||
|
eps 30
|
||||||
|
aeps 100
|
||||||
|
|
||||||
|
header 2667 889
|
||||||
|
one 444 444
|
||||||
|
zero 444 444
|
||||||
|
pre_data_bits 21
|
||||||
|
pre_data 0x37FF0
|
||||||
|
gap 105000
|
||||||
|
toggle_bit 22
|
||||||
|
rc6_mask 0x100000000
|
||||||
|
|
||||||
|
|
||||||
|
begin codes
|
||||||
|
|
||||||
|
Blue 0x00007ba1
|
||||||
|
Yellow 0x00007ba2
|
||||||
|
Green 0x00007ba3
|
||||||
|
Red 0x00007ba4
|
||||||
|
Teletext 0x00007ba5
|
||||||
|
|
||||||
|
# starts at af
|
||||||
|
Radio 0x00007baf
|
||||||
|
Print 0x00007bb1
|
||||||
|
Videos 0x00007bb5
|
||||||
|
Pictures 0x00007bb6
|
||||||
|
RecTV 0x00007bb7
|
||||||
|
Music 0x00007bb8
|
||||||
|
TV 0x00007bb9
|
||||||
|
# no ba - d8
|
||||||
|
|
||||||
|
Guide 0x00007bd9
|
||||||
|
LiveTV 0x00007bda
|
||||||
|
DVD 0x00007bdb
|
||||||
|
Back 0x00007bdc
|
||||||
|
OK 0x00007bdd
|
||||||
|
Right 0x00007bde
|
||||||
|
Left 0x00007bdf
|
||||||
|
Down 0x00007be0
|
||||||
|
Up 0x00007be1
|
||||||
|
|
||||||
|
Star 0x00007be2
|
||||||
|
Hash 0x00007be3
|
||||||
|
|
||||||
|
Replay 0x00007be4
|
||||||
|
Skip 0x00007be5
|
||||||
|
Stop 0x00007be6
|
||||||
|
Pause 0x00007be7
|
||||||
|
Record 0x00007be8
|
||||||
|
Play 0x00007be9
|
||||||
|
Rewind 0x00007bea
|
||||||
|
Forward 0x00007beb
|
||||||
|
ChanDown 0x00007bec
|
||||||
|
ChanUp 0x00007bed
|
||||||
|
VolDown 0x00007bee
|
||||||
|
VolUp 0x00007bef
|
||||||
|
More 0x00007bf0
|
||||||
|
Mute 0x00007bf1
|
||||||
|
Home 0x00007bf2
|
||||||
|
Power 0x00007bf3
|
||||||
|
Enter 0x00007bf4
|
||||||
|
Clear 0x00007bf5
|
||||||
|
Nine 0x00007bf6
|
||||||
|
Eight 0x00007bf7
|
||||||
|
Seven 0x00007bf8
|
||||||
|
Six 0x00007bf9
|
||||||
|
Five 0x00007bfa
|
||||||
|
Four 0x00007bfb
|
||||||
|
Three 0x00007bfc
|
||||||
|
Two 0x00007bfd
|
||||||
|
One 0x00007bfe
|
||||||
|
Zero 0x00007bff
|
||||||
|
end codes
|
||||||
|
|
||||||
|
end remote
|
14
packages/sysutils/lirc/config/sysconfig_mceusb
Normal file
14
packages/sysutils/lirc/config/sysconfig_mceusb
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
################################################################################
|
||||||
|
# LIRC environment variables.
|
||||||
|
#
|
||||||
|
# This file contains non-OpenELEC evironment variables as well as OpenELEC
|
||||||
|
# evironment variables that are not user defined.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
# Lirc environment variables.
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
LIRC_DRIVER=default
|
||||||
|
LIRC_DEVICE=/dev/lirc0
|
||||||
|
LIRC_OUTPUT=/dev/lircd
|
||||||
|
LIRC_MODULES="lirc_mceusb"
|
21
packages/sysutils/lirc/init.d/48_lirc
Executable file
21
packages/sysutils/lirc/init.d/48_lirc
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# start the LIRC daemon
|
||||||
|
#
|
||||||
|
# runlevels: openelec, text, debug
|
||||||
|
|
||||||
|
. /etc/sysconfig
|
||||||
|
|
||||||
|
progress "Starting LIRC daemon"
|
||||||
|
|
||||||
|
# insert needed modules
|
||||||
|
IFS='|'
|
||||||
|
for module in $LIRC_MODULES; do
|
||||||
|
eval "modprobe $module" >/dev/null 2>&1
|
||||||
|
done
|
||||||
|
|
||||||
|
# start lircd
|
||||||
|
mkdir -p /var/run/lirc
|
||||||
|
lircd --driver=$LIRC_DRIVER --device=$LIRC_DEVICE --output=$LIRC_OUTPUT
|
||||||
|
|
||||||
|
exit 0
|
43
packages/sysutils/lirc/install
Executable file
43
packages/sysutils/lirc/install
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||||
|
VER=`ls $BUILD/linux*/modules/lib/modules`
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/sbin
|
||||||
|
cp $PKG_BUILD/daemons/lircd $INSTALL/usr/sbin
|
||||||
|
cp $PKG_BUILD/daemons/lircmd $INSTALL/usr/sbin # do we need this?
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/tools/irpty $INSTALL/usr/bin
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/etc
|
||||||
|
cp $PKG_DIR/config/lircd_$REMOTE.conf $INSTALL/etc/lircd.conf
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/etc/conf.d
|
||||||
|
cp $PKG_DIR/config/sysconfig_$RECEIVER $INSTALL/etc/conf.d/lirc
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/lib/modules/$VER/lirc
|
||||||
|
cp $PKG_BUILD/drivers/*/*.ko $INSTALL/lib/modules/$VER/lirc
|
||||||
|
|
||||||
|
for MOD in `find $INSTALL/lib/modules/$VER/lirc -name *.ko`; do
|
||||||
|
$STRIP --strip-debug $MOD
|
||||||
|
done
|
||||||
|
|
||||||
|
$BUILD/module-init-tool*/build/depmod -b $INSTALL -v $VER > /dev/null
|
||||||
|
for i in `ls $INSTALL/lib/modules/*/modules.* | grep -v modules.dep | grep -v modules.alias | grep -v modules.symbols`; do
|
||||||
|
rm -f $i
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$DEVTOOLS" = yes ]; then
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/tools/ircat $INSTALL/usr/bin # do we need this?
|
||||||
|
cp $PKG_BUILD/tools/irexec $INSTALL/usr/bin # do we need this?
|
||||||
|
cp $PKG_BUILD/tools/irsend $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/tools/irw $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/tools/lircrcd $INSTALL/usr/bin # do we need this?
|
||||||
|
cp $PKG_BUILD/tools/mode2 $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/daemons/irrecord $INSTALL/usr/bin
|
||||||
|
cp $PKG_BUILD/tools/irsend $INSTALL/usr/bin # do we need this?
|
||||||
|
fi
|
14
packages/sysutils/lirc/need_unpack
Executable file
14
packages/sysutils/lirc/need_unpack
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||||
|
STAMP=$STAMPS/$1/unpack
|
||||||
|
|
||||||
|
test $PKG_DIR/config/linux.$TARGET_ARCH.conf -nt $STAMP -o \
|
||||||
|
$PKG_DIR/config/linux.$TARGET_PLATFORM.conf -nt $STAMP -o \
|
||||||
|
$PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf -nt $STAMP -o \
|
||||||
|
$PROJECT_DIR/$PROJECT/linux/linux.$TARGET_PLATFORM.conf -nt $STAMP -o \
|
||||||
|
$PKG_DIR/url -nt $STAMP && rm -f $STAMP
|
||||||
|
|
||||||
|
exit 0
|
94560
packages/sysutils/lirc/patches/lirc-0.8.6-autotools.diff
Normal file
94560
packages/sysutils/lirc/patches/lirc-0.8.6-autotools.diff
Normal file
File diff suppressed because it is too large
Load Diff
16
packages/sysutils/lirc/unpack
Executable file
16
packages/sysutils/lirc/unpack
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/build toolchain
|
||||||
|
|
||||||
|
sed -i "s%^CFLAGS=.*%%" $PKG_BUILD/configure
|
||||||
|
|
||||||
|
# use /dev/lirc0 by default instead of /dev/lirc
|
||||||
|
sed -i -e 's|#define DEV_LIRC "lirc"|#define DEV_LIRC "lirc0"|' \
|
||||||
|
$PKG_BUILD/config.h.in
|
||||||
|
|
||||||
|
# *cough* I wish there was a good way to disable alsa/portaudio/svgalib...
|
||||||
|
sed -i -e 's/asoundlib.h/ALSA_DISABLED/g' $PKG_BUILD/configure*
|
||||||
|
sed -i -e 's/portaudio.h/PORTAUDIO_DISABLED/g' $PKG_BUILD/configure*
|
||||||
|
sed -i -e 's/vga.h/SVGALIB_DISABLED/g' $PKG_BUILD/configure*
|
1
packages/sysutils/lirc/url
Normal file
1
packages/sysutils/lirc/url
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://prdownloads.sourceforge.net/lirc/lirc-0.8.6.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user