2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=ftp
://ftp.alsa-project.org
/pub
/lib
/
17 PKG_MD5SUM
:=d55a9d7d2a79d738a1b7a511cffda4b6
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/alsa-lib
28 DEPENDS
:=+kmod-alsa @USB_SUPPORT
29 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
31 This is the library package for alsa
, needed by some userspace programs. You must
\\\
32 have enabled the ALSA support in the kernel.
33 URL
:=http
://www.alsa-project.org
/
36 define Package
/alsa-lib
39 DEPENDS
:=+kmod-soundcore @USB_SUPPORT
40 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
42 This is the library package for alsa
, needed by some userspace programs. You must
\\\
43 have enabled the ALSA support in the kernel.
44 URL
:=http
://www.alsa-project.org
/
48 define Build
/Configure
49 $(call Build
/Configure
/Default
,\
60 # override AM_CFLAGS holding inappropriate optimization flags
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 DESTDIR
="$(PKG_INSTALL_DIR)" \
67 define Build
/InstallDev
68 mkdir
-p
$(STAGING_DIR
)/usr
/include
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/alsa
$(STAGING_DIR
)/usr
/include/
70 mkdir
-p
$(STAGING_DIR
)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.
{a
,so
}* $(STAGING_DIR
)/usr
/lib
/
72 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
74 $(SED
) 's,-I$$$${includedir}/alsa,,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc
75 $(SED
) 's,-I$$$${includedir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc
76 $(SED
) 's,-L$$$${libdir},,g' $(STAGING_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc
79 define Build
/UninstallDev
81 $(STAGING_DIR
)/usr
/include/alsa \
82 $(STAGING_DIR
)/usr
/lib
/libasound.
{a
,so
}* \
83 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc
86 define Package
/alsa-lib
/install
87 $(INSTALL_DIR
) $(1)/usr
/lib
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.so.
* $(1)/usr
/lib
/
89 $(INSTALL_DIR
) $(1)/usr
/share
/alsa
/
90 $(INSTALL_CONF
) $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/alsa.conf
$(1)/usr
/share
/alsa
/
93 $(eval
$(call BuildPackage
,alsa-lib
))