diff options
Diffstat (limited to 'vcpkg/ports/oatpp-postgresql')
| -rw-r--r-- | vcpkg/ports/oatpp-postgresql/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/oatpp-postgresql/vcpkg.json | 20 |
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-postgresql/portfile.cmake b/vcpkg/ports/oatpp-postgresql/portfile.cmake new file mode 100644 index 0000000..c798d5f --- /dev/null +++ b/vcpkg/ports/oatpp-postgresql/portfile.cmake @@ -0,0 +1,24 @@ +set(OATPP_VERSION "1.3.0") + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO oatpp/oatpp-postgresql + REF ${OATPP_VERSION} + SHA512 6926194ae7d77db2a071fcb805ce048954908cf18d59f3095e1bf779748d9e5b9ceb657d97b1fc8a6ebfcf71936b211e2b10e68a62983e847c68ab58e1f3f2ba + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DOATPP_BUILD_TESTS:BOOL=OFF" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-postgresql CONFIG_PATH lib/cmake/oatpp-postgresql-${OATPP_VERSION}) +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/oatpp-postgresql/vcpkg.json b/vcpkg/ports/oatpp-postgresql/vcpkg.json new file mode 100644 index 0000000..01ce5d7 --- /dev/null +++ b/vcpkg/ports/oatpp-postgresql/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "oatpp-postgresql", + "version": "1.3.0", + "port-version": 1, + "description": "Oat++ PostgreSQL adapter for Oat++ ORM (alpha - not all datatypes are supported).", + "homepage": "https://github.com/oatpp/oatpp-postgresql", + "license": "Apache-2.0", + "dependencies": [ + "libpq", + "oatpp", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |