2 # Copyright (C) 2014-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 # updated to work with latest source from abrasive
9 include $(TOPDIR)/rules.mk
16 PKG_SOURCE_URL:=git://git.code.sf.net/p/soxr/code
17 PKG_SOURCE_VERSION:=$(PKG_VERSION)
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
21 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
22 Mike Brady <mikebrady@eircom.net>
25 PKG_LICENSE_FILES:=LICENCE
28 PKG_REMOVE_FILES:=autogen.sh
33 include $(INCLUDE_DIR)/package.mk
34 include $(INCLUDE_DIR)/cmake.mk
36 define Package/libsoxr
39 TITLE:=The SoX Resampler library
40 URL:=http://sourceforge.net/projects/soxr/
44 define Package/libsoxr/description
45 The SoX Resampler library
46 High quality, one-dimensional sample-rate conversion library
49 CMAKE_OPTIONS:= -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0
50 CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1)
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/soxr.h $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/soxr.pc $(1)/usr/lib/pkgconfig/
60 define Package/libsoxr/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/
65 $(eval $(call BuildPackage,libsoxr))