diff options
-rw-r--r-- | build/vcpkg/apr-2/portfile.cmake | 40 | ||||
-rw-r--r-- | build/vcpkg/apr-2/vcpkg.json | 24 |
2 files changed, 64 insertions, 0 deletions
diff --git a/build/vcpkg/apr-2/portfile.cmake b/build/vcpkg/apr-2/portfile.cmake new file mode 100644 index 000000000..5fd6323d7 --- /dev/null +++ b/build/vcpkg/apr-2/portfile.cmake @@ -0,0 +1,40 @@ +set(VERSION 2.0.0) +# +# Modify REF to latest commit id from https://github.com/apache/apr +# Update SHA512 with actual SHA512 +# +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO apache/apr + REF 6445e8804008922f8018aa238aa4d6bba608c49a + SHA512 0 + HEAD_REF trunk +) + +if (VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + private-headers INSTALL_PRIVATE_H + ) + + vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DINSTALL_PDB=OFF + -DAPU_HAVE_CRYPTO=ON + -DAPU_HAVE_ICONV=ON + -DAPU_HAVE_SQLITE3=ON + -DAPU_USE_EXPAT=ON + -DAPR_INSTALL_PRIVATE_H=${INSTALL_PRIVATE_H} + ${FEATURE_OPTIONS} + ) + + vcpkg_cmake_install() + vcpkg_copy_pdbs() +else() + # In development +endif() + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + diff --git a/build/vcpkg/apr-2/vcpkg.json b/build/vcpkg/apr-2/vcpkg.json new file mode 100644 index 000000000..65e303ed0 --- /dev/null +++ b/build/vcpkg/apr-2/vcpkg.json @@ -0,0 +1,24 @@ +{ + "name": "apr-2", + "version": "2.0.0", + "port-version": 5, + "description": "The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.", + "homepage": "https://apr.apache.org/", + "supports": "!uwp", + "dependencies": [ + "libiconv", + "expat", + "sqlite3", + "openssl", + { + "name": "vcpkg-cmake", + "host": true, + "platform": "windows" + } + ], + "features": { + "private-headers": { + "description": "Install non-standard files required for building Apache httpd" + } + } +} |