Merge pulseaudio pending patching from #3360
[packages.git] / sound / pulseaudio / Makefile
1 #
2 # Copyright (C) 2007-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pulseaudio
12 PKG_VERSION:=0.9.13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/pulseaudio/
17 PKG_MD5SUM:=279fb92f08393a6a992d55e3ac9a006b
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pulseaudio
24   SECTION:=sound
25   CATEGORY:=Sound
26   DEPENDS:=+speex +libgdbm +liboil +libsamplerate +libsndfile +libatomicops +libltdl +dbus +libintl +libiconv @BROKEN
27   TITLE:=Network sound server
28   URL:=http://www.pulseaudio.org
29 endef
30
31 CONFIGURE_ARGS += \
32         --with-system-user=root \
33         --with-system-group=root \
34         --with-realtime-group=root \
35         --with-access-group=root \
36         --without-x \
37         --disable-dbus \
38         --disable-hal \
39         --disable-gconf \
40         --disable-tcpwrap \
41         --disable-nls \
42         --disable-solaris \
43         --disable-glib2 \
44         --disable-jack \
45         --disable-asyncns \
46         --disable-polkit \
47         --disable-samplerate \
48         --disable-lirc \
49         --disable-bluez \
50         --without-caps
51
52 CONFIGURE_VARS += \
53         PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
54
55 SUPP_LIBS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
56
57 define Build/Compile
58         $(MAKE) -C $(PKG_BUILD_DIR) \
59                 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
60                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib $(SUPP_LIBS)" \
61                 DESTDIR="$(PKG_INSTALL_DIR)" \
62                 LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
63                 X_CFLAGS="" \
64                 all install
65 endef
66
67 define Package/pulseaudio/install       
68         $(INSTALL_DIR) $(1)/usr/bin
69         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
70 endef
71
72 $(eval $(call BuildPackage,pulseaudio))