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:=+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,\
endef
define Package/alsa-lib/install
- install -d -m0755 $(1)/usr/lib
+ $(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))