poco: moved to github master
[openwrt.org/packages.git] / sound / pianobar / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# Copyright (C) 2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=pianobar
PKG_VERSION:=2012.01.10
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://6xq.net/static/projects/pianobar
PKG_MD5SUM:=448c57d65c71158674e8b30a8cfa217e
 
PKG_BUILD_DEPENDS:=libao libfaad2 libmad
PKG_INSTALL:=1
 
include $(INCLUDE_DIR)/package.mk
 
define Package/pianobar/Default
  DEPENDS:=+libgnutls
  TITLE:=Pandora radio
  URL:=http://6xq.net/projects/pianobar/
endef
 
define Package/pianobar/Default/description
  Pianobar is a free/open-source, console-based replacement for Pandora’s flash
  player.
endef
 
define Package/pianobar
  $(call Package/pianobar/Default)
  SECTION:=sound
  CATEGORY:=Sound
  DEPENDS+= +libao +libfaad2 +libmad +libpiano +libpthread
  TITLE+= console client
endef
 
define Package/pianobar/description
  $(call Package/pianobar/Default/description)
endef
 
define Package/libpiano
  $(call Package/pianobar/Default)
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE+= library
endef
 
define Package/libpiano/description
  $(call Package/pianobar/Default/description)
  This package contains the libpiano shared library.
endef
 
TARGET_CFLAGS += -std=c99
 
MAKE_FLAGS += \
        DYNLINK="1" \
        PREFIX="/usr"
 
define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpiano.{a,so*} $(1)/usr/lib/
endef
 
define Package/pianobar/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pianobar $(1)/usr/bin/
endef
 
define Package/libpiano/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpiano.so.* $(1)/usr/lib/
endef
 
$(eval $(call BuildPackage,pianobar))
$(eval $(call BuildPackage,libpiano))
 
comments