Skip to content

build: don't hard-code pkg-config #17

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orbea
Copy link

@orbea orbea commented Oct 20, 2024

This is useful for distros that set PKG_CONFIG in the environment. The check was copied from mupen64plus-core.

# test for essential build dependencies
ifeq ($(origin PKG_CONFIG), undefined)
PKG_CONFIG = $(CROSS_COMPILE)pkg-config
ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use this. "which" is less likely to be installed than "pkg-config".

"command -v" is a portable (POSIX mandated) equivalent to "which".

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see about improving the check for mupen64plus-core in the near future and then change it here too depending on their response.

@orbea
Copy link
Author

orbea commented Oct 21, 2024

On second look I didn't do quite enough so I changed the check to better match the current style in mupen64plus-core.

orbea added a commit to orbea/RMG that referenced this pull request Oct 21, 2024
Rosalie241 pushed a commit to Rosalie241/RMG that referenced this pull request Oct 21, 2024
orbea added a commit to orbea/gentoo that referenced this pull request Oct 21, 2024
orbea added a commit to orbea/gentoo that referenced this pull request Nov 3, 2024
orbea added a commit to orbea/gentoo that referenced this pull request Nov 9, 2024
orbea added a commit to orbea/gentoo that referenced this pull request Nov 9, 2024
orbea added a commit to orbea/gentoo that referenced this pull request Nov 15, 2024
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Nov 26, 2024
Closes: https://bugs.gentoo.org/941889
Upstream-PR: raphnet/mupen64plus-input-raphnetraw#17
Upstream-PR: Rosalie241/RMG#296
Upstream-Commit: Rosalie241/RMG@f6b73b8
Signed-off-by: orbea <orbea@riseup.net>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants