source: packages/sound/pulseaudio/Makefile @ 25319

Last change on this file since 25319 was 25319, checked in by jow, 5 years ago

[packages] make libintl and libiconv stub/full implementations switchable, use the new include/nls.mk infrastructure for it

  • Property copyright set to Copyright (C) 2007-2008 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1#
2# Copyright (C) 2007-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pulseaudio
11PKG_VERSION:=0.9.22
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/pulseaudio/
16PKG_MD5SUM:=ca85ab470669b05e100861654cf5eb3c
17
18PKG_BUILD_DEPENDS:=intltool/host
19
20PKG_FIXUP = libtool
21
22PKG_INSTALL = 1
23
24include $(INCLUDE_DIR)/package.mk
25include $(INCLUDE_DIR)/nls.mk
26
27#TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
28define Package/pulseaudio
29  SECTION:=sound
30  CATEGORY:=Sound
31  DEPENDS:=+libspeexdsp +libgdbm +liboil +libsndfile +libatomicops +libltdl +dbus +libpthread +librt +alsa-lib $(ICONV_DEPENDS) $(INTL_DEPENDS) @BROKEN
32  TITLE:=Network sound server
33  URL:=http://www.pulseaudio.org
34endef
35
36define Package/pa-tools
37  SECTION:=sound
38  CATEGORY:=Sound
39  DEPENDS:=+libgdbm +libsndfile +pulseaudio #+libpulse
40  TITLE:=Tools for Pulseaudio
41  URL:=http://www.pulseaudio.org
42endef
43
44CONFIGURE_ARGS += \
45        --with-system-user=root \
46        --with-system-group=root \
47        --with-realtime-group=root \
48        --with-access-group=root \
49        --without-x \
50        --enable-alsa \
51        --disable-dbus \
52        --disable-hal \
53        --disable-gconf \
54        --disable-tcpwrap \
55        --disable-nls \
56        --disable-solaris \
57        --disable-glib2 \
58        --disable-jack \
59        --disable-asyncns \
60        --disable-polkit \
61        --disable-samplerate \
62        --disable-lirc \
63        --disable-bluez \
64        --without-caps
65
66
67CONFIGURE_VARS += \
68        PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
69
70#SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
71TARGET_CFLAGS += -std=gnu99
72
73define Package/pulseaudio/install
74        $(INSTALL_DIR) \
75                $(1)/usr/bin \
76                $(1)/usr/lib \
77                $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
78                $(1)/etc/pulse
79
80        $(INSTALL_BIN) \
81                $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
82                $(1)/usr/bin/pulseaudio
83
84        $(INSTALL_CONF) \
85                $(PKG_INSTALL_DIR)/etc/pulse/* \
86                $(1)/etc/pulse
87
88        $(CP) \
89                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
90                $(1)/usr/lib/
91
92        $(CP) \
93                $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
94                $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
95endef
96
97define Package/pa-tools/install
98        $(INSTALL_DIR) \
99                $(1)/usr/bin
100
101        $(INSTALL_BIN) \
102                $(PKG_INSTALL_DIR)/usr/bin/pa* \
103                $(1)/usr/bin/
104endef
105
106$(eval $(call BuildPackage,pulseaudio))
107$(eval $(call BuildPackage,pa-tools))
Note: See TracBrowser for help on using the repository browser.