fix aiccu compile
[openwrt/svn-archive/archive.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.10
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:=9187ac1b302b9ab45f355242f453882e
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:=+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 --enable-static-bins \
38 --enable-ltdl-install \
39 --disable-dbus \
40 --disable-hal \
41 --disable-gconf \
42 --disable-tcpwrap \
43
44 CONFIGURE_VARS += \
45 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
46 LIBOIL_CFLAGS="-I$(STAGING_DIR)/usr/include/liboil-0.3/" \
47 LIBOIL_LIBS="-L$(STAGING_DIR)/usr/lib/" \
48
49 SUPP_LIBS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
54 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib $(SUPP_LIBS)" \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 X_CFLAGS="" \
57 all install
58 endef
59
60 define Package/pulseaudio/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
63 endef
64
65 $(eval $(call BuildPackage,pulseaudio))