source: packages/sound/pulseaudio/Makefile @ 27782

Last change on this file since 27782 was 27782, checked in by loswillios, 5 years ago

[packages] pulseaudio: remove optional gdbm dependency, bump PKG_RELEASE

  • 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.9 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.23
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
16PKG_MD5SUM:=7391205a337d1e04a9ff38025f684034
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 +libsndfile +libsamplerate \
32        +libltdl +libpthread +librt +alsa-lib \
33        @!UCLIBC_VERSION_0_9_30_1 @!UCLIBC_VERSION_0_9_30_2 \
34        @!UCLIBC_VERSION_0_9_30_3 \
35        $(ICONV_DEPENDS) $(INTL_DEPENDS)
36  TITLE:=Network sound server
37  URL:=http://www.pulseaudio.org
38endef
39
40define Package/pa-tools
41  SECTION:=sound
42  CATEGORY:=Sound
43  DEPENDS:=+libsndfile +pulseaudio #+libpulse
44  TITLE:=Tools for Pulseaudio
45  URL:=http://www.pulseaudio.org
46endef
47
48CONFIGURE_ARGS += \
49        --with-system-user=root \
50        --with-system-group=root \
51        --with-access-group=root \
52        --enable-alsa \
53        --disable-avahi \
54        --disable-dbus \
55        --disable-hal \
56        --disable-gconf \
57        --disable-tcpwrap \
58        --disable-nls \
59        --disable-solaris \
60        --disable-glib2 \
61        --disable-jack \
62        --disable-asyncns \
63        --disable-lirc \
64        --disable-bluez \
65        --without-caps
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 Build/InstallDev
74        $(INSTALL_DIR) \
75                $(1)/usr/lib/pkgconfig \
76                $(1)/usr/include/pulse \
77                $(1)/usr/lib
78        $(CP) \
79                $(PKG_INSTALL_DIR)/usr/include/pulse/* \
80                $(1)/usr/include/pulse
81        $(CP) \
82                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
83                $(1)/usr/lib/pkgconfig
84        $(CP) \
85                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
86                $(1)/usr/lib/
87endef
88
89define Package/pulseaudio/install
90        $(INSTALL_DIR) \
91                $(1)/usr/bin \
92                $(1)/usr/lib \
93                $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
94                $(1)/etc/pulse \
95                $(1)/etc/init.d
96
97        $(INSTALL_BIN) \
98                $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
99                $(1)/usr/bin/pulseaudio
100
101        $(INSTALL_BIN) \
102                ./files/pulseaudio.init \
103                $(1)/etc/init.d/pulseaudio
104
105        $(INSTALL_CONF) \
106                $(PKG_INSTALL_DIR)/etc/pulse/* \
107                $(1)/etc/pulse
108
109        $(CP) \
110                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
111                $(1)/usr/lib/
112
113        $(CP) \
114                $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
115                $(1)/usr/lib/
116        $(CP) \
117                $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
118                $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
119endef
120
121define Package/pa-tools/install
122        $(INSTALL_DIR) \
123                $(1)/usr/bin
124
125        $(INSTALL_BIN) \
126                $(PKG_INSTALL_DIR)/usr/bin/pa* \
127                $(1)/usr/bin/
128endef
129
130$(eval $(call BuildPackage,pulseaudio))
131$(eval $(call BuildPackage,pa-tools))
Note: See TracBrowser for help on using the repository browser.