2007-06-30 17:59:35 +00:00
|
|
|
#
|
2009-10-05 16:05:22 +00:00
|
|
|
# Copyright (C) 2007-2009 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
|
2009-10-05 16:05:22 +00:00
|
|
|
PKG_VERSION:=1.0.20
|
|
|
|
PKG_RELEASE:=1
|
2007-06-30 17:59:35 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/
|
2009-10-05 16:05:22 +00:00
|
|
|
PKG_MD5SUM:=e0553e12c7a467af44693e95e2eac668
|
2007-06-30 17:59:35 +00:00
|
|
|
|
2009-10-05 16:05:22 +00:00
|
|
|
PKG_FIXUP:=libtool
|
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
|
2009-01-06 17:13:15 +00:00
|
|
|
DEPENDS:=@!avr32
|
2007-06-30 17:59:35 +00:00
|
|
|
URL:=http://www.mega-nerd.com/libsndfile/
|
|
|
|
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
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-06-30 17:59:35 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2009-10-05 16:05:22 +00:00
|
|
|
--disable-alsa \
|
|
|
|
--disable-external-libs \
|
|
|
|
--disable-sqlite \
|
2007-06-30 17:59:35 +00:00
|
|
|
|
2008-04-21 22:13:41 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
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))
|