summaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-remote/files/patch-Makefile
blob: 45e0d87e4b88ad9fd7c27f3485525b3b06683b20 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,12 @@ DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I
 DEFINES += -DREMOTE_FEATURE_LIRC
 DEFINES += -DREMOTE_FEATURE_TCPIP
 
+ifeq ($(OSTYPE),FreeBSD)
+DEFINES += -DREMOTE_FEATURE_UHID
+else
+DEFINES += -DREMOTE_FEATURE_DEVINPUT
+endif
+
 ### The object files (add further files here):
 
 OBJS = $(PLUGIN).o ttystatus.o
@@ -81,9 +87,9 @@ $(DEPFILE): Makefile
 
 ### Internationalization (I18N):
 
-ifneq ($(shell grep 'LOCALEDIR' $(VDRDIR)/Makefile),)
+#ifneq ($(shell grep 'LOCALEDIR' $(VDRDIR)/Makefile),)
 PODIR     = po
 LOCALEDIR = $(VDRDIR)/locale
 I18Npo    = $(wildcard $(PODIR)/*.po)
 I18Nmo    = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
 I18Ndirs  = $(notdir $(foreach file, $(I18Npo), $(basename $(file))))
@@ -104,10 +110,10 @@ i18n: $(I18Nmo)
 	    mkdir -p $(LOCALEDIR)/$$i/LC_MESSAGES;\
 	    cp $(PODIR)/$$i.mo $(LOCALEDIR)/$$i/LC_MESSAGES/vdr-$(PLUGIN).mo;\
 	    done
-else
-OBJS += i18n.o
-i18n: ;
-endif
+#else
+#OBJS += i18n.o
+#i18n: ;
+#endif
 
 ### Targets:
 
@@ -126,3 +132,6 @@ dist: clean
 clean:
 	@-rm -f $(PODIR)/*.mo $(PODIR)/*.pot
 	@-rm -f *.o $(DEPFILE) *.so *.tgz core* *~
+
+install:
+	${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) ${DESTDIR}$(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION)