2010-02-18 13:10:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-06-30 17:59:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libsndfile
|
2011-08-21 14:41:10 +00:00
|
|
|
PKG_VERSION:=1.0.25
|
2011-08-22 06:48:53 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-06-30 17:59:35 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-04-18 13:51:54 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/files/
|
2011-08-21 14:41:10 +00:00
|
|
|
PKG_MD5SUM:=e2b7bb637e01022c7d20f95f9c3990a2
|
2007-06-30 17:59:35 +00:00
|
|
|
|
2009-10-05 16:05:22 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2007-06-30 17:59:35 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libsndfile
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for reading/writing audio files
|
|
|
|
URL:=http://www.mega-nerd.com/libsndfile/
|
2010-04-18 13:51:54 +00:00
|
|
|
DEPENDS:=@!avr32
|
2007-06-30 17:59:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libsndfile/description
|
2008-04-21 22:13:41 +00:00
|
|
|
libsndfile is a library of C routines for reading and writing files
|
|
|
|
containing sampled audio data.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2010-04-18 13:51:54 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-alsa \
|
|
|
|
--disable-external-libs \
|
2011-08-22 06:48:53 +00:00
|
|
|
--disable-sqlite
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_sys_file_offset_bits=64 \
|
|
|
|
ac_cv_sys_large_files=yes \
|
|
|
|
ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
|
|
|
|
ac_cv_sys_largefile_LDFLAGS= \
|
|
|
|
ac_cv_sys_largefile_LIBS= \
|
|
|
|
ac_cv_sys_largefile_source=yes
|
2008-08-06 22:43:15 +00:00
|
|
|
|
2010-04-18 13:51:54 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2007-06-30 17:59:35 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-25 02:43:09 +00:00
|
|
|
$(INSTALL_DIR) $(1)
|
2007-11-08 21:31:59 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
2007-06-30 17:59:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsndfile/install
|
2008-04-21 22:13:41 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
|
2007-06-30 17:59:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsndfile))
|