Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / sound / portaudio / Makefile
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:=2
13
14 PKG_SOURCE:=pa_stable_v$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.portaudio.com/archives/
16 PKG_HASH:=8fe024a5f0681e112c6979808f684c3516061cc51d3acc0b726af98fc96c8d57
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 EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
50
51 define Build/Compile
52 $(call Build/Compile/Default,lib/libportaudio.la)
53 endef
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) \
58 $(PKG_INSTALL_DIR)/usr/include/portaudio.h \
59 $(PKG_INSTALL_DIR)/usr/include/pa_linux_alsa.h \
60 $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/lib/libportaudio.{a,so*} \
64 $(1)/usr/lib/
65 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/portaudio-*.pc \
68 $(1)/usr/lib/pkgconfig/
69 endef
70
71 define Package/portaudio/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libportaudio.so.* $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,portaudio))