Add pulseaudio, but broken !
[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.8
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:=184a41d5947e583d395f0a2541525fc2
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 @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         PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
37         LIBOIL_CFLAGS="-I$(STAGING_DIR)/usr/include/liboil-0.3/" \
38         LIBOIL_LIBS="-L$(STAGING_DIR)/usr/lib/" \
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR) \
42                 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
43                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
44                 DESTDIR="$(PKG_INSTALL_DIR)" \
45                 X_CFLAGS="" \
46                 all install
47 endef
48
49 define Package/pulseaudio/install       
50         $(INSTALL_DIR) $(1)/usr/bin
51         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
52 endef
53
54 $(eval $(call BuildPackage,pulseaudio))