b6fadb829d9806f70284b32758ff7d3bfadc7059
[openwrt/svn-archive/archive.git] / libs / libaudiofile / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libaudiofile
12 PKG_VERSION:=0.2.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/peercast
17 PKG_MD5SUM:=460f848ce5f4a33ae66b15a4fb7720ec
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libaudiofile
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Audio File library
25 URL:=http://www.68k.org/~michael/audiofile/
26 endef
27
28 define Package/libaudiofile/description
29 The audiofile library allows the processing of audio data to and from audio
30 files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
31 and raw data).
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --enable-shared \
39 --enable-static \
40 --with-build-cc="$(HOSTCC)" \
41 )
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/audiofile-config $(1)/usr/bin/
53 mkdir -p $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/af_vfs.h $(1)/usr/include/
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/audiofile.h $(1)/usr/include/
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/aupvlist.h $(1)/usr/include/
57 mkdir -p $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{a,so*} $(1)/usr/lib/
59 mkdir -p $(1)/usr/lib/pkgconfig
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc $(1)/usr/lib/pkgconfig/
61 endef
62
63 define Package/libaudiofile/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,libaudiofile))