Install audiofile-config to $(STAGING_DIR)/host/bin rather then
[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 PKG_INSTALL=1
22
23 define Package/libaudiofile
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Audio File library
27 URL:=http://www.68k.org/~michael/audiofile/
28 endef
29
30 define Package/libaudiofile/description
31 The audiofile library allows the processing of audio data to and from audio
32 files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
33 and raw data).
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-shared \
41 --enable-static \
42 --with-build-cc="$(HOSTCC)" \
43 )
44 endef
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(2)/bin
48 $(INSTALL_BIN) \
49 $(PKG_INSTALL_DIR)/usr/bin/audiofile-config \
50 $(2)/bin/
51 $(SED) \
52 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
53 $(2)/bin/audiofile-config
54
55 $(INSTALL_DIR) $(1)/usr/include
56 $(INSTALL_DATA) \
57 $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
58 $(1)/usr/include/
59
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(INSTALL_DATA) \
62 $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,so*} \
63 $(1)/usr/lib/
64
65 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
68 $(1)/usr/lib/pkgconfig/
69 endef
70
71 define Package/libaudiofile/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
75 $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,libaudiofile))