2 # Copyright (C) 2006-2010 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 http
://github.com
/downloads
/mpruett
/audiofile
/ \
17 http
://www
.68k.org
/~michael
/audiofile
/
18 PKG_MD5SUM
:=a39be317a7b1971b408805dc5e371862
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libaudiofile
28 TITLE
:=Audio File library
29 URL
:=http
://www
.68k.org
/~michael
/audiofile
/
32 define Package
/libaudiofile
/description
33 The audiofile library allows the processing of audio data to and from audio
34 files of many common formats
(currently AIFF
, AIFF-C
, WAVE
, NeXT
/Sun
, BICS
,
41 --with-build-cc
="$(HOSTCC)" \
43 TARGET_CFLAGS
+= $(FPIC
) -std
=c99
45 define Build
/InstallDev
46 $(INSTALL_DIR
) $(2)/bin
48 $(PKG_INSTALL_DIR
)/usr
/bin
/audiofile-config \
51 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
52 $(2)/bin
/audiofile-config
54 $(INSTALL_DIR
) $(1)/usr
/include
56 $(PKG_INSTALL_DIR
)/usr
/include/{af_vfs
,audiofile
,aupvlist
}.h \
59 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(PKG_INSTALL_DIR
)/usr
/lib
/libaudiofile.
{la
,a
,so
*} \
64 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
66 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/audiofile.
pc \
67 $(1)/usr
/lib
/pkgconfig
/
70 define Package
/libaudiofile
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(PKG_INSTALL_DIR
)/usr
/lib
/libaudiofile.so.
* \
77 $(eval
$(call BuildPackage
,libaudiofile
))