2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=19_20140130
14 PKG_SOURCE
:=pa_stable_v
$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=http
://www.portaudio.com
/archives
/
16 PKG_MD5SUM
:=7f220406902af9dca009668e198cbd23
19 PKG_LICENSE_FILES
:=LICENSE.txt
20 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/portaudio
30 DEPENDS
:=+alsa-lib
+libpthread
+librt
31 TITLE
:=Portable cross-platform audio I
/O
32 URL
:=http
://www.portaudio.com
/
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.
49 EXTRA_CFLAGS
+= $(TARGET_CPPFLAGS
)
52 $(call Build
/Compile
/Default
,lib
/libportaudio.la
)
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(1)/usr
/include
58 $(PKG_INSTALL_DIR
)/usr
/include/portaudio.h \
59 $(PKG_INSTALL_DIR
)/usr
/include/pa_linux_alsa.h \
61 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(PKG_INSTALL_DIR
)/usr
/lib
/libportaudio.
{a
,so
*} \
65 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
67 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/portaudio-
*.
pc \
68 $(1)/usr
/lib
/pkgconfig
/
71 define Package
/portaudio
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libportaudio.so.
* $(1)/usr
/lib
/
76 $(eval
$(call BuildPackage
,portaudio
))