You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2021/12/03 10:57:03 UTC

svn commit: r1895543 - in /apr/apr/trunk/build/vcpkg: ./ apr-2/ apr-2/portfile.cmake apr-2/vcpkg.json

Author: mturk
Date: Fri Dec  3 10:57:03 2021
New Revision: 1895543

URL: http://svn.apache.org/viewvc?rev=1895543&view=rev
Log:
Add minimal vcpkg ports/apr-2

Added:
    apr/apr/trunk/build/vcpkg/
    apr/apr/trunk/build/vcpkg/apr-2/
    apr/apr/trunk/build/vcpkg/apr-2/portfile.cmake
    apr/apr/trunk/build/vcpkg/apr-2/vcpkg.json

Added: apr/apr/trunk/build/vcpkg/apr-2/portfile.cmake
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/vcpkg/apr-2/portfile.cmake?rev=1895543&view=auto
==============================================================================
--- apr/apr/trunk/build/vcpkg/apr-2/portfile.cmake (added)
+++ apr/apr/trunk/build/vcpkg/apr-2/portfile.cmake Fri Dec  3 10:57:03 2021
@@ -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)
+

Added: apr/apr/trunk/build/vcpkg/apr-2/vcpkg.json
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/vcpkg/apr-2/vcpkg.json?rev=1895543&view=auto
==============================================================================
--- apr/apr/trunk/build/vcpkg/apr-2/vcpkg.json (added)
+++ apr/apr/trunk/build/vcpkg/apr-2/vcpkg.json Fri Dec  3 10:57:03 2021
@@ -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"
+    }
+  }
+}