1
1
SPK_NAME = lirc
2
- SPK_VERS = 0.8.7
2
+ SPK_VERS = 0.9.0
3
3
SPK_REV = 1
4
4
SPK_ICON = src/lirc.png
5
5
6
- DEPENDS = cross/$(SPK_NAME )
6
+ # Abort for ARCHs that won't compile LIRC cleanly
7
+ ifeq ($(findstring $(ARCH ) ,powerpc 88f5281) ,$(ARCH ) )
8
+ PRE_DEPEND_TARGET = lirc_abort
9
+ ABORT_MSG = "Sorry, this package does not support the $(ARCH ) architecture."
10
+ endif
11
+
12
+ # Use older LIRC build for ARCHs with kernel < 2.6.36
13
+ ifneq ($(findstring $(ARCH ) ,x86 bromolow cedarview) ,$(ARCH ) )
14
+ SPK_VERS = 0.8.7
15
+ endif
16
+
17
+ DEPENDS = cross/$(SPK_NAME ) -$(SPK_VERS )
7
18
8
- MAINTAINER = Dave Russell
19
+ MAINTAINER = SynoCommunity
9
20
DESCRIPTION = LIRC daemon decodes infrared signals and provides them on a Unix domain socket
10
21
RELOAD_UI = no
11
22
DISPLAY_NAME = LIRC
@@ -25,17 +36,22 @@ POST_STRIP_TARGET = lirc_extra_install
25
36
26
37
include ../../mk/spksrc.spk.mk
27
38
28
- .PHONY : lirc_extra_install
39
+ .PHONY : lirc_extra_install lirc_abort
29
40
lirc_extra_install :
30
41
install -m 755 -d $(STAGING_DIR ) /var
31
42
install -m 755 -d $(STAGING_DIR ) /var/log
32
43
install -m 755 -d $(STAGING_DIR ) /etc/lirc/scripts
33
44
install -m 755 src/send_ir.sh $(STAGING_DIR ) /etc/lirc/scripts/send_ir.sh
34
45
install -m 644 src/lircrc $(STAGING_DIR ) /etc/lirc/lircrc
35
46
install -m 644 src/lircd.conf $(STAGING_DIR ) /etc/lirc/lircd.conf
36
- install src/install_uifile.tmpl $(WIZARDS_DIR ) /install_uifile
37
47
cp -R $(WORK_DIR ) /$(SPK_NAME ) -$(SPK_VERS ) /remotes $(STAGING_DIR ) /
38
- for DRIVER in ` ls $( STAGING_DIR) /lib/modules | grep -v lirc_dev.ko | awk -F' _' ' {print $$2}' | awk -F' .' ' {print $$1}' ` ; do \
39
- sed -i " s/@keys@/\" key\" : \" lirc_driver_$$ {DRIVER}\" ,\n \" desc\" : \" $$ {DRIVER}\" \n }, {\n@keys@/" $(WIZARDS_DIR ) /install_uifile; \
40
- done ; \
41
- sed -i ' s/@keys@//' $(WIZARDS_DIR ) /install_uifile
48
+ install src/install_uifile.tmpl $(WIZARDS_DIR ) /install_uifile
49
+ @for DRIVER in ` ls $( STAGING_DIR) /lib/modules | grep -v lirc_dev.ko | awk -F' _' ' {print $$2}' | awk -F' .' ' {print $$1}' ` ; do \
50
+ # DSM UI only shows 6 radio buttons on a screen, so reverting to non-preferred textbox \
51
+ # sed -i "s/@keys@/\"key\": \"lirc_driver_$${DRIVER}\",\n \"desc\": \"$${DRIVER}\"\n }, {\n@keys@/" $(WIZARDS_DIR)/install_uifile; \
52
+ sed -i " s/@keys@/ $$ {DRIVER}@keys@/" $(WIZARDS_DIR ) /install_uifile; \
53
+ done ;
54
+ @sed -i ' s/@keys@//' $(WIZARDS_DIR ) /install_uifile
55
+ lirc_abort :
56
+ @$(MSG ) ABORTING: $(ABORT_MSG )
57
+ @exit 1
0 commit comments