11fa1037f47c1b94ff741bee12a582e470de2477
[packages.git] / sound / pulseaudio / Makefile
1 #
2 # Copyright (C) 2007 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.9
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:=8a6f7a9611bb194d94311764022b197
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/pulseaudio
22   SECTION:=sound
23   CATEGORY:=Sound
24   DEPENDS:=+liboil +libsamplerate +libsndfile +libatomicops +libltdl +dbus +libintl +libiconv @BROKEN
25   TITLE:=Network sound server
26   URL:=http://www.pulseaudio.org
27 endef
28
29 CONFIGURE_ARGS += \
30         --with-system-user=root \
31         --with-system-group=root \
32         --with-realtime-group=root \
33         --with-access-group=root \
34         --without-x \
35         --enable-static-bins \
36         --disable-dbus \
37         --disable-hal \
38         --disable-gconf \
39         --disable-tcpwrap \
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/" \
43
44 SUPP_LIBS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
45
46 define Build/Compile
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)" \
51                 X_CFLAGS="" \
52                 all install
53 endef
54
55 define Package/pulseaudio/install       
56         $(INSTALL_DIR) $(1)/usr/bin
57         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
58 endef
59
60 $(eval $(call BuildPackage,pulseaudio))