diff --git a/ports/awlib/portfile.cmake b/ports/awlib/portfile.cmake new file mode 100644 index 00000000000000..1a4a38d495e2a6 --- /dev/null +++ b/ports/awlib/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO absurdworlds/awlib + REF ${VERSION} + SHA512 bfb4668abc3db176744bb674a20bf770c6406db522a14191069b8d833414285ca784f042c3ad50404f7f8bc76afe69627dfcf540080e12316abbbfe420955526 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + hudf AW_ENABLE_HUDF + graphics AW_ENABLE_GRAPHICS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME ${PORT} CONFIG_PATH lib/cmake/${PORT}) + +vcpkg_fixup_pkgconfig() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_copy_pdbs() diff --git a/ports/awlib/vcpkg.json b/ports/awlib/vcpkg.json new file mode 100644 index 00000000000000..dea3a1e3ac4eff --- /dev/null +++ b/ports/awlib/vcpkg.json @@ -0,0 +1,31 @@ +{ + "name": "awlib", + "version-date": "2024-04-06", + "description": "Cross-platform utility library", + "homepage": "https://github.com/absurdworlds/awlib", + "license": "LGPL-3.0-or-later", + "supports": "!uwp & !android", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "graphics": { + "description": "Build graphics library", + "supports": "!uwp", + "dependencies": [ + "glfw3", + "libpng" + ] + }, + "hudf": { + "description": "Build HuDF support" + } + } +} diff --git a/versions/a-/awlib.json b/versions/a-/awlib.json new file mode 100644 index 00000000000000..92d67932cba393 --- /dev/null +++ b/versions/a-/awlib.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "539db7a8b7652c86c735594e04dc1a1e09647035", + "version-date": "2024-04-06", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 63fd4d69193c28..f4a11e74b32358 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -368,6 +368,10 @@ "baseline": "1.11.3", "port-version": 0 }, + "awlib": { + "baseline": "2024-04-06", + "port-version": 0 + }, "aws-c-auth": { "baseline": "0.7.16", "port-version": 0