2007-10-05 15:59:42 +00:00
|
|
|
#
|
2010-10-21 08:32:54 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-10-09 14:48:41 +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
|
2013-08-04 16:41:35 +00:00
|
|
|
PKG_VERSION:=1.0.27.2
|
2006-10-09 14:48:41 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-02-20 11:00:43 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
|
|
|
|
http://alsa.cybermirror.org/lib/
|
2013-08-04 16:41:35 +00:00
|
|
|
PKG_MD5SUM:=69129a7c37697f81ac092335e9fa452b
|
2006-10-09 14:48:41 +00:00
|
|
|
|
2012-10-19 15:36:24 +00:00
|
|
|
PKG_LICENSE:=LGPLv2.1 GPLv2
|
|
|
|
PKG_LICENSE_FILE:=COPYING aserver/COPYING
|
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2009-01-24 16:15:24 +00:00
|
|
|
PKG_INSTALL:=1
|
2013-08-14 14:46:32 +00:00
|
|
|
PKG_USE_MIPS16:=0
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2006-10-09 14:48:41 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2007-09-20 10:27:38 +00:00
|
|
|
|
2007-05-15 08:20:31 +00:00
|
|
|
define Package/alsa-lib
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=ALSA (Advanced Linux Sound Architecture) library
|
|
|
|
URL:=http://www.alsa-project.org/
|
2012-06-11 22:46:25 +00:00
|
|
|
DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
|
2007-05-15 08:20:31 +00:00
|
|
|
endef
|
2007-09-20 10:27:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2009-01-24 16:15:24 +00:00
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-python \
|
|
|
|
--disable-debug \
|
|
|
|
--without-debug \
|
|
|
|
$(SOFT_FLOAT_CONFIG_OPTION) \
|
|
|
|
--with-versioned=no \
|
|
|
|
)
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-01-24 16:15:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/alsa \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
2013-08-04 16:41:35 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
|
2009-01-24 16:15:24 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
$(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/
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-22 21:09:15 +00:00
|
|
|
define Package/alsa-lib/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-24 16:15:24 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
|
|
|
|
$(1)/usr/share/alsa/
|
|
|
|
$(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/
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,alsa-lib))
|