123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- #
- # Copyright (C) 2011-2016 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:=9.0
- PKG_RELEASE:=1
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
- PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
- PKG_MD5SUM:=da7162541b3a9bc20576dbd0d7d1489a
- PKG_LICENSE:=LGPL-2.1+
- PKG_LICENSE_FILES:=GPL LICENSE
- PKG_BUILD_DEPENDS:=intltool/host
- PKG_FIXUP:=autoreconf
- PKG_USE_MIPS16:=0
- PKG_INSTALL = 1
- include $(INCLUDE_DIR)/package.mk
- include $(INCLUDE_DIR)/nls.mk
- define Package/pulseaudio/Default
- SECTION:=sound
- CATEGORY:=Sound
- DEPENDS:=+libspeexdsp +libsndfile +libltdl +libpthread \
- +librt +alsa-lib +libopenssl +libwrap +libcap $(ICONV_DEPENDS) $(INTL_DEPENDS)
- TITLE:=Network sound server
- MAINTAINER:=Peter Wagner <tripolar@gmx.at>
- URL:=http://www.pulseaudio.org
- PROVIDES:=pulseaudio
- USERID:=pulse=51:pulse=51
- endef
- define Package/pulseaudio-daemon
- $(call Package/pulseaudio/Default)
- DEPENDS+= +libjson-c
- endef
- define Package/pulseaudio/Default/description
- PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
- endef
- define Package/pulseaudio-daemon/description
- $(call Package/pulseaudio/Default/description)
- endef
- define Package/pulseaudio-daemon/conffiles
- /etc/pulse/client.conf
- /etc/pulse/daemon.conf
- /etc/pulse/default.pa
- /etc/pulse/system.pa
- endef
- define Package/pulseaudio-tools
- SECTION:=sound
- CATEGORY:=Sound
- DEPENDS:=+libsndfile +pulseaudio
- TITLE:=Tools for Pulseaudio
- URL:=http://www.pulseaudio.org
- endef
- define Package/pulseaudio-profiles
- SECTION:=sound
- CATEGORY:=Sound
- DEPENDS:=+pulseaudio
- TITLE:=Profiles for Pulseaudio
- URL:=http://www.pulseaudio.org
- endef
- CONFIGURE_ARGS += \
- --with-system-user=pulse \
- --with-system-group=pulse \
- --with-access-group=audio \
- --with-database=simple \
- --enable-alsa \
- --disable-hal \
- --disable-gconf \
- --disable-nls \
- --disable-manpages \
- --enable-oss-output \
- --disable-oss-wrapper \
- --disable-samplerate \
- --disable-per-user-esound-socket \
- --disable-solaris \
- --disable-gtk2 \
- --disable-glib2 \
- --disable-jack \
- --disable-asyncns \
- --disable-lirc \
- --disable-bluez \
- --disable-udev \
- --without-fftw \
- --disable-avahi \
- --disable-dbus \
- --without-soxr
- CONFIGURE_VARS += \
- PKG_CONFIG_LIBDIR="$(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 \
- $(1)/usr/lib/pulseaudio
- $(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/
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
- $(1)/usr/lib/pulseaudio/
- endef
- define Package/pulseaudio-daemon/install
- $(INSTALL_DIR) \
- $(1)/etc/pulse \
- $(1)/etc/init.d \
- $(1)/usr/bin \
- $(1)/usr/lib \
- $(1)/usr/lib/pulseaudio \
- $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
- $(INSTALL_BIN) \
- $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
- $(1)/usr/bin/pulseaudio
- $(INSTALL_BIN) \
- ./files/pulseaudio.init \
- $(1)/etc/init.d/pulseaudio
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/etc/pulse/* \
- $(1)/etc/pulse
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/*.so* \
- $(1)/usr/lib/
- $(CP) \
- $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
- $(1)/usr/lib/pulseaudio/
- $(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/pulseaudio-tools/install
- $(INSTALL_DIR) \
- $(1)/usr/bin
- $(INSTALL_BIN) \
- $(PKG_INSTALL_DIR)/usr/bin/pa* \
- $(1)/usr/bin/
- endef
- define Package/pulseaudio-profiles/install
- $(INSTALL_DIR) \
- $(1)/usr/share/pulseaudio/alsa-mixer/paths \
- $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
- $(1)/usr/share/pulseaudio/alsa-mixer/paths
- $(INSTALL_DATA) \
- $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
- $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
- endef
- $(eval $(call BuildPackage,pulseaudio-daemon))
- $(eval $(call BuildPackage,pulseaudio-tools))
- $(eval $(call BuildPackage,pulseaudio-profiles))
|