summaryrefslogtreecommitdiffstats
path: root/multimedia/rtpmidid/Makefile
blob: f01fb52b49c3306fdaf2a91e85b0c7b3b7d77c00 (plain)
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
include $(TOPDIR)/rules.mk

PKG_NAME:=rtpmidid
PKG_VERSION:=26.01
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/davidmoreno/rtpmidid
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=f4774f0b27b14aa0529ef566cdec9f04480ae9ba498650d454ed23ef96822a03

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=GPL-3.0-or-later LGPL-2.1-or-later
PKG_LICENSE_FILES:=LICENSE.md LICENSE-lib.txt LICENSE-daemon.txt

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

# There seems to be problem with c++20 str format and constexpr.
# Force c++17 and libfmt and re-evaluate at the next release.
CMAKE_OPTIONS += \
	-DCPP_VERSION=17 \
	-DUSE_FMT=ON

define Package/rtpmidid
  SECTION:=sound
  CATEGORY:=Sound
  TITLE:=RTP MIDI User Space Driver Daemon for Linux
  URL:=https://github.com/davidmoreno/rtpmidid/
  DEPENDS:=+alsa-lib +libavahi-client +libfmt
endef

define Package/rtpmidid/description
rtpmidid is an user daemon, and when a RTP MIDI device is announced
using mDNS (also known as Zeroconf, Avahi, and multicast DNS) it
exposes this ALSA sequencer port.
endef

define Build/Install
endef

define Package/rtpmidid/install
	$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rtpmidid $(1)/usr/bin/
	$(INSTALL_BIN) ./files/rtpmidid.init $(1)/etc/init.d/rtpmidid
endef

$(eval $(call BuildPackage,rtpmidid))