2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2012.01.10
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://6xq.net/static/projects/pianobar
16 PKG_MD5SUM:=448c57d65c71158674e8b30a8cfa217e
18 PKG_BUILD_DEPENDS:=libao libfaad2 libmad
21 include $(INCLUDE_DIR)/package.mk
23 define Package/pianobar/Default
26 URL:=http://6xq.net/projects/pianobar/
29 define Package/pianobar/Default/description
30 Pianobar is a free/open-source, console-based replacement for Pandora’s flash
34 define Package/pianobar
35 $(call Package/pianobar/Default)
38 DEPENDS+= +libao +libfaad2 +libmad +libpiano +libpthread
39 TITLE+= console client
42 define Package/pianobar/description
43 $(call Package/pianobar/Default/description)
46 define Package/libpiano
47 $(call Package/pianobar/Default)
53 define Package/libpiano/description
54 $(call Package/pianobar/Default/description)
55 This package contains the libpiano shared library.
58 TARGET_CFLAGS += -std=c99
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpiano.{a,so*} $(1)/usr/lib/
71 define Package/pianobar/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pianobar $(1)/usr/bin/
76 define Package/libpiano/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpiano.so.* $(1)/usr/lib/
81 $(eval $(call BuildPackage,pianobar))
82 $(eval $(call BuildPackage,libpiano))