2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
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
16 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
18 PKG_LICENSE
:=MIT VARIOUS
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
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
/
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
/
43 define Package
/pianod-client
47 TITLE
:=Pandora radio daemon WebUI
48 URL
:=http
://deviousfish.com
/pianod1
/
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
59 CONFIGURE_ARGS
+= --with-mbedtls
61 PIANOD_CLIENT
:=pianod-client-compiled-51.
tar.gz
63 define Download
/pianod-client
64 URL
:=http
://deviousfish.com
/Downloads
/pianod
/
65 FILE
:=$(PIANOD_CLIENT
)
66 HASH
:=1596ec2da30992e4008bbd6654333b025165399c3c7e22078f35bee6a438c5ad
69 define Package
/pianod
/conffiles
70 /etc
/pianod
/startscript
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
83 define Package
/pianod-client
/Configure
86 define Package
/pianod-client
/Compile
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/
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
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
/
107 $(eval
$(call BuildPackage
,pianod
))
108 $(eval
$(call BuildPackage
,pianod-client
))