tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg-config difference when run in pkgsrc vs normal run?



Andrew Randrianasulu <randrianasulu%gmail.com@localhost> writes:

> I have bunch of those line is Makefile:
>
> LIBS += `pkg-config --libs OpenEXR 2>/dev/null`
>
> this seems to work on Linux and when I directly run configure/gmake for
> package I am trying to create in pkgsrc-wip [cingg-netbsd]

Generally, one adds the buildlink3 and USE_TOOLS for pkg-config.  You
should be able to find examples.

> Not sure why this happen, I tried to add pkg-config to USE_TOOLS variable
> in Makefile (no change), and checked that configure.ac sees pkg-config. May
> be PKG_CONFIG_PATH is not set when building inside pkgsrc system ?

It is, but it is only going to find things in the buildlink tree.  This
is a feature to prevent package builds from finding anything which is
not declared as a dependency.

Look at work/.buildlink*.  Read the pgksrc guide (pkgsrc/doc/pkgsrc.txt)
about the buildlink3 scheme.

pkgsrc in general works very well with autoconf-using programs.


Home | Main Index | Thread Index | Old Index