libxerces-c: update to v3.2.0
authorÁlvaro Fernández Rojas <redacted>
Sun, 31 Dec 2017 17:36:12 +0000 (18:36 +0100)
committerÁlvaro Fernández Rojas <redacted>
Sun, 31 Dec 2017 17:45:40 +0000 (18:45 +0100)
Signed-off-by: Álvaro Fernández Rojas <redacted>
libs/libxerces-c/Makefile
libs/libxerces-c/patches/0001-fix-configure-cross-compiling.patch [new file with mode: 0644]

index c38170c76f245a108bef6ba9fbc1b78180728fb3..e13a0201c89c3b24d0efbe6ce4bb54de3347da29 100644 (file)
@@ -8,12 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=xerces-c
-PKG_VERSION:=3.1.4
-PKG_RELEASE:=2
+PKG_MAIN_VER:=3.2
+PKG_VERSION:=3.2.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
-PKG_HASH:=9973cc79481803f8b6652c52faf5195d963f50d209d4f681ec97e2aa014b6241
+PKG_HASH:=35d8db18ebe6db353850903981cd07cca64abeba071602e7e32596714352de08
 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
 
 PKG_LICENSE:=Apache-2.0
@@ -72,14 +73,14 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/xercesc/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c.a,libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c.a,libxerces-c-$(PKG_MAIN_VER).so,libxerces-c.so} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
 endef
 
 define Package/libxerces-c/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c-$(PKG_MAIN_VER).so,libxerces-c.so} $(1)/usr/lib/
 endef
 
 define Package/libxerces-c-samples/install
diff --git a/libs/libxerces-c/patches/0001-fix-configure-cross-compiling.patch b/libs/libxerces-c/patches/0001-fix-configure-cross-compiling.patch
new file mode 100644 (file)
index 0000000..9e639ac
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -194,7 +194,7 @@ AC_COMPILE_IFELSE(  [AC_LANG_PROGRAM([[#
+                     ]
+                  )
+ AC_MSG_CHECKING([for wcsrtombs])
+-AC_RUN_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
++AC_COMPILE_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
+ #include <string.h>]],
+                                  [[
+ mbstate_t st;
+@@ -216,7 +216,7 @@ else
+                     ]
+                  )
+ AC_MSG_CHECKING([for mbsrtowcs])
+-AC_RUN_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
++AC_COMPILE_IFELSE(  [AC_LANG_PROGRAM([[#include <wchar.h>
+ #include <string.h>]],
+                                  [[
+ mbstate_t st;
git clone https://git.99rst.org/PROJECT