summaryrefslogtreecommitdiff
path: root/package/mqttmpd/patches/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/mqttmpd/patches/patch-Makefile')
-rw-r--r--package/mqttmpd/patches/patch-Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/mqttmpd/patches/patch-Makefile b/package/mqttmpd/patches/patch-Makefile
new file mode 100644
index 000000000..81036fe66
--- /dev/null
+++ b/package/mqttmpd/patches/patch-Makefile
@@ -0,0 +1,32 @@
+--- mqttmpd-r5.orig/Makefile 2020-04-22 16:34:15.000000000 +0200
++++ mqttmpd-r5/Makefile 2020-04-23 23:12:16.506689542 +0200
+@@ -1,12 +1,12 @@
+ PROGS = mqttmpd
+ default : $(PROGS)
+
+-PREFIX = /usr/local
++PREFIX = /usr
+
+-CC = gcc
+-CFLAGS = -Wall
+-CPPFLAGS= -D_GNU_SOURCE
+-LDLIBS = -lmosquitto
++#CC = gcc
++CFLAGS+= -Wall
++CPPFLAGS+= -D_GNU_SOURCE
++LDLIBS+= -lmosquitto
+ INSTOPTS= -s
+
+ VERSION := $(shell git describe --tags --always)
+@@ -15,8 +15,10 @@ VERSION := $(shell git describe --tags -
+
+ CPPFLAGS += -DVERSION=\"$(VERSION)\"
+
++all: $(PROGS)
++
+ install: $(PROGS)
+- $(foreach PROG, $(PROGS), install -vp -m 0777 $(INSTOPTS) $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG);)
++ $(foreach PROG, $(PROGS), install -vp -D -m 0777 $(INSTOPTS) $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG);)
+
+ clean:
+ rm -rf $(wildcard *.o) $(PROGS)