132 lines
2.9 KiB
Makefile
Raw Normal View History

#
# Copyright (C) 2007-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pulseaudio
PKG_VERSION:=0.9.23
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
PKG_MD5SUM:=7391205a337d1e04a9ff38025f684034
PKG_BUILD_DEPENDS:=intltool/host
PKG_FIXUP = libtool
PKG_INSTALL = 1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
#TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
define Package/pulseaudio
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libspeexdsp +libsndfile +libsamplerate \
+libltdl +libpthread +librt +alsa-lib \
@!UCLIBC_VERSION_0_9_30_1 @!UCLIBC_VERSION_0_9_30_2 \
@!UCLIBC_VERSION_0_9_30_3 \
$(ICONV_DEPENDS) $(INTL_DEPENDS)
TITLE:=Network sound server
URL:=http://www.pulseaudio.org
endef
define Package/pa-tools
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libsndfile +pulseaudio #+libpulse
TITLE:=Tools for Pulseaudio
URL:=http://www.pulseaudio.org
endef
CONFIGURE_ARGS += \
--with-system-user=root \
--with-system-group=root \
--with-access-group=root \
--enable-alsa \
--disable-avahi \
--disable-dbus \
--disable-hal \
--disable-gconf \
--disable-tcpwrap \
--disable-nls \
--disable-solaris \
--disable-glib2 \
--disable-jack \
--disable-asyncns \
--disable-lirc \
--disable-bluez \
--without-caps
CONFIGURE_VARS += \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
#SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
TARGET_CFLAGS += -std=gnu99
define Build/InstallDev
$(INSTALL_DIR) \
$(1)/usr/lib/pkgconfig \
$(1)/usr/include/pulse \
$(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/pulse/* \
$(1)/usr/include/pulse
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
$(1)/usr/lib/pkgconfig
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
$(1)/usr/lib/
endef
define Package/pulseaudio/install
$(INSTALL_DIR) \
$(1)/usr/bin \
$(1)/usr/lib \
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
$(1)/etc/pulse \
$(1)/etc/init.d
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
$(1)/usr/bin/pulseaudio
$(INSTALL_BIN) \
./files/pulseaudio.init \
$(1)/etc/init.d/pulseaudio
$(INSTALL_CONF) \
$(PKG_INSTALL_DIR)/etc/pulse/* \
$(1)/etc/pulse
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
$(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
$(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
endef
define Package/pa-tools/install
$(INSTALL_DIR) \
$(1)/usr/bin
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/pa* \
$(1)/usr/bin/
endef
$(eval $(call BuildPackage,pulseaudio))
$(eval $(call BuildPackage,pa-tools))