2019-01-27 05:01:25 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rbock/sqlpp11
|
2020-06-11 08:52:14 +08:00
|
|
|
REF 0.59
|
|
|
|
SHA512 9da05e7a5163200040205b9740d6bf4ad1faa94b2bf031c16d896865b3f10e0fe95a0532a2c2e89adc051250a7f76c550a239916fdd700828d4fb1da566a4fe3
|
2019-01-27 05:01:25 +08:00
|
|
|
HEAD_REF master
|
2020-06-11 08:52:14 +08:00
|
|
|
PATCHES ddl2cpp_path.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
|
|
|
|
-DENABLE_TESTS:BOOL=OFF
|
|
|
|
)
|
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
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
|
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)
|