aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libaaplus/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/libaaplus/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libaaplus/portfile.cmake')
-rw-r--r--vcpkg/ports/libaaplus/portfile.cmake37
1 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/ports/libaaplus/portfile.cmake b/vcpkg/ports/libaaplus/portfile.cmake
new file mode 100644
index 0000000..0d88d1d
--- /dev/null
+++ b/vcpkg/ports/libaaplus/portfile.cmake
@@ -0,0 +1,37 @@
+set(VERSION 2.36)
+
+vcpkg_download_distfile(
+ ARCHIVE_FILE
+ URLS "http://www.naughter.com/download/aaplus_v${VERSION}.zip"
+ FILENAME "aaplus_v${VERSION}.zip"
+ SHA512 a7abf20feb49df00b95be987809a3dc8df3e9ff706dd5a873ecfdd695af125f858264e092b6b856e83685e9eb46fd46520cf09dfae892c32cbb71f925ba17b86
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE ${ARCHIVE_FILE}
+ SOURCE_BASE ${VERSION}
+ NO_REMOVE_ONE_LEVEL
+ PATCHES
+ fix-cmakelists.patch
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ tools BUILD_TOOLS
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME aaplus CONFIG_PATH share/aaplus)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/AA+.htm" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file