Add empty (#796)
[openwrt/svn-archive/archive.git] / libs / alsa-lib / Makefile
index f64579fbe48b4107b3fac830510751bcc728f68d..3ee12b408d34773f9c29df6551c5f83ea097b318 100644 (file)
@@ -21,17 +21,29 @@ 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
+else
 define Package/alsa-lib
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+kmod-alsa
+  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/
 endef
+endif
 
 define Build/Configure
        $(call Build/Configure/Default,\
@@ -74,6 +86,8 @@ endef
 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/
 endef
 
 $(eval $(call BuildPackage,alsa-lib))