Skip to content

Commit

Permalink
[awlib] Add new port (microsoft#37834)
Browse files Browse the repository at this point in the history
- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] The name of the port matches an existing name for this component
on https://repology.org/ if possible, and/or is strongly associated with
that component on search engines.
- [x] Optional dependencies are resolved in exactly one way. For
example, if the component is built with CMake, all `find_package` calls
are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or
disabled with
[CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html).
- [x] The versioning scheme in `vcpkg.json` matches what upstream says.
- [x] The license declaration in `vcpkg.json` matches what upstream
says.
- [x] The installed as the "copyright" file matches what upstream says.
- [x] The source code of the component installed comes from an
authoritative source.
- [x] The generated "usage text" is accurate. See
[adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md)
for context.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is in the new port's versions file.
- [x] Only one version is added to each modified port's versions file.

---------

Co-authored-by: Lily Wang <[email protected]>
  • Loading branch information
Hedede and LilyWangLL authored Apr 10, 2024
1 parent 3a88ea8 commit a194ab0
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ports/awlib/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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()
31 changes: 31 additions & 0 deletions ports/awlib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
9 changes: 9 additions & 0 deletions versions/a-/awlib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "539db7a8b7652c86c735594e04dc1a1e09647035",
"version-date": "2024-04-06",
"port-version": 0
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a194ab0

Please sign in to comment.