libsndfile: update to 1.0.28
[feed/packages.git] / libs / libsndfile / Makefile
1 #
2 # Copyright (C) 2007-2010 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.28
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/files/
16 PKG_HASH:=1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9
17
18 PKG_LICENSE:=LGPLv2.1
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libsndfile
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Library for reading/writing audio files
30 URL:=http://www.mega-nerd.com/libsndfile/
31 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
32 DEPENDS:=@!avr32
33 endef
34
35 define Package/libsndfile/description
36 libsndfile is a library of C routines for reading and writing files
37 containing sampled audio data.
38 endef
39
40 CONFIGURE_ARGS+= \
41 --disable-alsa \
42 --disable-external-libs \
43 --disable-sqlite
44
45 CONFIGURE_VARS += \
46 ac_cv_sys_file_offset_bits=64 \
47 ac_cv_sys_large_files=yes \
48 ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
49 ac_cv_sys_largefile_LDFLAGS= \
50 ac_cv_sys_largefile_LIBS= \
51 ac_cv_sys_largefile_source=yes
52
53 TARGET_CFLAGS += $(FPIC)
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)
57 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
58 endef
59
60 define Package/libsndfile/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libsndfile))