aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxcrypt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libxcrypt')
-rw-r--r--vcpkg/ports/libxcrypt/portfile.cmake26
-rw-r--r--vcpkg/ports/libxcrypt/vcpkg.json14
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/libxcrypt/portfile.cmake b/vcpkg/ports/libxcrypt/portfile.cmake
new file mode 100644
index 0000000..8863fa2
--- /dev/null
+++ b/vcpkg/ports/libxcrypt/portfile.cmake
@@ -0,0 +1,26 @@
+set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
+
+vcpkg_find_acquire_program(PERL)
+set(ENV{PERL} "${PERL}")
+
+vcpkg_find_acquire_program(PKGCONFIG)
+set(ENV{PKG_CONFIG} "${PKGCONFIG}")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO besser82/libxcrypt
+ REF "v${VERSION}"
+ SHA512 00ea73f2546ddbc191e30be4db897fffb5c9da1be03781c3b3b00514c621ec0d10cee7bbfc2a53a0d79ded62e372d6b7ad93289e5f44475ddfc43816b1a31651
+)
+
+vcpkg_make_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTORECONF
+ OPTIONS "--disable-werror"
+)
+vcpkg_make_install()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSING" "${SOURCE_PATH}/COPYING.LIB")
diff --git a/vcpkg/ports/libxcrypt/vcpkg.json b/vcpkg/ports/libxcrypt/vcpkg.json
new file mode 100644
index 0000000..5f35a44
--- /dev/null
+++ b/vcpkg/ports/libxcrypt/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "libxcrypt",
+ "version": "4.5.2",
+ "description": "libxcrypt is a modern library for one-way hashing of passwords. On Linux-based systems, by default libxcrypt will be binary backward compatible with the libcrypt.so.1 shipped as part of the GNU C Library.",
+ "homepage": "https://github.com/besser82/libxcrypt",
+ "license": null,
+ "supports": "linux | osx",
+ "dependencies": [
+ {
+ "name": "vcpkg-make",
+ "host": true
+ }
+ ]
+}