From 6bff5ab08b36572a361af2465f9d29b21da74235 Mon Sep 17 00:00:00 2001 From: Alexander Ryzhov Date: Tue, 22 Mar 2016 12:40:16 +0300 Subject: [PATCH] libsoxr: make dynamic libraries fixes https://github.com/openwrt/packages/issues/2533 Signed-off-by: Alexander Ryzhov --- libs/libsoxr/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libs/libsoxr/Makefile b/libs/libsoxr/Makefile index 8f69803f8e..ed78afd7a0 100644 --- a/libs/libsoxr/Makefile +++ b/libs/libsoxr/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2014 OpenWrt.org +# Copyright (C) 2014-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libsoxr PKG_VERSION:=0.1.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://git.code.sf.net/p/soxr/code @@ -43,19 +43,20 @@ define Package/libsoxr/description High quality, one-dimensional sample-rate conversion library endef -CMAKE_OPTIONS:= -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0 +CMAKE_OPTIONS:= -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0 CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1) define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include - $(CP) $(PKG_BUILD_DIR)/src/soxr.h $(1)/usr/include/ - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/soxr.h $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/soxr.pc $(1)/usr/lib/pkgconfig/ endef define Package/libsoxr/install $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/src/libsoxr.so* $(1)/usr/lib/ endef -- 2.30.2