2019-01-27 05:01:25 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rbock/sqlpp11
|
2020-09-28 08:33:19 +08:00
|
|
|
REF 085713d4d301aeb58e7d14f44cfac6ce35fe2e77 # 0.60
|
|
|
|
SHA512 835536482def61c9978cda58507a7f5983b99765f69e7865cf5597b06075dc3e7ad4a3be0b2de2e44e4a4c3a6998115bf567ff586fb656cf5d95a0a7465fb2fe
|
2019-01-27 05:01:25 +08:00
|
|
|
HEAD_REF master
|
2020-09-28 08:33:19 +08:00
|
|
|
PATCHES
|
|
|
|
ddl2cpp_path.patch
|
|
|
|
fix-dependency.patch
|
2019-01-27 05:01:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Use sqlpp11's own build process, skipping tests
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2019-01-27 05:01:25 +08:00
|
|
|
OPTIONS
|
2020-09-28 08:33:19 +08:00
|
|
|
-DENABLE_TESTS:BOOL=OFF
|
2019-01-27 05:01:25 +08:00
|
|
|
)
|
2020-06-11 08:52:14 +08:00
|
|
|
|
2019-01-27 05:01:25 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
# Move CMake config files to the right place
|
2020-06-11 08:52:14 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Sqlpp11 TARGET_PATH share/${PORT})
|
2019-01-27 05:01:25 +08:00
|
|
|
|
|
|
|
# Delete redundant and unnecessary directories
|
2020-09-28 08:33:19 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/include/date)
|
2019-01-27 05:01:25 +08:00
|
|
|
|
2019-03-16 02:44:28 +08:00
|
|
|
# Move python script from bin directory
|
|
|
|
file(COPY ${CURRENT_PACKAGES_DIR}/bin/sqlpp11-ddl2cpp DESTINATION ${CURRENT_PACKAGES_DIR}/scripts)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/)
|
|
|
|
|
2019-01-27 05:01:25 +08:00
|
|
|
# Handle copyright
|
2020-06-11 08:52:14 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|