summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-05-30 08:54:28 +0000
committerrillig <rillig@pkgsrc.org>2007-05-30 08:54:28 +0000
commit27cc9a95c82a77251467fcfd054aad5ecbbb8ee1 (patch)
tree9cb9969faf287080cd815dc0b06866755f0b1994 /geography
parent46739e3a4ffd41c6d56048af7e33f79472b8f715 (diff)
downloadpkgsrc-27cc9a95c82a77251467fcfd054aad5ecbbb8ee1.tar.gz
Removed some code duplication from the buildlink3 files by using the new
pkg-build-options.mk procedure.
Diffstat (limited to 'geography')
-rw-r--r--geography/gdal-lib/buildlink3.mk11
1 files changed, 3 insertions, 8 deletions
diff --git a/geography/gdal-lib/buildlink3.mk b/geography/gdal-lib/buildlink3.mk
index 12bd2cfb450..a819afd589e 100644
--- a/geography/gdal-lib/buildlink3.mk
+++ b/geography/gdal-lib/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.6 2007/02/23 22:22:38 gdt Exp $
+# $NetBSD: buildlink3.mk,v 1.7 2007/05/30 08:54:29 rillig Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
GDAL_LIB_BUILDLINK3_MK:= ${GDAL_LIB_BUILDLINK3_MK}+
@@ -16,13 +16,8 @@ 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
+pkgbase := gdal-lib
+.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.gdal-lib:Mpgsql)
.include "../../mk/pgsql.buildlink3.mk"