noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / libs / libaudiofile / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=audiofile
9 PKG_VERSION:=0.3.6
10 PKG_RELEASE:=4
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3
14 PKG_MD5SUM:=ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782
15
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libaudiofile
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Audio File library
27 URL:=http://audiofile.68k.org/
28 DEPENDS:=+libflac +libstdcpp
29 endef
30
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,
34 FLAC, ALAC, and raw data).
35 endef
36
37 CONFIGURE_ARGS+= \
38 --enable-shared \
39 --enable-static \
40 --disable-docs \
41 --disable-coverage \
42 --disable-examples
43
44
45 TARGET_CFLAGS+= $(FPIC)
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
51 $(1)/usr/include/
52
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) \
55 $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \
56 $(1)/usr/lib/
57
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
61 $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Package/libaudiofile/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
68 $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libaudiofile))