2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=libaudiofile
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/peercast
17 PKG_MD5SUM:=460f848ce5f4a33ae66b15a4fb7720ec
20 include $(INCLUDE_DIR)/package.mk
24 define Package/libaudiofile
27 TITLE:=Audio File library
28 URL:=http://www.68k.org/~michael/audiofile/
31 define Package/libaudiofile/description
32 The audiofile library allows the processing of audio data to and from audio
33 files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
37 TARGET_CFLAGS += $(FPIC)
39 define Build/Configure
40 $(call Build/Configure/Default, \
43 --with-build-cc="$(HOSTCC)" \
47 define Build/InstallDev
48 $(INSTALL_DIR) $(2)/bin
50 $(PKG_INSTALL_DIR)/usr/bin/audiofile-config \
53 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
54 $(2)/bin/audiofile-config
56 $(INSTALL_DIR) $(1)/usr/include
58 $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
61 $(INSTALL_DIR) $(1)/usr/lib
63 $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,so*} \
66 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
68 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
69 $(1)/usr/lib/pkgconfig/
72 define Package/libaudiofile/install
73 $(INSTALL_DIR) $(1)/usr/lib
75 $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
79 $(eval $(call BuildPackage,libaudiofile))