summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/mqttmpd/Makefile28
-rw-r--r--package/mqttmpd/patches/patch-Makefile32
2 files changed, 60 insertions, 0 deletions
diff --git a/package/mqttmpd/Makefile b/package/mqttmpd/Makefile
new file mode 100644
index 000000000..264e82307
--- /dev/null
+++ b/package/mqttmpd/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= mqttmpd
+PKG_VERSION:= r5
+PKG_RELEASE:= 1
+PKG_GIT:= tag
+PKG_DESCR:= mqtt mpd bridge
+PKG_SECTION:= mm/audio
+PKG_DEPENDS:= mosquitto mpd
+PKG_BUILDDEP:= mosquitto
+PKG_URL:= https://github.com/kurt-vd/mqttmpd
+PKG_SITES:= https://github.com/kurt-vd/mqttmpd.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,MQTTMPD,mqttmpd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= manual
+
+mqttmpd-install:
+ $(INSTALL_DIR) $(IDIR_MQTTMPD)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/mqttmpd \
+ $(IDIR_MQTTMPD)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
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)