[postgis-devel] Using pkg-config for PROJ

Raúl Marín Rodríguez rmrodriguez at carto.com
Fri Feb 8 14:20:12 PST 2019


> but I'm not convinced my
from-source builds will be detectable.

Mine are. Also Docker is building several dependencies from source and it
doesn't seem to have issues. OTOH, Postgis' defaults are pretty
much?tailored just for Linux.

There is an easy way to check:
pkg-config --libs proj (or whatever other project)
pkg-config --cflags proj

With pkg-config there is a way to pass the flags (env variables PROJ_CFLAGS
and PROJ_LDFLAGS) and in that case the default will be ignored. This is
both why I don't get why Postgis has its own way to do it and why, if we
want to keep having manual as default, it's not worth it to force
pkg-config being mandatory ( and simply check pkg-config if it's installed).


On Friday, February 8, 2019, Paul Ramsey <pramsey at cleverelephant.ca> wrote:

> Completely requiring pkg-config is not something I'm super
> enthusiastic about. I'm sure many of my packaged dependencies have
> pkg-config entries under MacPorts, but I'm not convinced my
> from-source builds will be detectable.
>
> P
>
> On Fri, Feb 8, 2019 at 12:48 PM Raúl Marín Rodríguez
> <rmrodriguez at carto.com> wrote:
> >
> > Hi,
> >
> > I started doing it in https://github.com/postgis/postgis/pull/372.
> > Then I noticed that `json-c` had the same option (and we weren't
> > including its files correctly) and, after that, that the same happens
> > with `libpcre` and `cunit`.
> >
> > Wouldn't it make more sense to drop those 4 options (`--with-projdir`,
> > `--with-jsondir`, etc) and make pkg-config mandatory instead? My only
> > concern is Windows, which I don't really know if it can use it.
> >
> > --
> > Raúl Marín Rodríguez
> > carto.com
> > _______________________________________________
> > postgis-devel mailing list
> > postgis-devel at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/postgis-devel
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel



-- 

*Raúl Marín Rodríguez *carto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20190208/fcd0f04d/attachment.html>


More information about the postgis-devel mailing list