浏览代码

libsoxr: fix cmake builds for big-endian target systems

Signed-off-by: Ted Hess <thess@kitschensync.net>
Ted Hess 10 年前
父节点
当前提交
5c7c791a7a
共有 2 个文件被更改,包括 7 次插入8 次删除
  1. 7
    7
      libs/libsoxr/Makefile
  2. 0
    1
      libs/libsoxr/files/configure

+ 7
- 7
libs/libsoxr/Makefile 查看文件

@@ -10,14 +10,16 @@ include $(TOPDIR)/rules.mk
10 10
 
11 11
 PKG_NAME:=libsoxr
12 12
 PKG_VERSION:=0.1.1
13
-PKG_RELEASE:=1
13
+PKG_RELEASE:=2
14 14
 
15 15
 PKG_SOURCE_PROTO:=git
16 16
 PKG_SOURCE_URL:=git://git.code.sf.net/p/soxr/code
17 17
 PKG_SOURCE_VERSION:=$(PKG_VERSION)
18 18
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 19
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
20
-PKG_LICENSE:=LGPL-2.0
20
+
21
+PKG_LICENSE:=LGPL-2.1
22
+PKG_LICENSE_FILE:=LICENCE
21 23
 
22 24
 PKG_FIXUP:=libtool
23 25
 PKG_REMOVE_FILES:=autogen.sh
@@ -25,11 +27,7 @@ PKG_REMOVE_FILES:=autogen.sh
25 27
 PKG_BUILD_PARALLEL:=1
26 28
 
27 29
 include $(INCLUDE_DIR)/package.mk
28
-
29
-define Build/Configure
30
-	$(CP) ./files/* $(PKG_BUILD_DIR)/
31
-	$(call Build/Configure/Default, )
32
-endef
30
+include $(INCLUDE_DIR)/cmake.mk
33 31
 
34 32
 define Package/libsoxr
35 33
   SECTION:=libs
@@ -45,6 +43,8 @@ define Package/libsoxr/description
45 43
   High quality, one-dimensional sample-rate conversion library
46 44
 endef
47 45
 
46
+CMAKE_OPTIONS:= -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0
47
+CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1)
48 48
 
49 49
 define Build/InstallDev
50 50
 	$(INSTALL_DIR) $(1)/usr/include

+ 0
- 1
libs/libsoxr/files/configure 查看文件

@@ -1 +0,0 @@
1
-cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0 .