| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # This is free software, licensed under the GNU General Public License v2. |
| 3 | # See /LICENSE for more information. |
| 4 | # updated to work with latest source from abrasive |
| 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=libsoxr |
| 10 | PKG_VERSION:=0.1.3 |
| 11 | PKG_RELEASE:=2 |
| 12 | |
| 13 | PKG_SOURCE_URL:=@SF/project/soxr/ |
| 14 | PKG_SOURCE:=soxr-$(PKG_VERSION)-Source.tar.xz |
| 15 | PKG_HASH:=b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889 |
| 16 | PKG_BUILD_DIR:=$(BUILD_DIR)/soxr-$(PKG_VERSION)-Source |
| 17 | |
| 18 | PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \ |
| 19 | Mike Brady <mikebrady@eircom.net> |
| 20 | PKG_LICENSE:=LGPL-2.1 |
| 21 | PKG_LICENSE_FILES:=LICENCE |
| 22 | PKG_CPE_ID:=cpe:/a:sox:sox |
| 23 | |
| 24 | CMAKE_INSTALL:=1 |
| 25 | |
| 26 | include $(INCLUDE_DIR)/package.mk |
| 27 | include $(INCLUDE_DIR)/cmake.mk |
| 28 | |
| 29 | define Package/libsoxr |
| 30 | SECTION:=libs |
| 31 | CATEGORY:=Libraries |
| 32 | TITLE:=The SoX Resampler library |
| 33 | URL:=https://sourceforge.net/projects/soxr/ |
| 34 | DEPENDS:= +libpthread |
| 35 | endef |
| 36 | |
| 37 | define Package/libsoxr/description |
| 38 | The SoX Resampler library |
| 39 | High quality, one-dimensional sample-rate conversion library |
| 40 | endef |
| 41 | |
| 42 | CMAKE_OPTIONS += \ |
| 43 | -DBUILD_TESTS=0 \ |
| 44 | -DBUILD_EXAMPLES=0 \ |
| 45 | -DWITH_OPENMP=0 \ |
| 46 | -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1) |
| 47 | |
| 48 | define Package/libsoxr/install |
| 49 | $(INSTALL_DIR) $(1)/usr/lib |
| 50 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/ |
| 51 | endef |
| 52 | |
| 53 | $(eval $(call BuildPackage,libsoxr)) |