2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/files/
16 PKG_MD5SUM:=e2b7bb637e01022c7d20f95f9c3990a2
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libsndfile
26 TITLE:=Library for reading/writing audio files
27 URL:=http://www.mega-nerd.com/libsndfile/
31 define Package/libsndfile/description
32 libsndfile is a library of C routines for reading and writing files
33 containing sampled audio data.
38 --disable-external-libs \
42 ac_cv_sys_file_offset_bits=64 \
43 ac_cv_sys_large_files=yes \
44 ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
45 ac_cv_sys_largefile_LDFLAGS= \
46 ac_cv_sys_largefile_LIBS= \
47 ac_cv_sys_largefile_source=yes
49 TARGET_CFLAGS += $(FPIC)
51 define Build/InstallDev
53 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
56 define Package/libsndfile/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
61 $(eval $(call BuildPackage,libsndfile))