Sat Sep 13 00:57:00 2014 UTC ()
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.


(gdt)
diff -r1.68 -r1.69 pkgsrc/geography/gdal-lib/Makefile
diff -r1.2 -r1.3 pkgsrc/geography/gdal-lib/options.mk

cvs diff -r1.68 -r1.69 pkgsrc/geography/gdal-lib/Makefile (expand / switch to unified diff)

--- pkgsrc/geography/gdal-lib/Makefile 2014/09/03 10:41:31 1.68
+++ pkgsrc/geography/gdal-lib/Makefile 2014/09/13 00:57:00 1.69
@@ -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
3VERSION= 1.9.2 3VERSION= 1.9.2
4DISTNAME= gdal-${VERSION} 4DISTNAME= gdal-${VERSION}
5PKGNAME= gdal-lib-${VERSION} 5PKGNAME= gdal-lib-${VERSION}
6PKGREVISION= 10 6PKGREVISION= 11
7CATEGORIES= geography 7CATEGORIES= geography
8MASTER_SITES= http://download.osgeo.org/gdal/ 8MASTER_SITES= http://download.osgeo.org/gdal/
9 9
10MAINTAINER= brook@nmsu.edu 10MAINTAINER= brook@nmsu.edu
11HOMEPAGE= http://www.gdal.org/ 11HOMEPAGE= http://www.gdal.org/
12COMMENT= Translator library for raster geospatial data formats 12COMMENT= Translator library for raster geospatial data formats
13LICENSE= mit 13LICENSE= 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
19USE_LANGUAGES= c c++ fortran77 19USE_LANGUAGES= c c++ fortran77

cvs diff -r1.2 -r1.3 pkgsrc/geography/gdal-lib/options.mk (expand / switch to unified diff)

--- pkgsrc/geography/gdal-lib/options.mk 2010/08/27 11:14:23 1.2
+++ pkgsrc/geography/gdal-lib/options.mk 2014/09/13 00:57:00 1.3
@@ -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
3PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib 3PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib
 4
 5# Note that these are not a mutually-exclusive group.
4PKG_SUPPORTED_OPTIONS= pgsql mysql sqlite 6PKG_SUPPORTED_OPTIONS= pgsql mysql sqlite
5PKG_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.
 12PKG_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"
11CONFIGURE_ARGS+= --with-pg 18CONFIGURE_ARGS+= --with-pg
12.else 19.else
13CONFIGURE_ARGS+= --without-pg 20CONFIGURE_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"
18CONFIGURE_ARGS+= --with-mysql 25CONFIGURE_ARGS+= --with-mysql