2014-06-30 13:28:40 +00:00
|
|
|
#
|
2016-01-19 23:06:32 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2014-06-30 13:28:40 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=alsa-lib
|
2023-05-16 14:02:20 +00:00
|
|
|
PKG_VERSION:=1.2.9
|
|
|
|
PKG_RELEASE:=1
|
2014-06-30 13:28:40 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2023-05-16 14:02:20 +00:00
|
|
|
PKG_SOURCE_URL:=https://www.alsa-project.org/files/pub/lib/ \
|
|
|
|
https://distfiles.gentoo.org/distfiles/
|
|
|
|
PKG_HASH:=dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2
|
2017-05-29 19:19:31 +00:00
|
|
|
|
2015-08-27 17:10:22 +00:00
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
|
2015-08-20 18:14:13 +00:00
|
|
|
Peter Wagner <tripolar@gmx.at>
|
2014-06-30 13:28:40 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2019-08-30 21:46:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-01-30 17:02:32 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16 no-lto
|
2014-06-30 13:28:40 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/alsa-lib
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=ALSA (Advanced Linux Sound Architecture) library
|
|
|
|
URL:=http://www.alsa-project.org/
|
|
|
|
DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
|
2019-11-20 02:52:05 +00:00
|
|
|
LICENSE:=LGPL-2.1-or-later
|
2019-08-30 21:46:42 +00:00
|
|
|
LICENSE_FILES:=COPYING
|
2014-06-30 13:28:40 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/alsa-lib/description
|
|
|
|
This is the library package for alsa, needed by some userspace programs.
|
|
|
|
You must have enabled the ALSA support in the kernel.
|
|
|
|
endef
|
|
|
|
|
2019-11-20 02:52:05 +00:00
|
|
|
define Package/aserver
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
|
|
|
TITLE:=ALSA (Advanced Linux Sound Architecture) server
|
|
|
|
URL:=http://www.alsa-project.org/
|
|
|
|
DEPENDS:=+alsa-lib
|
|
|
|
LICENSE:=GPL-2.0-or-later
|
|
|
|
LICENSE_FILES:=aserver/COPYING
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/aserver/description
|
|
|
|
This is the aserver application for ALSA.
|
|
|
|
endef
|
|
|
|
|
2018-12-25 23:06:06 +00:00
|
|
|
define Package/alsa-lib/conffiles
|
|
|
|
/etc/asound.conf
|
|
|
|
endef
|
|
|
|
|
2014-06-30 13:28:40 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2016-01-19 23:06:32 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2014-06-30 13:28:40 +00:00
|
|
|
--disable-python \
|
|
|
|
--disable-debug \
|
|
|
|
--without-debug \
|
2019-11-20 02:52:05 +00:00
|
|
|
--without-versioned \
|
|
|
|
$(SOFT_FLOAT_CONFIG_OPTION)
|
2014-06-30 13:28:40 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/alsa \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
|
|
|
|
$(1)/usr/lib/
|
2019-11-20 02:52:05 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libatopology.{la,so*} \
|
|
|
|
$(1)/usr/lib/
|
2014-06-30 13:28:40 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
|
|
|
|
$(1)/usr/share/aclocal/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/alsa-lib/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
|
|
|
|
$(1)/usr/lib/
|
2019-11-20 02:52:05 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libatopology.so.* \
|
|
|
|
$(1)/usr/lib/
|
2014-06-30 13:28:40 +00:00
|
|
|
|
2021-07-19 05:50:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/alsa/{cards,ctl,pcm}
|
2014-06-30 13:28:40 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
|
|
|
|
$(1)/usr/share/alsa/
|
2021-07-19 05:50:09 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/alsa/ctl/* \
|
|
|
|
$(1)/usr/share/alsa/ctl/
|
2014-06-30 13:28:40 +00:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
|
|
|
|
$(1)/usr/share/alsa/pcm/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
|
|
|
|
$(1)/usr/share/alsa/cards/
|
|
|
|
endef
|
|
|
|
|
2019-11-20 02:52:05 +00:00
|
|
|
define Package/aserver/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aserver $(1)/usr/bin
|
|
|
|
endef
|
|
|
|
|
2014-06-30 13:28:40 +00:00
|
|
|
$(eval $(call BuildPackage,alsa-lib))
|
2019-11-20 02:52:05 +00:00
|
|
|
$(eval $(call BuildPackage,aserver))
|