termux-packages/packages/libical/src-libical-CMakeLists.txt.patch
Fredrik Fornwall 679fbb0316 libical: Try out patch to fix PACKAGE_DATA_DIR
Without this patch the path compiled into the library is actually

  "/data/data/com.termux/files/usr/share/libical"/zoneinfo

with the extra quotes. This patch makes it

  /data/data/com.termux/files/usr/share/libical/zoneinfo

which will hopefully make the library work without calling
set_zone_directory(). See #1913.
2017-12-09 22:24:07 +01:00

13 lines
551 B
Diff

diff -u -r ../libical-3.0.1/src/libical/CMakeLists.txt ./src/libical/CMakeLists.txt
--- ../libical-3.0.1/src/libical/CMakeLists.txt 2017-11-19 15:32:53.000000000 +0100
+++ ./src/libical/CMakeLists.txt 2017-12-09 22:14:42.254898817 +0100
@@ -17,7 +17,7 @@
include_directories(${ICU_INCLUDE_DIR})
endif()
-set(PACKAGE_DATA_DIR "\\\"${CMAKE_INSTALL_PREFIX}/share/libical\\\"")
+set(PACKAGE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/libical")
add_definitions(-DPACKAGE_DATA_DIR="${PACKAGE_DATA_DIR}")
set(ICALSCRIPTS ${CMAKE_SOURCE_DIR}/scripts/)