aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/v4l-utils/files/patch-keytable__Makefile
blob: 181a3cc40549085dfff13c974efc83b7ed04f1a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- keytable/Makefile.orig  2011-06-01 13:23:03.000000000 +0200
+++ keytable/Makefile   2011-06-04 09:43:14.000000000 +0200
@@ -34,12 +34,14 @@
 install: $(TARGETS)
    mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)/etc
    install -m 755 $(TARGETS) $(DESTDIR)$(PREFIX)/bin
-   install -m 644 -p rc_maps.cfg $(DESTDIR)/etc
-   install -m 755 -d $(DESTDIR)/etc/rc_keymaps
-   install -m 644 -p rc_keymaps/* $(DESTDIR)/etc/rc_keymaps
-   install -m 755 -d $(DESTDIR)/lib/udev/rules.d
-   install -m 644 -p 70-infrared.rules $(DESTDIR)/lib/udev/rules.d
-   install -m 755 -d $(DESTDIR)$(MANDIR)/man1
-   install -m 644 -p ir-keytable.1 $(DESTDIR)$(MANDIR)/man1
+   install -m 644 -p rc_maps.cfg $(DESTDIR)$(PREFIX)/etc
+   install -m 755 -d $(DESTDIR)$(PREFIX)/etc/rc_keymaps
+   install -m 644 -p rc_keymaps/* $(DESTDIR)$(PREFIX)/etc/rc_keymaps
+ifdef UDEV
+   install -m 755 -d $(DESTDIR)$(PREFIX)/etc/udev/rules.d
+   install -m 644 -p 70-infrared.rules $(DESTDIR)$(PREFIX)/etc/udev/rules.d
+endif
+   install -m 755 -d $(DESTDIR)$(PREFIX)/man/man1
+   install -m 644 -p ir-keytable.1 $(DESTDIR)$(PREFIX)/man/man1
 
 include ../../Make.rules