summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-04-13 22:53:42 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-04-14 07:42:14 (GMT)
commitc2ad0bc4ca65c6ab5ef78dfa44fb9a473af0023e (patch)
treefe176b51b7fa103dc1ae245662f270c757929733 /src
parentf2736334b0fa0f44279d2019ba554a2963f8824f (diff)
downloadmxe-c2ad0bc4ca65c6ab5ef78dfa44fb9a473af0023e.zip
mxe-c2ad0bc4ca65c6ab5ef78dfa44fb9a473af0023e.tar.gz
mxe-c2ad0bc4ca65c6ab5ef78dfa44fb9a473af0023e.tar.bz2
libical: update to version 2.0.0
Diffstat (limited to 'src')
-rw-r--r--src/libical-1-fixes.patch133
-rw-r--r--src/libical.mk4
2 files changed, 135 insertions, 2 deletions
diff --git a/src/libical-1-fixes.patch b/src/libical-1-fixes.patch
new file mode 100644
index 0000000..bcf149a
--- /dev/null
+++ b/src/libical-1-fixes.patch
@@ -0,0 +1,133 @@
+This file is part of MXE.
+See index.html for further information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev <bnagaev@gmail.com>
+Date: Wed, 13 Apr 2016 20:54:43 +0300
+Subject: [PATCH] fix definitions of gmtime/gmtime_r
+
+Fix the following error:
+config.h:508:37: error: expected initializer before '?' token
+
+The error is caused by the following combination:
+
+ #include <unistd.h>
+ #define gmtime_r(tp,tmp) ((gmtime(tp))?(*(tmp)=*(gmtime(tp)),(tmp)):0)
+ #include <time.h>
+
+time.h declares and defines gmtime_r. Because of the macro, the definition
+of gmtime_r is broken. This commit moves time.h before the macro define.
+
+diff --git a/config.h.cmake b/config.h.cmake
+index 1111111..2222222 100644
+--- a/config.h.cmake
++++ b/config.h.cmake
+@@ -495,6 +495,7 @@ typedef ssize_t IO_SSIZE_T;
+ #endif
+ #endif
+
++#include <time.h>
+ /* gmtime_r - thread safe gmtime() really only needed on Unix */
+ #if !defined(HAVE_GMTIME_R)
+ #if !defined(_WIN32)
+@@ -507,7 +508,6 @@ typedef ssize_t IO_SSIZE_T;
+ /* FYI: The gmtime() in Microsoft's C library is MT-safe */
+ #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
+ #endif
+-#include <time.h>
+
+ /* localtime_r - thread safe localtime() really only needed on Unix */
+ #if !defined(HAVE_LOCALTIME_R)
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Boris Nagaev <bnagaev@gmail.com>
+Date: Thu, 14 Apr 2016 01:33:47 +0300
+Subject: [PATCH] test, examples: fix linking with static library
+
+Fix errors like the following:
+
+> No rule to make target `bin/libical-static.lib',
+> needed by `src/test/copycluster.exe'.
+
+diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -23,19 +23,11 @@ add_dependencies(doesnothing ical icalss icalvcal)
+ if(NOT STATIC_ONLY)
+ target_link_libraries(doesnothing ical icalss icalvcal)
+ else()
+- if(NOT WIN32)
+- target_link_libraries(doesnothing
+- ${CMAKE_BINARY_DIR}/lib/libical.a
+- ${CMAKE_BINARY_DIR}/lib/libicalss.a
+- ${CMAKE_BINARY_DIR}/lib/libicalvcal.a
+- )
+- else()
+- target_link_libraries(doesnothing
+- ${CMAKE_BINARY_DIR}/bin/libical-static.lib
+- ${CMAKE_BINARY_DIR}/bin/libicalss-static.lib
+- ${CMAKE_BINARY_DIR}/bin/libicalvcal-static.lib
+- )
+- endif()
++ target_link_libraries(doesnothing
++ ical-static
++ icalss-static
++ icalvcal-static
++ )
+ target_link_libraries(doesnothing ${CMAKE_THREAD_LIBS_INIT})
+ if(ICU_FOUND)
+ target_link_libraries(doesnothing ${ICU_LIBRARY})
+diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/src/test/CMakeLists.txt
++++ b/src/test/CMakeLists.txt
+@@ -50,19 +50,11 @@ macro(buildme _name _srcs)
+ endif()
+ else()
+ add_dependencies(${_name} ical-static icalss-static icalvcal-static)
+- if(NOT WIN32)
+- target_link_libraries(${_name}
+- ${CMAKE_BINARY_DIR}/lib/libical.a
+- ${CMAKE_BINARY_DIR}/lib/libicalss.a
+- ${CMAKE_BINARY_DIR}/lib/libicalvcal.a
+- )
+- else()
+- target_link_libraries(${_name}
+- ${CMAKE_BINARY_DIR}/bin/libical-static.lib
+- ${CMAKE_BINARY_DIR}/bin/libicalss-static.lib
+- ${CMAKE_BINARY_DIR}/bin/libicalvcal-static.lib
+- )
+- endif()
++ target_link_libraries(${_name}
++ ical-static
++ icalss-static
++ icalvcal-static
++ )
+ target_link_libraries(${_name} ${CMAKE_THREAD_LIBS_INIT})
+ if(ICU_FOUND)
+ target_link_libraries(${_name} ${ICU_LIBRARY})
+@@ -74,17 +66,10 @@ macro(buildme _name _srcs)
+ target_link_libraries(${_name} ${BDB_LIBRARY})
+ endif()
+ if(WITH_CXX_BINDINGS)
+- if(NOT WIN32)
+- target_link_libraries(${_name}
+- ${CMAKE_BINARY_DIR}/lib/libical_cxx.a
+- ${CMAKE_BINARY_DIR}/lib/libicalss_cxx.a
+- )
+- else()
+- target_link_libraries(${_name}
+- ${CMAKE_BINARY_DIR}/bin/libical_cxx-static.lib
+- ${CMAKE_BINARY_DIR}/bin/libicalss_cxx-static.lib
+- )
+- endif()
++ target_link_libraries(${_name}
++ ical_cxx-static
++ icalss_cxx-static
++ )
+ endif()
+ endif()
+ endmacro()
diff --git a/src/libical.mk b/src/libical.mk
index 6b7e408..f1106cb 100644
--- a/src/libical.mk
+++ b/src/libical.mk
@@ -2,8 +2,8 @@
# See index.html for further information.
PKG := libical
-$(PKG)_VERSION := 1.0.1
-$(PKG)_CHECKSUM := 089ce3c42d97fbd7a5d4b3c70adbdd82115dd306349c1f5c46a8fb3f8c949592
+$(PKG)_VERSION := 2.0.0
+$(PKG)_CHECKSUM := 654c11f759c19237be39f6ad401d917e5a05f36f1736385ed958e60cf21456da
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/$(PKG)/$(PKG)/releases/download/v$($(PKG)_VERSION)//$($(PKG)_FILE)