From 6eaf577891d1e0dd3722b76fd58f8b6621931dd2 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Thu, 20 Sep 2007 10:27:38 +0000 Subject: [PATCH 1/1] move kernel sound support in its own file from other.mk to sound.mk, rename kmod-soundcore to kmod-sound-core to be consistent, cleanup alsa-lib SVN-Revision: 8865 --- libs/alsa-lib/Makefile | 66 +++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 37 deletions(-) diff --git a/libs/alsa-lib/Makefile b/libs/alsa-lib/Makefile index 3ee12b408d..0f5d1495a5 100644 --- a/libs/alsa-lib/Makefile +++ b/libs/alsa-lib/Makefile @@ -15,71 +15,63 @@ PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ PKG_MD5SUM:=d55a9d7d2a79d738a1b7a511cffda4b6 -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 + ifeq ($(KERNEL),2.4) -define Package/alsa-lib - SECTION:=libs - CATEGORY:=Libraries - DEPENDS:=+kmod-alsa @USB_SUPPORT - 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 +DEPENDS_KMOD:=+kmod-alsa else +DEPENDS_KMOD:=+kmod-sound-core +endif + define Package/alsa-lib SECTION:=libs CATEGORY:=Libraries - DEPENDS:=+kmod-soundcore @USB_SUPPORT 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/ + DEPENDS:=@USB_SUPPORT $(DEPENDS_KMOD) endef -endif + +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 \ define Build/Configure - $(call Build/Configure/Default,\ - --enable-shared \ - --enable-static \ - --disable-debugging \ - --disable-profiling \ - --with-softfloat \ - --with-versioned=no \ - ) + $(call Build/Configure/Default) + $(call libtool_disable_rpath) endef define Build/Compile # override AM_CFLAGS holding inappropriate optimization flags - $(MAKE) -C $(PKG_BUILD_DIR) \ - AM_CFLAGS="" \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - all install + $(MAKE) -C $(PKG_BUILD_DIR) AM_CFLAGS="" all + $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR)) + $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install 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/ + $(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}/alsa,-I$(STAGING_DIR)/usr/include/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 \ - $(STAGING_DIR)/usr/lib/libasound.{a,so}* \ + rm -rf $(STAGING_DIR)/usr/include/alsa \ + $(STAGING_DIR)/usr/lib/libasound.{a,so*} \ $(STAGING_DIR)/usr/lib/pkgconfig/alsa.pc endef @@ -87,7 +79,7 @@ define Package/alsa-lib/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/share/alsa/ - $(INSTALL_CONF) $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf $(1)/usr/share/alsa/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf $(1)/usr/share/alsa/ endef $(eval $(call BuildPackage,alsa-lib)) -- 2.30.2