2 # Copyright (C) 2015-2017 Ted Hess <thess@kitschensync.net>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=https
://github.com
/thess
/pianod-sc
/releases
/download
/$(PKG_VERSION
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_MD5SUM
:=0bae19b0c1e309343bc1b351e521173fe439431542a949dd2bacf4165cce5200
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
20 PKG_LICENSE
:=MIT VARIOUS
21 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
31 DEPENDS
:=+libao
+libfaad2
+libmad
+libmbedtls
+libjson-c
+libgcrypt
+libpthread
32 TITLE
:=Pandora radio daemon
33 USERID
:=pianod
=88:pianod
=88
34 URL
:=http
://deviousfish.com
/pianod1
/
37 define Package
/pianod
/description
38 pianod is a Pandora music player client with line-oriented and Websocket control interfaces.
39 A simple protocol makes for easy clients
, mix scripting
, integration with a
40 home automation system
, use
as multiple-user music system for home or office.
41 Documentation and configuration information can be found at
:
42 http
://deviousfish.com
/pianod1
/
45 define Package
/pianod-client
49 TITLE
:=Pandora radio daemon WebUI
50 URL
:=http
://deviousfish.com
/pianod1
/
53 define Package
/pianod-client
/description
54 Web client UI and remote player viewer for pianod
55 Examples
--- (Note
: The viewer.
* files need not be on the pianod host
)
56 Main interface
: http
://pianod-host
:4446/pianod
57 Remote viewer
: file
:///<path
>/viewer.html?server
=pianod-host
:4446 --or--
58 http
://pianod-host
:4446/pianod
/viewer.html?server
=pianod-host
:4446
61 CONFIGURE_ARGS
+= --with-mbedtls
63 PIANOD_CLIENT
:=pianod-client-compiled-51.
tar.gz
65 define Download
/pianod-client
66 URL
:=http
://deviousfish.com
/Downloads
/pianod
/
67 FILE
:=$(PIANOD_CLIENT
)
68 MD5SUM
:=abbdee5627bcee6a00c8304da8b4e2e7
71 define Package
/pianod
/conffiles
72 /etc
/pianod
/startscript
77 $(call Build
/Prepare
/Default
)
78 ifneq ($(CONFIG_PACKAGE_pianod-client
),)
79 $(eval
$(call Download
,pianod-client
))
80 mkdir
-p
$(PKG_BUILD_DIR
)/pianod-client
81 $(TAR
) -xf
$(DL_DIR
)/$(PIANOD_CLIENT
) --strip=1 -C
$(PKG_BUILD_DIR
)/pianod-client
85 define Package
/pianod-client
/Configure
88 define Package
/pianod-client
/Compile
91 define Package
/pianod
/install
92 $(INSTALL_DIR
) $(1)/usr
/bin
93 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pianod
$(1)/usr
/bin
/
94 # These scripts need ksh (install mksh and link)
95 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/piano $(1)/usr/bin/
96 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/runmix $(1)/usr/bin/
98 $(INSTALL_DIR
) $(1)/etc
/pianod
99 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/contrib
/startscript-example
$(1)/etc
/pianod
/startscript
100 $(INSTALL_DIR
) $(1)/etc
/init.d
101 $(INSTALL_BIN
) .
/files
/pianod.init
$(1)/etc
/init.d
/pianod
104 define Package
/pianod-client
/install
105 $(INSTALL_DIR
) $(1)/www
/pianod
106 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/pianod-client
/*.
{html
,js
,gif
,jpeg
,css
} $(1)/www
/pianod
/
109 $(eval
$(call BuildPackage
,pianod
))
110 $(eval
$(call BuildPackage
,pianod-client
))