Make pgsql option defult to off. This option fixes a pgsql version, and we're not really set up to deal with that. It makes postgis only build for that one version. So far, I'm not aware of a reason to have pgsql support in gdal. So, just turn it off, and we can figure out a way to deal if there is actually a need. Discussed with Filip during postgis2 packaging, and I think suggested to Brook and Adam.diff -r1.68 -r1.69 pkgsrc/geography/gdal-lib/Makefile
(gdt)
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.68 2014/09/03 10:41:31 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.69 2014/09/13 00:57:00 gdt Exp $ | |
2 | 2 | |||
3 | VERSION= 1.9.2 | 3 | VERSION= 1.9.2 | |
4 | DISTNAME= gdal-${VERSION} | 4 | DISTNAME= gdal-${VERSION} | |
5 | PKGNAME= gdal-lib-${VERSION} | 5 | PKGNAME= gdal-lib-${VERSION} | |
6 | PKGREVISION= 10 | 6 | PKGREVISION= 11 | |
7 | CATEGORIES= geography | 7 | CATEGORIES= geography | |
8 | MASTER_SITES= http://download.osgeo.org/gdal/ | 8 | MASTER_SITES= http://download.osgeo.org/gdal/ | |
9 | 9 | |||
10 | MAINTAINER= brook@nmsu.edu | 10 | MAINTAINER= brook@nmsu.edu | |
11 | HOMEPAGE= http://www.gdal.org/ | 11 | HOMEPAGE= http://www.gdal.org/ | |
12 | COMMENT= Translator library for raster geospatial data formats | 12 | COMMENT= Translator library for raster geospatial data formats | |
13 | LICENSE= mit | 13 | LICENSE= mit | |
14 | 14 | |||
15 | # This package links against the geos C++ library. geos regards this | 15 | # This package links against the geos C++ library. geos regards this | |
16 | # as a bug and changes the C++ shlib version every release. Therefore | 16 | # as a bug and changes the C++ shlib version every release. Therefore | |
17 | # this package needs revbumping on every geos update. | 17 | # this package needs revbumping on every geos update. | |
18 | 18 | |||
19 | USE_LANGUAGES= c c++ fortran77 | 19 | USE_LANGUAGES= c c++ fortran77 |
@@ -1,18 +1,25 @@ | @@ -1,18 +1,25 @@ | |||
1 | # $NetBSD: options.mk,v 1.2 2010/08/27 11:14:23 adam Exp $ | 1 | # $NetBSD: options.mk,v 1.3 2014/09/13 00:57:00 gdt Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib | |
4 | ||||
5 | # Note that these are not a mutually-exclusive group. | |||
4 | PKG_SUPPORTED_OPTIONS= pgsql mysql sqlite | 6 | PKG_SUPPORTED_OPTIONS= pgsql mysql sqlite | |
5 | PKG_SUGGESTED_OPTIONS= pgsql | 7 | # By default, omit database support, because there isn't an | |
8 | # articulated use case and dependency management becomes very painful. | |||
9 | # For example, depending on pgsql fixes a version, but doesn't put it | |||
10 | # in the name, and then building postgis fails for all but that one | |||
11 | # chosen version. | |||
12 | PKG_SUGGESTED_OPTIONS= | |||
6 | 13 | |||
7 | .include "../../mk/bsd.options.mk" | 14 | .include "../../mk/bsd.options.mk" | |
8 | 15 | |||
9 | .if !empty(PKG_OPTIONS:Mpgsql) | 16 | .if !empty(PKG_OPTIONS:Mpgsql) | |
10 | . include "../../mk/pgsql.buildlink3.mk" | 17 | . include "../../mk/pgsql.buildlink3.mk" | |
11 | CONFIGURE_ARGS+= --with-pg | 18 | CONFIGURE_ARGS+= --with-pg | |
12 | .else | 19 | .else | |
13 | CONFIGURE_ARGS+= --without-pg | 20 | CONFIGURE_ARGS+= --without-pg | |
14 | .endif | 21 | .endif | |
15 | 22 | |||
16 | .if !empty(PKG_OPTIONS:Mmysql) | 23 | .if !empty(PKG_OPTIONS:Mmysql) | |
17 | . include "../../mk/mysql.buildlink3.mk" | 24 | . include "../../mk/mysql.buildlink3.mk" | |
18 | CONFIGURE_ARGS+= --with-mysql | 25 | CONFIGURE_ARGS+= --with-mysql |