shairplay: remove
[feed/packages.git] / net / openelp / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=openelp
4 PKG_VERSION:=0.9.2
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://codeload.github.com/cottsay/openelp/tar.gz/v$(PKG_VERSION)?
9 PKG_HASH:=1427a2fe6f22856a66b9c687d7f14b7915abeeed64951ae596084f9366ec4256
10
11 PKG_MAINTAINER:=Scott K Logan <logans@cottsay.net>
12 PKG_LICENSE:=BSD-3-Clause
13 PKG_LICENSE_FILES:=LICENSE
14
15 CMAKE_INSTALL:=1
16
17 include $(INCLUDE_DIR)/package.mk
18 include $(INCLUDE_DIR)/cmake.mk
19
20 define Package/libopenelp
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Open Source EchoLink Proxy Library
24 URL:=https://github.com/cottsay/openelp
25 DEPENDS:=+libpcre2
26 ABI_VERSION:=0
27 endef
28
29 define Package/openelp
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=Open Source EchoLink Proxy
33 URL:=https://github.com/cottsay/openelp
34 DEPENDS:=+libopenelp
35 endef
36
37 define Package/libopenelp/description
38 Library backing OpenELP - an open source EchoLink proxy.
39 endef
40
41 define Package/openelp/description
42 OpenELP is an open source EchoLink proxy for Linux and Windows. It aims
43 to be efficient and maintain a small footprint, while still implementing
44 all of the features present in the official EchoLink proxy.
45
46 OpenELP also has the ability to bind to multiple network interfaces
47 which are routed to unique external IP addresses, and therefore is
48 capable of accepting connections from multiple clients simultaneously.
49 endef
50
51 CMAKE_OPTIONS += \
52 -DSYSCONF_INSTALL_DIR=/etc
53
54 define Package/openelp/conffiles
55 /etc/ELProxy.conf
56 endef
57
58 define Package/libopenelp/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopenelp.so.* $(1)/usr/lib/
61 endef
62
63 define Package/openelp/install
64 $(INSTALL_DIR) $(1)/etc
65 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/ELProxy.conf $(1)/etc/
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openelpd $(1)/usr/bin/
68 $(INSTALL_DIR) $(1)/etc/init.d
69 $(INSTALL_BIN) ./files/openelp.init $(1)/etc/init.d/openelp
70 endef
71
72 $(eval $(call BuildPackage,libopenelp))
73 $(eval $(call BuildPackage,openelp))