summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--geography/gdal-lib/buildlink3.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/geography/gdal-lib/buildlink3.mk b/geography/gdal-lib/buildlink3.mk
index 8ad72ffa9a3..fb0d4a508d3 100644
--- a/geography/gdal-lib/buildlink3.mk
+++ b/geography/gdal-lib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2006/07/08 23:10:49 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2006/08/10 00:38:25 wiz Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GDAL_LIB_BUILDLINK3_MK:= ${GDAL_LIB_BUILDLINK3_MK}+
@@ -16,4 +16,20 @@ BUILDLINK_API_DEPENDS.gdal-lib+= gdal-lib>=1.3.1
BUILDLINK_PKGSRCDIR.gdal-lib?= ../../geography/gdal-lib
.endif # GDAL_LIB_BUILDLINK3_MK
+.if !defined(PKG_BUILD_OPTIONS.gdal-lib)
+PKG_BUILD_OPTIONS.gdal-lib!= \
+ cd ${BUILDLINK_PKGSRCDIR.gdal-lib} && \
+ ${MAKE} show-var ${MAKEFLAGS} VARNAME=PKG_OPTIONS
+MAKEFLAGS+= PKG_BUILD_OPTIONS.gdal-lib=${PKG_BUILD_OPTIONS.gdal-lib:Q}
+.endif
+MAKEVARS+= PKG_BUILD_OPTIONS.gdal-lib
+
+.if !empty(PKG_BUILD_OPTIONS.gdal-lib:Mpgsql)
+.include "../../mk/pgsql.buildlink3.mk"
+.endif
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../geography/geos/buildlink3.mk"
+.include "../../textproc/xerces-c/buildlink3.mk"
+
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}