exfatprogs: update to 1.2.5
[feed/packages.git] / sound / pianod / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=pianod
9 PKG_VERSION:=174.11
10 PKG_RELEASE:=1
11
12 PKG_SOURCE_URL:=https://github.com/thess/pianod-sc/releases/download/$(PKG_VERSION)
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_HASH:=55e914ce6e3eb753b5a66cc915ffed29ec405c8913d16495a20409c3d73d8e33
15
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
17
18 PKG_LICENSE:=MIT VARIOUS
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/pianod
27 SECTION:=sound
28 CATEGORY:=Sound
29 DEPENDS:=+libao +libfaad2 +libmpg123 +libmbedtls +libjson-c +libgcrypt +libpthread
30 TITLE:=Pandora radio daemon
31 USERID:=pianod=88:pianod=88
32 URL:=http://deviousfish.com/pianod1/
33 endef
34
35 define Package/pianod/description
36 pianod is a Pandora music player client with line-oriented and Websocket control interfaces.
37 A simple protocol makes for easy clients, mix scripting, integration with a
38 home automation system, use as multiple-user music system for home or office.
39 Documentation and configuration information can be found at:
40 http://deviousfish.com/pianod1/
41 endef
42
43 define Package/pianod-client
44 SECTION:=sound
45 CATEGORY:=Sound
46 DEPENDS:=+pianod
47 TITLE:=Pandora radio daemon WebUI
48 URL:=http://deviousfish.com/pianod1/
49 endef
50
51 define Package/pianod-client/description
52 Web client UI and remote player viewer for pianod
53 Examples --- (Note: The viewer.* files need not be on the pianod host)
54 Main interface: http://pianod-host:4446/pianod
55 Remote viewer: file:///<path>/viewer.html?server=pianod-host:4446 --or--
56 http://pianod-host:4446/pianod/viewer.html?server=pianod-host:4446
57 endef
58
59 CONFIGURE_ARGS+= --with-mbedtls
60
61 PIANOD_CLIENT:=pianod-client-compiled-51.tar.gz
62
63 define Download/pianod-client
64 URL:=http://deviousfish.com/Downloads/pianod/
65 FILE:=$(PIANOD_CLIENT)
66 HASH:=1596ec2da30992e4008bbd6654333b025165399c3c7e22078f35bee6a438c5ad
67 endef
68
69 define Package/pianod/conffiles
70 /etc/pianod/startscript
71 /etc/pianod/users
72 endef
73
74 define Build/Prepare
75 $(call Build/Prepare/Default)
76 ifneq ($(CONFIG_PACKAGE_pianod-client),)
77 $(eval $(call Download,pianod-client))
78 mkdir -p $(PKG_BUILD_DIR)/pianod-client
79 $(TAR) -xf $(DL_DIR)/$(PIANOD_CLIENT) --strip=1 -C $(PKG_BUILD_DIR)/pianod-client
80 endif
81 endef
82
83 define Package/pianod-client/Configure
84 endef
85
86 define Package/pianod-client/Compile
87 endef
88
89 define Package/pianod/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pianod $(1)/usr/bin/
92 # These scripts need ksh (install mksh and link)
93 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/piano $(1)/usr/bin/
94 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/runmix $(1)/usr/bin/
95
96 $(INSTALL_DIR) $(1)/etc/pianod
97 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/startscript-example $(1)/etc/pianod/startscript
98 $(INSTALL_DIR) $(1)/etc/init.d
99 $(INSTALL_BIN) ./files/pianod.init $(1)/etc/init.d/pianod
100 endef
101
102 define Package/pianod-client/install
103 $(INSTALL_DIR) $(1)/www/pianod
104 $(INSTALL_DATA) $(PKG_BUILD_DIR)/pianod-client/*.{html,js,gif,jpeg,css} $(1)/www/pianod/
105 endef
106
107 $(eval $(call BuildPackage,pianod))
108 $(eval $(call BuildPackage,pianod-client))