81eb12ea8cf81b7122347db962cf83370aff7a1a
[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.22
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/pulseaudio/
16 PKG_MD5SUM:=ca85ab470669b05e100861654cf5eb3c
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
26 #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
27 define Package/pulseaudio
28 SECTION:=sound
29 CATEGORY:=Sound
30 DEPENDS:=+libspeexdsp +libgdbm +liboil +libsndfile +libatomicops +libltdl +dbus +libpthread +librt +libintl +libiconv @BROKEN
31 TITLE:=Network sound server
32 URL:=http://www.pulseaudio.org
33 endef
34
35 define Package/pa-tools
36 SECTION:=sound
37 CATEGORY:=Sound
38 DEPENDS:=+libgdbm +libsndfile +pulseaudio #+libpulse
39 TITLE:=Tools for Pulseaudio
40 URL:=http://www.pulseaudio.org
41 endef
42
43 CONFIGURE_ARGS += \
44 --with-system-user=root \
45 --with-system-group=root \
46 --with-realtime-group=root \
47 --with-access-group=root \
48 --without-x \
49 --disable-dbus \
50 --disable-hal \
51 --disable-gconf \
52 --disable-tcpwrap \
53 --disable-nls \
54 --disable-solaris \
55 --disable-glib2 \
56 --disable-jack \
57 --disable-asyncns \
58 --disable-polkit \
59 --disable-samplerate \
60 --disable-lirc \
61 --disable-bluez \
62 --without-caps
63
64
65 CONFIGURE_VARS += \
66 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
67
68 #SUPP_LIBS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
69 TARGET_CFLAGS += -std=gnu99
70
71 define Package/pulseaudio/install
72 $(INSTALL_DIR) \
73 $(1)/usr/bin \
74 $(1)/usr/lib \
75 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
76 $(1)/etc/pulse
77
78 $(INSTALL_BIN) \
79 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
80 $(1)/usr/bin/pulseaudio
81
82 $(INSTALL_CONF) \
83 $(PKG_INSTALL_DIR)/etc/pulse/* \
84 $(1)/etc/pulse
85
86 $(CP) \
87 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
88 $(1)/usr/lib/
89
90 $(CP) \
91 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
92 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
93 endef
94
95 define Package/pa-tools/install
96 $(INSTALL_DIR) \
97 $(1)/usr/bin
98
99 $(INSTALL_BIN) \
100 $(PKG_INSTALL_DIR)/usr/bin/pa* \
101 $(1)/usr/bin/
102 endef
103
104 $(eval $(call BuildPackage,pulseaudio))
105 $(eval $(call BuildPackage,pa-tools))