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
|
|
|
PKG_CAT:=bzcat
|
|
|
|
|
2006-10-22 21:09:15 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2006-10-09 14:48:41 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/alsa-lib
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2006-11-14 20:55:34 +00:00
|
|
|
DEPENDS:=+kmod-alsa
|
2006-10-22 21:09:15 +00:00
|
|
|
TITLE:=ALSA (Advanced Linux Sound Architecture) library
|
|
|
|
DESCRIPTION:=\
|
|
|
|
This is the library package for alsa, needed by some userspace programs. You must \\\
|
|
|
|
have enabled the ALSA support in the kernel.
|
2006-10-09 14:48:41 +00:00
|
|
|
URL:=http://www.alsa-project.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-22 21:09:15 +00:00
|
|
|
$(call Build/Configure/Default,\
|
2006-10-27 19:32:58 +00:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2006-10-09 14:48:41 +00:00
|
|
|
--disable-debugging \
|
|
|
|
--disable-profiling \
|
|
|
|
--with-softfloat \
|
|
|
|
--with-versioned=no \
|
2006-10-22 21:09:15 +00:00
|
|
|
)
|
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
|
2006-10-22 21:09:15 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-27 19:32:58 +00:00
|
|
|
AM_CFLAGS="" \
|
2006-10-09 14:48:41 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-10-22 21:09:15 +00:00
|
|
|
all install
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/alsa $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasound.{a,so}* $(STAGING_DIR)/usr/lib/
|
2006-10-22 21:09:15 +00:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc $(STAGING_DIR)/usr/lib/pkgconfig/
|
|
|
|
$(SED) 's,-I$$$${includedir}/alsa,,g' $(STAGING_DIR)/usr/lib/pkgconfig/alsa.pc
|
|
|
|
$(SED) 's,-I$$$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/alsa.pc
|
|
|
|
$(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/alsa.pc
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/alsa \
|
2006-10-22 21:09:15 +00:00
|
|
|
$(STAGING_DIR)/usr/lib/libasound.{a,so}* \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/alsa.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/alsa-lib/install
|
|
|
|
install -d -m0755 $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* $(1)/usr/lib/
|
2006-10-09 14:48:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,alsa-lib))
|