[packages] lirc: add more lirctools

This commit also makes some cosmetic changes.

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@37954 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
luka 2013-09-12 13:44:41 +00:00
parent 17c5e0e801
commit 187b61b32a

View File

@ -1,12 +1,11 @@
#
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006-2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
# we use the $LINUX_DIR variable, which is defined in kernel.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=lirc
@ -34,49 +33,18 @@ define Package/lirc
endef
define Package/lirc/description
LIRC is a package that allows you to decode and send
infra-red signals of many (but not all) commonly used
remote controls.
This package contains only lircd and lircd.conf!
tested drivers
--------------
ok:
userspace,accent,act200l,act220l,adaptec,alsa_usb,animax,asusdh,
atilibusb,atiusb,audio_alsa,breakoutbox,bte,bw6130,cmdir,creative,
creative_infracd,devinput,digimatrix,dsp,dvico,ea65,exaudiohauppauge,
hauppauge_dvb,hercules_smarttv_stereo,i2cuser,igorplugusb,imon,
imon_24g,imon_knob,imon_pad,imon_rsc,irdeo,irdeo_remote,it87,knc_one,
leadtek_pvr2000,livedrive_midi,livedrive_seq,logitech,macmini,mceusb,
mceusb2,mediafocusI,mouseremote,mouseremote_ps2,mp3anywhere,
packard_bell,parallel,pcmak,pcmak_usb,pctv,pixelview_bt878,provideo,
realmagic,remotemaster,sasem,sb0540,serial,silitek,sir,streamzap,tekram,
tekram_bt829,tira,ttusbir,tuxbox,tvbox,udp,uirt2,uirt2_raw,usb_uirt_raw,
usbx,serial
nok:
avermedia,avermedia_vdomate,avermedia98,bestbuy,bestbuy2,chronos,comX,
cph06x,flyvideo,gvbctv5pci,irreal,kworld,leadtek_0007,leadtek_0010,lptX,
nslu2,pixelview_pak,pixelview_pro,sa1100,
unknown:
audio (no portaudio), caraca (no caraca package), iguanaIR (missing headers),
irman (no libirman)
LIRC is a package that allows you to decode and send infra-red signals of many
(but not all) commonly used remote controls.
endef
define Package/lircdaemonadd
$(call Package/lirc/Default)
DEPENDS:=lirc
TITLE:=Daemon Additional Files
TITLE:=daemon additional files
endef
define Package/lircdaemonadd/description
Contains those additional daemon-tools:
-irrecord
-lircmd
Contains additional daemon-tools.
endef
define Package/lirctools
@ -86,25 +54,18 @@ define Package/lirctools
endef
define Package/lirctools/description
This package contains those lirc-tools:
-ircat: prints config strings to standard output, can be used to provide remote control input to scripts
-irexec: execute programs according to the pressed remote control buttons
-irpty: pseudo tty driver. Connects to lircd via socket to receive infra-red codes and converts them to key strokes
-irsend: application for sending IR-codes via lirc
-irw: watch the codes as lircd recognize them
-lircrcd: daemon that manages current mode for all applications
-mode2: shows the pulse/space length of a remote button
Contains additional lirc-tools.
endef
CONFIGURE_ARGS += \
--disable-nls \
--disable-static \
--with-kerneldir="$(LINUX_DIR)" \
--enable-sandboxed \
--with-driver="mceusb" \
--without-x \
--with-pic \
--with-gnu-ld \
--enable-sandboxed
--with-kerneldir="$(LINUX_DIR)" \
--with-pic \
--without-x \
--disable-nls \
--disable-static
define Package/lirc/conffiles
/etc/lircd.conf
@ -127,13 +88,18 @@ endef
define Package/lircdaemonadd/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/daemons/{irrecord,lircmd} $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/daemons/irrecord $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/daemons/lircmd $(1)/usr/sbin/
endef
define Package/lirctools/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/ircat $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/irexec $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/irpty $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/irsend $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/irw $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/lircrcd $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mode2 $(1)/usr/sbin/
endef