2007-10-05 15:59:42 +00:00
|
|
|
#
|
2006-10-09 14:48:41 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-10-22 21:09:15 +00:00
|
|
|
# $Id$
|
2006-10-09 14:48:41 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=alsa-lib
|
2006-10-22 21:09:15 +00:00
|
|
|
PKG_VERSION:=1.0.13
|
2006-10-09 14:48:41 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/
|
2006-10-22 21:09:15 +00:00
|
|
|
PKG_MD5SUM:=d55a9d7d2a79d738a1b7a511cffda4b6
|
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
|
|
|
ifeq ($(KERNEL),2.4)
|
2007-09-20 10:27:38 +00:00
|
|
|
DEPENDS_KMOD:=+kmod-alsa
|
2007-05-15 08:20:31 +00:00
|
|
|
else
|
2007-10-05 20:34:04 +00:00
|
|
|
DEPENDS_KMOD:=+kmod-sound-core
|
2007-09-20 10:27:38 +00:00
|
|
|
endif
|
|
|
|
|
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/
|
2007-09-20 10:27:38 +00:00
|
|
|
DEPENDS:=@USB_SUPPORT $(DEPENDS_KMOD)
|
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
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-debugging \
|
|
|
|
--disable-profiling \
|
|
|
|
--with-softfloat \
|
|
|
|
--with-versioned=no \
|
2006-10-09 14:48:41 +00:00
|
|
|
|
|
|
|
define Build/Configure
|
2007-09-20 10:27:38 +00:00
|
|
|
$(call Build/Configure/Default)
|
|
|
|
$(call libtool_disable_rpath)
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-27 19:32:58 +00:00
|
|
|
# override AM_CFLAGS holding inappropriate optimization flags
|
2007-09-20 10:27:38 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) AM_CFLAGS="" all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
2007-12-16 01:50:06 +00:00
|
|
|
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/alsa $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
2007-12-16 01:50:06 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,a,so*} $(1)/usr/lib/
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc $(1)/usr/lib/pkgconfig/
|
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
|
2006-10-22 21:09:15 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* $(1)/usr/lib/
|
2007-02-26 22:33:32 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/alsa/
|
2007-09-20 10:27:38 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf $(1)/usr/share/alsa/
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,alsa-lib))
|