2 # Copyright (C) 2007-2009 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
10 PKG_NAME:=libsamplerate
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.mega-nerd.com/SRC/
16 PKG_MD5SUM:=ad093e60ec44f0a60de8e29983ddbc0f
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libsamplerate
26 TITLE:=Sample Rate Converter
27 URL:=http://www.mega-nerd.com/SRC/index.html
30 define Package/libsamplerate/description
31 Secret Rabbit Code (aka libsamplerate) is a Sample Rate
35 TARGET_CFLAGS += $(FPIC)
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
46 define Build/InstallDev
48 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
51 define Package/libsamplerate/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/
56 $(eval $(call BuildPackage,libsamplerate))