Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changed 3 files to make the project build on FreeBSD (and possibly the other BSDs, requires gmake).
The meson.build in the project root has the most questionable change that should be improved, since the new second custom_target call outputs the file "junk.txt" that serves no purpose other than the fact that meson does not allow an empty output for the custom_target method. For whatever reason FreeBSD does not like some of the shell commands that are in the meson.build files custom_target methods, requiring some of them to be tweaked a little to build successfully.
The issue is that the wine call with makerom_exe did not work when sandwiched in there so there had to be some separate execution step with the added custom_target running after pokeplatinum_nds for it work.
The repo with this patch builds fine on my Debian and FreeBSD machines.
I would love any suggestions as to how to improve this very bad solution, I'll test them!