summaryrefslogtreecommitdiff
path: root/geography/gdal-lib/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'geography/gdal-lib/options.mk')
-rw-r--r--geography/gdal-lib/options.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/geography/gdal-lib/options.mk b/geography/gdal-lib/options.mk
new file mode 100644
index 00000000000..4ab2e30bf47
--- /dev/null
+++ b/geography/gdal-lib/options.mk
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2010/01/18 09:36:09 adam Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gdal-lib
+PKG_SUPPORTED_OPTIONS= pgsql mysql
+PKG_SUGGESTED_OPTIONS= pgsql
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+. include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-pg
+.else
+CONFIGURE_ARGS+= --without-pg
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-mysql
+.else
+CONFIGURE_ARGS+= --without-mysql
+.endif