projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
57bd385
)
update alsa-lib to v1.0.13, add pkgconfig/alsa.pc, standardize
author
Nicolas Thill
<nico@openwrt.org>
Sun, 22 Oct 2006 21:09:15 +0000
(21:09 +0000)
committer
Nicolas Thill
<nico@openwrt.org>
Sun, 22 Oct 2006 21:09:15 +0000
(21:09 +0000)
SVN-Revision: 5259
libs/alsa-lib/Makefile
patch
|
blob
|
history
diff --git
a/libs/alsa-lib/Makefile
b/libs/alsa-lib/Makefile
index d27caf0d09b501fe5cae4ed01a6e1f400f9c54e6..f8294f6a88ec7d5a1bb616684a6a8d2ae448a276 100644
(file)
--- a/
libs/alsa-lib/Makefile
+++ b/
libs/alsa-lib/Makefile
@@
-4,20
+4,20
@@
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id
:
$
+# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=alsa-lib
include $(TOPDIR)/rules.mk
PKG_NAME:=alsa-lib
-PKG_VERSION:=1.0.1
1
+PKG_VERSION:=1.0.1
3
PKG_RELEASE:=1
PKG_RELEASE:=1
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/
-PKG_MD5SUM:=
ef7ae78a0ef08cbeacb295f2518886ab
+PKG_MD5SUM:=
d55a9d7d2a79d738a1b7a511cffda4b6
PKG_CAT:=bzcat
PKG_CAT:=bzcat
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
@@
-26,14
+26,15
@@
define Package/alsa-lib
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+alsa
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+alsa
- TITLE:=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.
+ 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.
URL:=http://www.alsa-project.org/
endef
define Build/Configure
URL:=http://www.alsa-project.org/
endef
define Build/Configure
-$(call Build/Configure/Default,\
+
$(call Build/Configure/Default,\
--enable-shared=yes \
--enable-static=yes \
--with-gnu-ld \
--enable-shared=yes \
--enable-static=yes \
--with-gnu-ld \
@@
-41,18
+42,13
@@
$(call Build/Configure/Default,\
--disable-profiling \
--with-softfloat \
--with-versioned=no \
--disable-profiling \
--with-softfloat \
--with-versioned=no \
-)
+
)
endef
define Build/Compile
endef
define Build/Compile
-
$(call Build/Compile/Default,
\
+
$(MAKE) -C $(PKG_BUILD_DIR)
\
DESTDIR="$(PKG_INSTALL_DIR)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
- all install)
-endef
-
-define Package/alsa-lib/install
- install -d -m0755 $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* $(1)/usr/lib/
+ all install
endef
define Build/InstallDev
endef
define Build/InstallDev
@@
-60,12
+56,23
@@
define Build/InstallDev
$(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/
$(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/
+ 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
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/alsa \
endef
define Build/UninstallDev
rm -rf \
$(STAGING_DIR)/usr/include/alsa \
- $(STAGING_DIR)/usr/lib/libasound.{a,so}*
+ $(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/
endef
$(eval $(call BuildPackage,alsa-lib))
endef
$(eval $(call BuildPackage,alsa-lib))