early-access version 2853
This commit is contained in:
50
externals/vcpkg/ports/libxslt/cmake.patch
vendored
Executable file
50
externals/vcpkg/ports/libxslt/cmake.patch
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d8679fb7f..ca21a7a3d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -36,10 +36,10 @@ if(LIBXSLT_WITH_PYTHON)
|
||||
if(HAVE_UNISTD_H AND HAVE_F_GETFL)
|
||||
find_package(Python COMPONENTS Interpreter Development REQUIRED)
|
||||
else()
|
||||
- find_package(Python2 COMPONENTS Interpreter Development REQUIRED)
|
||||
- add_library(Python::Python ALIAS Python2::Python)
|
||||
- set(Python_EXECUTABLE ${Python2_EXECUTABLE})
|
||||
- set(Python_SITEARCH ${Python2_SITEARCH})
|
||||
+ find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
|
||||
+ add_library(Python::Python ALIAS Python3::Python)
|
||||
+ set(Python_EXECUTABLE ${Python3_EXECUTABLE})
|
||||
+ set(Python_SITEARCH ${Python3_SITEARCH})
|
||||
endif()
|
||||
set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
|
||||
endif()
|
||||
@@ -244,7 +244,7 @@ set_target_properties(
|
||||
VERSION ${PROJECT_VERSION}
|
||||
)
|
||||
|
||||
-if(MSVC)
|
||||
+if(0) # Never add suffixes which are not added by the autotools build or the nmake makefiles
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set_target_properties(
|
||||
LibXslt
|
||||
@@ -327,7 +327,7 @@ set_target_properties(
|
||||
VERSION ${LIBEXSLT_VERSION}
|
||||
)
|
||||
|
||||
-if(MSVC)
|
||||
+if(0) # same reason as above
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set_target_properties(
|
||||
LibExslt
|
||||
diff --git a/libexslt.pc.in b/libexslt.pc.in
|
||||
index 1d605639a..c3a1edb00 100644
|
||||
--- a/libexslt.pc.in
|
||||
+++ b/libexslt.pc.in
|
||||
@@ -7,7 +7,7 @@ includedir=@includedir@
|
||||
Name: libexslt
|
||||
Version: @LIBEXSLT_VERSION@
|
||||
Description: EXSLT Extension library
|
||||
-Requires: libxml-2.0, libxslt
|
||||
+Requires: libxml-2.0 libxslt
|
||||
Cflags: @EXSLT_INCLUDEDIR@
|
||||
Libs: @EXSLT_LIBDIR@ -lexslt
|
||||
Libs.private: @EXSLT_PRIVATE_LIBS@
|
83
externals/vcpkg/ports/libxslt/portfile.cmake
vendored
Executable file
83
externals/vcpkg/ports/libxslt/portfile.cmake
vendored
Executable file
@@ -0,0 +1,83 @@
|
||||
# Get this value from configure.ac:21
|
||||
set(LIBEXSLT_VERSION 0.8.20)
|
||||
set(VERSION 1.1.35)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO GNOME/libxslt
|
||||
REF v${VERSION}
|
||||
SHA512 1ab264a8d3996d74a89a22e4062950ef968b9252736e0b5f975e6f45d63a6484993fe383b85831cef0e4b9c9c90f9b2b3d5432c15ee9381dbaeb2fa681ab9b46
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
cmake.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
"python" LIBXSLT_WITH_PYTHON
|
||||
"crypto" LIBXSLT_WITH_CRYPTO
|
||||
)
|
||||
if("python" IN_LIST FEATURES)
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
list(APPEND FEATURE_OPTIONS "-DPYTHON_EXECUTABLE=${PYTHON3}")
|
||||
list(APPEND FEATURE_OPTIONS_RELEASE "-DLIBXSLT_PYTHON_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/lib/site-packages")
|
||||
list(APPEND FEATURE_OPTIONS_DEBUG "-DLIBXSLT_PYTHON_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/debug/lib/site-packages")
|
||||
endif()
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DLIBXSLT_WITH_TESTS:BOOL=OFF
|
||||
-DLIBXSLT_WITH_THREADS:BOOL=ON
|
||||
OPTIONS_RELEASE
|
||||
${FEATURE_OPTIONS_RELEASE}
|
||||
-DLIBXSLT_WITH_XSLT_DEBUG:BOOL=OFF
|
||||
-DLIBXSLT_WITH_MEM_DEBUG:BOOL=OFF
|
||||
-DLIBXSLT_WITH_DEBUGGER:BOOL=OFF
|
||||
OPTIONS_DEBUG
|
||||
${FEATURE_OPTIONS_DEBUG}
|
||||
-DLIBXSLT_WITH_XSLT_DEBUG:BOOL=ON
|
||||
-DLIBXSLT_WITH_MEM_DEBUG:BOOL=ON
|
||||
-DLIBXSLT_WITH_DEBUGGER:BOOL=ON
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}-${VERSION}")
|
||||
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/xsltConf.sh" "${CURRENT_PACKAGES_DIR}/debug/lib/xsltConf.sh")
|
||||
|
||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/libxslt/bin")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/xslt-config" "${CURRENT_PACKAGES_DIR}/tools/libxslt/bin/xslt-config")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/bin")
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/xslt-config" "${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/bin/xslt-config")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../../")
|
||||
endif()
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltconfig.h" "#define LIBXSLT_DEFAULT_PLUGINS_PATH() \"${CURRENT_INSTALLED_DIR}/lib/libxslt-plugins\"" "")
|
||||
vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# You have to define LIB(E)XSLT_STATIC or not, depending on how you link
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/libxslt/xsltexports.h" XSLTEXPORTS_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
string(REPLACE "!defined(LIBXSLT_STATIC)" "0" XSLTEXPORTS_H "${XSLTEXPORTS_H}")
|
||||
else()
|
||||
string(REPLACE "!defined(LIBXSLT_STATIC)" "1" XSLTEXPORTS_H "${XSLTEXPORTS_H}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/libxslt/xsltexports.h" "${XSLTEXPORTS_H}")
|
||||
|
||||
file(READ "${CURRENT_PACKAGES_DIR}/include/libexslt/exsltexports.h" EXSLTEXPORTS_H)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
string(REPLACE "!defined(LIBEXSLT_STATIC)" "0" EXSLTEXPORTS_H "${EXSLTEXPORTS_H}")
|
||||
else()
|
||||
string(REPLACE "!defined(LIBEXSLT_STATIC)" "1" EXSLTEXPORTS_H "${EXSLTEXPORTS_H}")
|
||||
endif()
|
||||
file(WRITE "${CURRENT_PACKAGES_DIR}/include/libexslt/exsltexports.h" "${EXSLTEXPORTS_H}")
|
||||
|
||||
# Remove tools and debug include directories
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libxslt")
|
5
externals/vcpkg/ports/libxslt/vcpkg-cmake-wrapper.cmake
vendored
Executable file
5
externals/vcpkg/ports/libxslt/vcpkg-cmake-wrapper.cmake
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
list(REMOVE_ITEM ARGS "NO_MODULE")
|
||||
list(REMOVE_ITEM ARGS "CONFIG")
|
||||
list(REMOVE_ITEM ARGS "MODULE")
|
||||
|
||||
_find_package(${ARGS} CONFIG)
|
56
externals/vcpkg/ports/libxslt/vcpkg.json
vendored
Executable file
56
externals/vcpkg/ports/libxslt/vcpkg.json
vendored
Executable file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "libxslt",
|
||||
"version": "1.1.35",
|
||||
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
|
||||
"homepage": "https://github.com/GNOME/libxslt",
|
||||
"license": null,
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"liblzma",
|
||||
"libxml2",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"default-features"
|
||||
],
|
||||
"features": {
|
||||
"crypto": {
|
||||
"description": "Build with crypto support",
|
||||
"supports": "mingw | !windows",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "libgcrypt",
|
||||
"platform": "!mingw"
|
||||
}
|
||||
]
|
||||
},
|
||||
"default-features": {
|
||||
"description": "default features for the current platform",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "libxslt",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"crypto"
|
||||
],
|
||||
"platform": "mingw | !windows"
|
||||
}
|
||||
]
|
||||
},
|
||||
"plugins": {
|
||||
"description": "(deprecated)",
|
||||
"supports": "!static"
|
||||
},
|
||||
"python": {
|
||||
"description": "Builds with python support",
|
||||
"supports": "mingw | !windows"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user