d5d62c290850e5d33b4a073f0f57339638768a5a
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pulseaudio
11 PKG_VERSION:=0.9.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/pulseaudio/
16 PKG_MD5SUM:=279fb92f08393a6a992d55e3ac9a006b
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pulseaudio
23   SECTION:=sound
24   CATEGORY:=Sound
25   DEPENDS:=+libspeex +libgdbm +liboil +libsamplerate +libsndfile +libatomicops +libltdl +dbus +libintl +libiconv @BROKEN
26   TITLE:=Network sound server
27   URL:=http://www.pulseaudio.org
28 endef
29
30 CONFIGURE_ARGS += \
31         --with-system-user=root \
32         --with-system-group=root \
33         --with-realtime-group=root \
34         --with-access-group=root \
35         --without-x \
36         --disable-dbus \
37         --disable-hal \
38         --disable-gconf \
39         --disable-tcpwrap \
40         --disable-nls \
41         --disable-solaris \
42         --disable-glib2 \
43         --disable-jack \
44         --disable-asyncns \
45         --disable-polkit \
46         --disable-samplerate \
47         --disable-lirc \
48         --disable-bluez \
49         --without-caps
50
51 CONFIGURE_VARS += \
52         PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
53
54 SUPP_LIBS:=-L$(STAGING_DIR)/usr/lib/libintl/lib -L$(STAGING_DIR)/usr/lib/libiconv/lib
55
56 define Build/Compile
57         $(MAKE) -C $(PKG_BUILD_DIR) \
58                 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
59                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib $(SUPP_LIBS)" \
60                 DESTDIR="$(PKG_INSTALL_DIR)" \
61                 LIBLTDL="$(STAGING_DIR)/usr/lib/libltdl.la" \
62                 X_CFLAGS="" \
63                 all install
64 endef
65
66 define Package/pulseaudio/install       
67         $(INSTALL_DIR) $(1)/usr/bin
68         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
69 endef
70
71 $(eval $(call BuildPackage,pulseaudio))