diff options
author | Stefan Petrea <stefan.petrea@gmail.com> | 2024-02-24 11:28:22 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-25 17:38:16 +0700 |
commit | f1c5edf873420dd43404a14cd61b2549feae4c89 (patch) | |
tree | 26e00fec36dd2eceb7e4f2628ece64dacef0a471 /libraries/libkml | |
parent | 3a25ab782e3236fe820cfdec471608e0d19aedbb (diff) |
libraries/libkml: fixed outdated libkml build
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libkml')
-rw-r--r-- | libraries/libkml/libkml.SlackBuild | 2 | ||||
-rw-r--r-- | libraries/libkml/patches/p1.patch | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/libraries/libkml/libkml.SlackBuild b/libraries/libkml/libkml.SlackBuild index 6af880491c531..cb1971b54bfae 100644 --- a/libraries/libkml/libkml.SlackBuild +++ b/libraries/libkml/libkml.SlackBuild @@ -81,6 +81,8 @@ find -L . \ sed -i -e "s#set(DEF_INSTALL_CMAKE_DIR lib/cmake/libkml)#set(DEF_INSTALL_CMAKE_DIR lib$LIBDIRSUFFIX/cmake/libkml)#" CMakeLists.txt +patch -p0 < $CWD/patches/p1.patch + mkdir -p build cd build cmake \ diff --git a/libraries/libkml/patches/p1.patch b/libraries/libkml/patches/p1.patch new file mode 100644 index 0000000000000..8a918ddd53a56 --- /dev/null +++ b/libraries/libkml/patches/p1.patch @@ -0,0 +1,21 @@ +--- cmake/External_uriparser.cmake.modif 2015-12-21 19:23:05.000000000 +0200 ++++ cmake/External_uriparser.cmake 2024-02-24 11:04:25.349773553 +0200 +@@ -1,16 +1,14 @@ + ExternalProject_Add(URIPARSER + PREFIX URIPARSER +- URL "http://sourceforge.net/projects/uriparser/files/Sources/0.7.5/uriparser-0.7.5.tar.bz2/download" +- URL_MD5 4f4349085fe5de33bcae8d0f26649593 ++ URL "http://sourceforge.net/projects/uriparser/files/Sources/0.9.7/uriparser-0.9.7.tar.bz2/download" ++ URL_MD5 db4de4763071e993be2621249a96afac + BINARY_DIR ${CMAKE_BINARY_DIR}/URIPARSER/build + DOWNLOAD_DIR ${DOWNLOAD_LOCATION} +- PATCH_COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/cmake/UriParser_cmake_lists_txt ${CMAKE_BINARY_DIR}/URIPARSER/src/URIPARSER/CMakeLists.txt + CMAKE_CACHE_ARGS + -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_DIR} + -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} + -DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS} ) + +- + if(MSVC) + include_project_vars(URIPARSER "uriparser") + else() |