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

honor pkg-config for pd #13

Open
umlaeute opened this issue Jan 18, 2016 · 3 comments
Open

honor pkg-config for pd #13

umlaeute opened this issue Jan 18, 2016 · 3 comments

Comments

@umlaeute
Copy link
Contributor

Pd provides a pkg-config script, which could be utilized to guess the correct flags

$ pkg-config --cflags pd
-DPD -I/usr/include/pd
$ pkg-config --libs pd
$
@katjav
Copy link
Contributor

katjav commented Feb 11, 2016

On which platform(s) would this work by default?

Some time ago I was looking into pkg-config as a method to find parameters for dependencies that Pd libs may have. It would be very convenient if a makefile doesn't need to specify such flags and paths. It seems that pkg-config is even available for MinGW but not trivial to install (as stated in http://www.mingw.org/wiki/FAQ). A makefile can't rely on it, so what should it do when pkg-config is not installed? The flags should be specified in the makefile after all, and the convenience is gone.

@umlaeute
Copy link
Contributor Author

it should work on all platforms that have pkg-config installed (and Pd's .pc files installed in a place where pkg-config can find them).
something like the following (untested code):

 usepkgconfig := $(shell which pkg-config && pkg-config --exists pd && echo "yes")

(which platform this actually could be, should be left to the user)

@danomatika
Copy link
Contributor

The above check would work fine on platforms that have it installed. Simply fall back to current defaults on those that don't.

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

No branches or pull requests

3 participants