[packages] libsndfile: update to v1.0.20, disable alsa, flac, ogg, vorbis and sqlite...
[openwrt/svn-archive/archive.git] / libs / libsndfile / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsndfile
11 PKG_VERSION:=1.0.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/
16 PKG_MD5SUM:=e0553e12c7a467af44693e95e2eac668
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libsndfile
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Library for reading/writing audio files
26 DEPENDS:=@!avr32
27 URL:=http://www.mega-nerd.com/libsndfile/
28 endef
29
30 define Package/libsndfile/description
31 libsndfile is a library of C routines for reading and writing files
32 containing sampled audio data.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS += \
38 --disable-alsa \
39 --disable-external-libs \
40 --disable-sqlite \
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
51 endef
52
53 define Package/libsndfile/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libsndfile))