aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/readline-win32/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/readline-win32/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/readline-win32/portfile.cmake')
-rw-r--r--vcpkg/ports/readline-win32/portfile.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/readline-win32/portfile.cmake b/vcpkg/ports/readline-win32/portfile.cmake
new file mode 100644
index 0000000..b6ce0b7
--- /dev/null
+++ b/vcpkg/ports/readline-win32/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xiaozhuai/readline-win32
+ REF 0fa4001557c27157a51a9ca7f32a8c50bc97927a
+ SHA512 5e6bb2fb077445d4e1fad49f2260538b0cf7e49857cda81640b8afd034324ad9b927c9ea00c9288d08c887478523db891bfc799e49ae009d32479141766857ec
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-readline-win32)
+vcpkg_fixup_pkgconfig()
+
+if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/readline/rlstdc.h"
+ "defined(USE_READLINE_STATIC)" "1"
+ )
+endif()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_copy_pdbs()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")