diff options
author | Joerg Seitter <adk@seitter.net> | 2020-04-24 14:11:23 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2020-04-27 10:57:05 +0200 |
commit | e2b433dcc1c75f320dbfc86162a944345309d342 (patch) | |
tree | ba650484d38e29a92bb6aaca4ce56d71bfb6cd9c /package/mqttmpd/patches/patch-Makefile | |
parent | 66664edea6e22de82b681265b38f53f9f33eac92 (diff) |
new package mqttmpd
Signed-off-by: Joerg Seitter <adk@seitter.net>
Diffstat (limited to 'package/mqttmpd/patches/patch-Makefile')
-rw-r--r-- | package/mqttmpd/patches/patch-Makefile | 32 |
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) |