lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2254B)


      1 #
      2 # Copyright (C) 2006-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=alsa-lib
     11 PKG_VERSION:=1.1.3
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
     15 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
     16 		http://alsa.cybermirror.org/lib/
     17 PKG_HASH:=71282502184c592c1a008e256c22ed0ba5728ca65e05273ceb480c70f515969c
     18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
     19 		Peter Wagner <tripolar@gmx.at>
     20 
     21 PKG_LICENSE:=LGPLv2.1 GPLv2
     22 PKG_LICENSE_FILES:=COPYING aserver/COPYING
     23 
     24 PKG_FIXUP:=autoreconf
     25 PKG_INSTALL:=1
     26 PKG_USE_MIPS16:=0
     27 PKG_CHECK_FORMAT_SECURITY:=0
     28 
     29 include $(INCLUDE_DIR)/package.mk
     30 
     31 define Package/alsa-lib
     32   SECTION:=libs
     33   CATEGORY:=Libraries
     34   TITLE:=ALSA (Advanced Linux Sound Architecture) library
     35   URL:=http://www.alsa-project.org/
     36   DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
     37 endef
     38 
     39 define Package/alsa-lib/description
     40  This is the library package for alsa, needed by some userspace programs.
     41  You must have enabled the ALSA support in the kernel.
     42 endef
     43 
     44 TARGET_CFLAGS += $(FPIC)
     45 
     46 CONFIGURE_ARGS+= \
     47 		--disable-python \
     48 		--disable-debug \
     49 		--without-debug \
     50 		$(SOFT_FLOAT_CONFIG_OPTION) \
     51 		--with-versioned=no
     52 
     53 define Build/InstallDev
     54 	$(INSTALL_DIR) $(1)/usr/include/
     55 	$(CP) \
     56 		$(PKG_INSTALL_DIR)/usr/include/alsa \
     57 		$(1)/usr/include/
     58 
     59 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     60 	$(CP) \
     61 		$(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
     62 		$(1)/usr/lib/
     63 	$(INSTALL_DATA) \
     64 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
     65 		$(1)/usr/lib/pkgconfig/
     66 
     67 	$(INSTALL_DIR) $(1)/usr/share/aclocal
     68 	$(INSTALL_DATA) \
     69 		$(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
     70 		$(1)/usr/share/aclocal/
     71 endef
     72 
     73 define Package/alsa-lib/install
     74 	$(INSTALL_DIR) $(1)/usr/lib
     75 	$(CP) \
     76 		$(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
     77 		$(1)/usr/lib/
     78 
     79 	$(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
     80 	$(INSTALL_DATA) \
     81 		$(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
     82 		$(1)/usr/share/alsa/
     83 	$(INSTALL_DATA) \
     84 		$(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
     85 		$(1)/usr/share/alsa/pcm/
     86 	$(CP) \
     87 		$(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
     88 		$(1)/usr/share/alsa/cards/
     89 endef
     90 
     91 $(eval $(call BuildPackage,alsa-lib))