[117349] trunk/dports/gis/mapnik/Portfile
Ryan Schmidt
ryandesign at macports.org
Sat Mar 1 00:53:20 PST 2014
On Feb 23, 2014, at 08:46, stromnov at macports.org wrote:
> Revision
> 117349
> Author
> stromnov at macports.org
> Date
> 2014-02-23 06:46:57 -0800 (Sun, 23 Feb 2014)
> Log Message
>
> mapnik: postgis plugin depends on postgresql93
> --- trunk/dports/gis/mapnik/Portfile 2014-02-23 14:36:18 UTC (rev 117348)
> +++ trunk/dports/gis/mapnik/Portfile 2014-02-23 14:46:57 UTC (rev 117349)
>
> @@ -97,9 +97,9 @@
> }
>
> variant postgis description {Build PostGIS plugin} {
> - depends_lib-append path:lib/libpq.dylib:postgresql92
> + depends_lib-append path:lib/libpq.dylib:postgresql93
> if {![file exists ${prefix}/lib/libpq.dylib]} {
> - configure.args-append PG_CONFIG=${prefix}/lib/postgresql92/bin/pg_config
> + configure.args-append PG_CONFIG=${prefix}/lib/postgresql93/bin/pg_config
> }
> lappend input_plugins postgis
> }
Why doesn’t the variant just read:
variant postgis description {Build PostGIS plugin} {
depends_lib-append port:postgresql93
configure.args-append PG_CONFIG=${prefix}/lib/postgresql93/bin/pg_config
lappend input_plugins postgis
}
postgresql93 doesn’t supply the file /opt/local/lib/libpq.dylib (it provides /opt/local/lib/postgresql93/libpq.dylib), and if some other port or manual installation does provide /opt/local/lib/libpq.dylib or even /usr/local/lib/libpq.dylib we wouldn’t want it to get used.
More information about the macports-dev
mailing list