9afb7195a4fe1afc5403ef9eaf8fc264953fc51a
[openwrt/svn-archive/archive.git] / sound / pulseaudio / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pulseaudio
11 PKG_VERSION:=0.9.23
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
16 PKG_MD5SUM:=7391205a337d1e04a9ff38025f684034
17
18 PKG_BUILD_DEPENDS:=intltool/host
19
20 PKG_FIXUP = libtool
21
22 PKG_INSTALL = 1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26
27 #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
28 define Package/pulseaudio
29 SECTION:=sound
30 CATEGORY:=Sound
31 DEPENDS:=+libspeexdsp +libgdbm +libsndfile +libsamplerate \
32 +libltdl +libpthread +librt +alsa-lib \
33 @!UCLIBC_VERSION_0_9_30_1 @!UCLIBC_VERSION_0_9_30_2 \
34 @!UCLIBC_VERSION_0_9_30_3 \
35 $(ICONV_DEPENDS) $(INTL_DEPENDS)
36 TITLE:=Network sound server
37 URL:=http://www.pulseaudio.org
38 endef
39
40 define Package/pa-tools
41 SECTION:=sound
42 CATEGORY:=Sound
43 DEPENDS:=+libgdbm +libsndfile +pulseaudio #+libpulse
44 TITLE:=Tools for Pulseaudio
45 URL:=http://www.pulseaudio.org
46 endef
47
48 CONFIGURE_ARGS += \
49 --with-system-user=root \
50 --with-system-group=root \
51 --with-access-group=root \
52 --enable-alsa \
53 --disable-avahi \
54 --disable-dbus \
55 --disable-hal \
56 --disable-gconf \
57 --disable-tcpwrap \
58 --disable-nls \
59 --disable-solaris \
60 --disable-glib2 \
61 --disable-jack \
62 --disable-asyncns \
63 --disable-lirc \
64 --disable-bluez \
65 --without-caps
66
67 CONFIGURE_VARS += \
68 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
69
70 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
71 TARGET_CFLAGS += -std=gnu99
72
73 define Build/InstallDev
74 $(INSTALL_DIR) \
75 $(1)/usr/lib/pkgconfig \
76 $(1)/usr/include/pulse \
77 $(1)/usr/lib
78 $(CP) \
79 $(PKG_INSTALL_DIR)/usr/include/pulse/* \
80 $(1)/usr/include/pulse
81 $(CP) \
82 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
83 $(1)/usr/lib/pkgconfig
84 $(CP) \
85 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
86 $(1)/usr/lib/
87 endef
88
89 define Package/pulseaudio/install
90 $(INSTALL_DIR) \
91 $(1)/usr/bin \
92 $(1)/usr/lib \
93 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
94 $(1)/etc/pulse \
95 $(1)/etc/init.d
96
97 $(INSTALL_BIN) \
98 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
99 $(1)/usr/bin/pulseaudio
100
101 $(INSTALL_BIN) \
102 ./files/pulseaudio.init \
103 $(1)/etc/init.d/pulseaudio
104
105 $(INSTALL_CONF) \
106 $(PKG_INSTALL_DIR)/etc/pulse/* \
107 $(1)/etc/pulse
108
109 $(CP) \
110 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
111 $(1)/usr/lib/
112
113 $(CP) \
114 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
115 $(1)/usr/lib/
116 $(CP) \
117 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
118 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
119 endef
120
121 define Package/pa-tools/install
122 $(INSTALL_DIR) \
123 $(1)/usr/bin
124
125 $(INSTALL_BIN) \
126 $(PKG_INSTALL_DIR)/usr/bin/pa* \
127 $(1)/usr/bin/
128 endef
129
130 $(eval $(call BuildPackage,pulseaudio))
131 $(eval $(call BuildPackage,pa-tools))