early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/lzo/always_install_pc.patch
vendored
Executable file
13
externals/vcpkg/ports/lzo/always_install_pc.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 98c0a1ad0..85690209c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -290,7 +290,7 @@ if(1)
|
||||
install(TARGETS ${f} DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/lzo/examples")
|
||||
endif()
|
||||
|
||||
-if(PKG_CONFIG_FOUND)
|
||||
+if(1)
|
||||
configure_file(lzo2.pc.cmakein lzo2.pc @ONLY)
|
||||
#if(EXISTS "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lzo2.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
|
||||
46
externals/vcpkg/ports/lzo/portfile.cmake
vendored
Executable file
46
externals/vcpkg/ports/lzo/portfile.cmake
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz"
|
||||
FILENAME "lzo-2.10.tar.gz"
|
||||
SHA512 a3dae5e4a6b93b1f5bf7435e8ab114a9be57252e9efc5dd444947d7a2d031b0819f34bcaeb35f60b5629a01b1238d738735a64db8f672be9690d3c80094511a4
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
PATCHES always_install_pc.patch
|
||||
)
|
||||
|
||||
set(LZO_STATIC OFF)
|
||||
set(LZO_SHARED OFF)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(LZO_STATIC ON)
|
||||
else()
|
||||
set(LZO_SHARED ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DENABLE_STATIC=${LZO_STATIC}
|
||||
-DENABLE_SHARED=${LZO_SHARED}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/libexec)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/libexec)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/lzo/lzoconf.h LZO_CONFIG)
|
||||
string(REPLACE "# define __LZO_EXPORT1 /*empty*/"
|
||||
"# define __LZO_EXPORT1 __declspec(dllimport)" LZO_CONFIG "${LZO_CONFIG}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/lzo/lzoconf.h "${LZO_CONFIG}")
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
7
externals/vcpkg/ports/lzo/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/lzo/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "lzo",
|
||||
"version-string": "2.10",
|
||||
"port-version": 7,
|
||||
"description": "Lossless data compression library",
|
||||
"homepage": "https://www.oberhumer.com/opensource/lzo/"
|
||||
}
|
||||
Reference in New Issue
Block a user