[packages_10.03.2] wide-dhcpv6: backport r28929, r29222
[10.03/packages.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-dbus \
54         --disable-hal \
55         --disable-gconf \
56         --disable-tcpwrap \
57         --disable-nls \
58         --disable-solaris \
59         --disable-glib2 \
60         --disable-jack \
61         --disable-asyncns \
62         --disable-lirc \
63         --disable-bluez \
64         --without-caps
65
66 CONFIGURE_VARS += \
67         PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
68
69 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
70 TARGET_CFLAGS += -std=gnu99
71
72 define Build/InstallDev
73         $(INSTALL_DIR) \
74                 $(1)/usr/lib/pkgconfig \
75                 $(1)/usr/include/pulse \
76                 $(1)/usr/lib
77         $(CP) \
78                 $(PKG_INSTALL_DIR)/usr/include/pulse/* \
79                 $(1)/usr/include/pulse
80         $(CP) \
81                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
82                 $(1)/usr/lib/pkgconfig
83         $(CP) \
84                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
85                 $(1)/usr/lib/
86 endef
87
88 define Package/pulseaudio/install
89         $(INSTALL_DIR) \
90                 $(1)/usr/bin \
91                 $(1)/usr/lib \
92                 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
93                 $(1)/etc/pulse \
94                 $(1)/etc/init.d
95
96         $(INSTALL_BIN) \
97                 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
98                 $(1)/usr/bin/pulseaudio
99
100         $(INSTALL_BIN) \
101                 ./files/pulseaudio.init \
102                 $(1)/etc/init.d/pulseaudio
103
104         $(INSTALL_CONF) \
105                 $(PKG_INSTALL_DIR)/etc/pulse/* \
106                 $(1)/etc/pulse
107
108         $(CP) \
109                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
110                 $(1)/usr/lib/
111
112         $(CP) \
113                 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
114                 $(1)/usr/lib/
115         $(CP) \
116                 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
117                 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
118 endef
119
120 define Package/pa-tools/install
121         $(INSTALL_DIR) \
122                 $(1)/usr/bin
123
124         $(INSTALL_BIN) \
125                 $(PKG_INSTALL_DIR)/usr/bin/pa* \
126                 $(1)/usr/bin/
127 endef
128
129 $(eval $(call BuildPackage,pulseaudio))
130 $(eval $(call BuildPackage,pa-tools))