8efe69bc3d59c540297a2223f8c798d1324179e8
[openwrt/svn-archive/archive.git] / libs / libsndfile / Makefile
1 #
2 # Copyright (C) 2007-2008 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:=libsndfile
12 PKG_VERSION:=1.0.17
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/
17 PKG_MD5SUM:=2d126c35448503f6dbe33934d9581f6b
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libsndfile
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Library for reading/writing audio files
27 DEPENDS:=@!avr32
28 URL:=http://www.mega-nerd.com/libsndfile/
29 endef
30
31 define Package/libsndfile/description
32 libsndfile is a library of C routines for reading and writing files
33 containing sampled audio data.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --disable-flac
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 all install
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)
49 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
50 endef
51
52 define Package/libsndfile/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libsndfile))