lede-packages-rs

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

Makefile (1860B)


      1 #
      2 # Copyright (C) 2014 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:=portaudio
     11 PKG_VERSION:=19_20140130
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=pa_stable_v$(PKG_VERSION).tgz
     15 PKG_SOURCE_URL:=http://www.portaudio.com/archives/
     16 PKG_MD5SUM:=7f220406902af9dca009668e198cbd23
     17 
     18 PKG_LICENSE:=MIT
     19 PKG_LICENSE_FILES:=LICENSE.txt
     20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
     21 
     22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
     23 PKG_INSTALL:=1
     24 
     25 include $(INCLUDE_DIR)/package.mk
     26 
     27 define Package/portaudio
     28   SECTION:=sound
     29   CATEGORY:=Sound
     30   DEPENDS:=+alsa-lib +libpthread +librt
     31   TITLE:=Portable cross-platform audio I/O
     32   URL:=http://www.portaudio.com/
     33 endef
     34 
     35 define Package/portaudio/description
     36  PortAudio is a free, cross-platform, open-source, audio I/O library.  It lets
     37  you write simple audio programs in 'C' or C++ that will compile and run on many
     38  platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is
     39  intended to promote the exchange of audio software between developers on
     40  different platforms. Many applications use PortAudio for Audio I/O.
     41 endef
     42 
     43 CONFIGURE_ARGS+= \
     44 	--with-alsa \
     45 	--without-asihpi \
     46 	--without-jack \
     47 	--with-oss \
     48 
     49 define Build/InstallDev
     50 	$(INSTALL_DIR) $(1)/usr/include
     51 	$(CP) \
     52 		$(PKG_INSTALL_DIR)/usr/include/portaudio.h \
     53 		$(PKG_INSTALL_DIR)/usr/include/pa_linux_alsa.h \
     54 		$(1)/usr/include/
     55 	$(INSTALL_DIR) $(1)/usr/lib
     56 	$(CP) \
     57 		$(PKG_INSTALL_DIR)/usr/lib/libportaudio.{a,so*} \
     58 		$(1)/usr/lib/
     59 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     60 	$(CP) \
     61 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/portaudio-*.pc \
     62 		$(1)/usr/lib/pkgconfig/
     63 endef
     64 
     65 define Package/portaudio/install
     66 	$(INSTALL_DIR) $(1)/usr/lib
     67 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libportaudio.so.* $(1)/usr/lib/
     68 endef
     69 
     70 $(eval $(call BuildPackage,portaudio))