2019-07-23 08:43:10 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
set(VERSION 1.8.1)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "http://download.osgeo.org/liblas/libLAS-${VERSION}.tar.bz2"
|
|
|
|
FILENAME "libLAS-${VERSION}-src.tar.bz2"
|
|
|
|
SHA512 1cb39c557af0006c54f1100d0d409977fcc1886abd155c1b144d806c47f8675a9f2125d3a9aca16bae65d2aabba84d5e5e322b42085e7db312f3d53f92342acf
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
PATCHES fix-BuildError.patch
|
|
|
|
)
|
|
|
|
|
2019-10-18 08:15:52 +08:00
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/modules/FindPROJ4.cmake)
|
|
|
|
file(REMOVE ${SOURCE_PATH}/cmake/modules/FindGeoTIFF.cmake)
|
2019-07-23 08:43:10 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2019-08-31 02:52:16 +08:00
|
|
|
|
2019-07-23 08:43:10 +08:00
|
|
|
-DBUILD_OSGEO4W=OFF # Disable osgeo4w
|
|
|
|
-DWITH_TESTS=OFF
|
|
|
|
-DWITH_UTILITIES=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=${CMAKE_DISABLE_FIND_PACKAGE_ZLIB}
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_JPEG=${CMAKE_DISABLE_FIND_PACKAGE_JPEG}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/doc)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/doc)
|
|
|
|
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2019-10-09 02:33:55 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
2019-07-23 08:43:10 +08:00
|
|
|
endif()
|
2019-10-09 02:33:55 +08:00
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/share/cmake/libLAS/liblas-depends.cmake)
|
2019-07-23 08:43:10 +08:00
|
|
|
|
2019-10-09 02:33:55 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libLAS)
|
2019-07-23 08:43:10 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2019-10-09 02:33:55 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|