[packages] lirc: add more lirctools
authorLuka Perkov <luka@openwrt.org>
Thu, 12 Sep 2013 13:44:41 +0000 (13:44 +0000)
committerLuka Perkov <luka@openwrt.org>
Thu, 12 Sep 2013 13:44:41 +0000 (13:44 +0000)
This commit also makes some cosmetic changes.

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

utils/lirc/Makefile

index 00273b7c2eadcb36b19d1e89e1e91a7397cf52d2..e638287ab0fdde3fb47ce84d4d5f22ae15c784b4 100644 (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
@@ -21,62 +20,31 @@ PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
-define  Package/lirc/Default
+define Package/lirc/Default
     SECTION:=utils
     CATEGORY:=Utilities
     URL:=http://lirc.org/
 endef
 
-define  Package/lirc
+define Package/lirc
     $(call Package/lirc/Default)
     TITLE:=LIRC - Linux Infrared Remote Control
     MENU:=1
 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
+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
@@ -114,7 +75,7 @@ MAKE_FLAGS += \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        SUBDIRS="daemons tools"
 
-define  Package/lirc/install
+define Package/lirc/install
        $(INSTALL_DIR) $(1)/usr/sbin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemons/lircd $(1)/usr/sbin/
        $(INSTALL_DIR) $(1)/etc
@@ -125,15 +86,20 @@ endef
 #      $(CP) $(PKG_BUILD_DIR)/drivers/lirc_mceusb2/lirc_mceusb2.ko
 #depends on the selected module
 
-define  Package/lircdaemonadd/install
+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
+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