Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dumb] New port #30740

Merged
merged 6 commits into from
Apr 12, 2023
Merged

[dumb] New port #30740

merged 6 commits into from
Apr 12, 2023

Conversation

FtZPetruska
Copy link
Contributor

  • Changes comply with the maintainer guide
  • 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.
  • 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
  • The versioning scheme in vcpkg.json matches what upstream says.
  • The license declaration in vcpkg.json matches what upstream says. [1]
  • The installed as the "copyright" file matches what upstream says.
  • The source code of the component installed comes from an authoritative source. [2]
  • The generated "usage text" is accurate. See adding-usage for context.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is in the new port's versions file.
  • Only one version is added to each modified port's versions file.

[1] The license provided by upstream does not seem to fit any SPDX license name, so the field in vcpkg.json is left to null. The actual license file is still installed.
[2] While the initial DUMB project is no longer maintained, the original maintainer have encouraged using this fork (see the latest news on https://dumb.sourceforge.net/). According to repology.org, this fork is shipped on Arch Linux, Gentoo, Homebrew, MSYS2, and others.


DUMB can be used to parse the IT, XM, S3M, and MOD formats. The allegro5 port can be built with dumb to support these formats.

This port includes an unofficial CMake target since upstream does not export any. Additionally, since no symbols are exported, the port is marked as ONLY_STATIC_LIBRARY.

I was able to build successfully and link an example program on:

  • x64-windows
  • x64-windows-static
  • x86-windows
  • arm64-windows
  • x64-uwp
  • x64-linux
  • x64-osx
  • arm64-osx
  • x64-mingw-static
  • x64-mingw-dynamic

@Cheney-W Cheney-W added category:new-port The issue is requesting a new library to be added; consider making a PR! info:reviewed Pull Request changes follow basic guidelines labels Apr 10, 2023
ports/dumb/portfile.cmake Outdated Show resolved Hide resolved
ports/dumb/portfile.cmake Outdated Show resolved Hide resolved
ports/dumb/portfile.cmake Outdated Show resolved Hide resolved
@Cheney-W Cheney-W added requires:author-response and removed info:reviewed Pull Request changes follow basic guidelines labels Apr 10, 2023
- Remove unofficial config since a pkg-config file is provided.
- Update the match string for pkg-config fixes.
- Limit ONLY_STATIC_LIBRARY to Windows.
@FtZPetruska
Copy link
Contributor Author

Thank you for the feedback!

I went ahead and removed the unofficial config since the upstream project provides a pc file and limited ONLY_STATIC_LIBRARY to Windows since it is indeed because of dllexport.

ports/dumb/vcpkg.json Outdated Show resolved Hide resolved
This dependency is no longer needed since the unofficial config was
removed.
@Cheney-W Cheney-W added info:reviewed Pull Request changes follow basic guidelines and removed requires:author-response labels Apr 11, 2023
@BillyONeal
Copy link
Member

Awesome, thanks for the new port! (I look forward to filling out policheck exceptions :P)

@BillyONeal BillyONeal merged commit bf4958b into microsoft:master Apr 12, 2023
@FtZPetruska FtZPetruska deleted the dumb-port branch April 12, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR! info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants