2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/pulseaudio/
17 PKG_MD5SUM:=8a6f7a9611bb194d94311764022b197
19 include $(INCLUDE_DIR)/package.mk
21 define Package/pulseaudio
24 DEPENDS:=+liboil +libsamplerate +libsndfile +libatomicops +libltdl +dbus +libintl +libiconv @BROKEN
25 TITLE:=Network sound server
26 URL:=http://www.pulseaudio.org
30 --with-system-user=root \
31 --with-system-group=root \
32 --with-realtime-group=root \
33 --with-access-group=root \
35 --enable-static-bins \
40 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
41 LIBOIL_CFLAGS="-I$(STAGING_DIR)/usr/include/liboil-0.3/" \
42 LIBOIL_LIBS="-L$(STAGING_DIR)/usr/lib/" \
44 SUPP_LIBS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
49 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib $(SUPP_LIBS)" \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
55 define Package/pulseaudio/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
60 $(eval $(call BuildPackage,pulseaudio))