DESCRIPTION:= is obselete
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libaudiofile
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Audio File library
29 URL:=http://www.68k.org/~michael/audiofile/
30 endef
31
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,
35 and raw data).
36 endef
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/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Build/InstallDev
53 mkdir -p $(1)/usr/bin
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/audiofile-config $(1)/usr/bin/
55 mkdir -p $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/af_vfs.h $(1)/usr/include/
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/audiofile.h $(1)/usr/include/
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/aupvlist.h $(1)/usr/include/
59 mkdir -p $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{a,so*} $(1)/usr/lib/
61 mkdir -p $(1)/usr/lib/pkgconfig
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Build/UninstallDev
66 rm -rf \
67 $(STAGING_DIR)/usr/bin/audiofile-config \
68 $(STAGING_DIR)/usr/include/af_vfs.h \
69 $(STAGING_DIR)/usr/include/audiofile.h \
70 $(STAGING_DIR)/usr/include/aupvlist.h \
71 $(STAGING_DIR)/usr/lib/libaudiofile.{a,so*} \
72 $(STAGING_DIR)/usr/lib/pkgconfig/audiofile.pc
73 endef
74
75 define Package/libaudiofile/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* $(1)/usr/lib/
78 endef
79
80 $(eval $(call BuildPackage,libaudiofile))