mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
commit
d1122c844a
3
ports/lzo/CONTROL
Normal file
3
ports/lzo/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: lzo
|
||||
Version: 2.09
|
||||
Description: Lossless data compression library
|
17
ports/lzo/do-not-declare-setargv.patch
Normal file
17
ports/lzo/do-not-declare-setargv.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/src/lzo_supp.h b/src/lzo_supp.h
|
||||
index 87307f9..f94a6b0 100644
|
||||
--- a/src/lzo_supp.h
|
||||
+++ b/src/lzo_supp.h
|
||||
@@ -3643,9 +3643,9 @@ LZO_EXTERN_C int __lzo_cdecl _setargv(void) { return __setargv(); }
|
||||
#endif
|
||||
#if (LZO_OS_WIN32 || LZO_OS_WIN64)
|
||||
#if (LZO_CC_INTELC || LZO_CC_MSC)
|
||||
-LZO_EXTERN_C int __lzo_cdecl __setargv(void);
|
||||
-LZO_EXTERN_C int __lzo_cdecl _setargv(void);
|
||||
-LZO_EXTERN_C int __lzo_cdecl _setargv(void) { return __setargv(); }
|
||||
+// LZO_EXTERN_C int __lzo_cdecl __setargv(void);
|
||||
+// LZO_EXTERN_C int __lzo_cdecl _setargv(void);
|
||||
+// LZO_EXTERN_C int __lzo_cdecl _setargv(void) { return __setargv(); }
|
||||
#endif
|
||||
#endif
|
||||
#if (LZO_OS_EMX)
|
44
ports/lzo/portfile.cmake
Normal file
44
ports/lzo/portfile.cmake
Normal file
@ -0,0 +1,44 @@
|
||||
# Common Ambient Variables:
|
||||
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
|
||||
# TARGET_TRIPLET is the current triplet (x86-windows, etc)
|
||||
# PORT is the current port name (zlib, etc)
|
||||
# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
|
||||
# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
|
||||
#
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported yet. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/lzo-2.09)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz"
|
||||
FILENAME "lzo-2.09.tar.gz"
|
||||
SHA512 7c64e5e7d2050d75ac8c59d613f6f7230b74746b1d207666755b07450053c8b73980f12f8a1ec59d2af0bada02beec126aaacb675b8088b5fe65e97ff7e6bfc7
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/do-not-declare-setargv.patch"
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/lzo-2.09/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/lzo)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/lzo/COPYING ${CURRENT_PACKAGES_DIR}/share/lzo/copyright)
|
Loading…
x
Reference in New Issue
Block a user