summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmmv <jmmv>2007-10-13 13:13:16 +0000
committerjmmv <jmmv>2007-10-13 13:13:16 +0000
commitafb20b1e0aa62d6bd720740d893d7a29df4719f0 (patch)
treeb4a9cf194a45dc827a8019f9c44ed81079b69fb1
parent9114d23bfaa88d99024d0f9b916b1fd0829bbbd8 (diff)
downloadpkgsrc-afb20b1e0aa62d6bd720740d893d7a29df4719f0.tar.gz
Make IPv6 support optional. Per PR pkg/37112 by Yakovetsky Vladimir.
-rw-r--r--sysutils/gnome-vfs/Makefile.common12
1 files changed, 11 insertions, 1 deletions
diff --git a/sysutils/gnome-vfs/Makefile.common b/sysutils/gnome-vfs/Makefile.common
index 84518b1b7bb..6905c5ad3e6 100644
--- a/sysutils/gnome-vfs/Makefile.common
+++ b/sysutils/gnome-vfs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2007/09/21 13:04:18 wiz Exp $
+# $NetBSD: Makefile.common,v 1.4 2007/10/13 13:13:16 jmmv Exp $
#
GNOME_VFS_VERSION= 2.18.1
@@ -44,7 +44,17 @@ EGDIR= ${PREFIX}/share/examples/gnome-vfs-2.0
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
+PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-vfs
+PKG_SUPPORTED_OPTIONS+= inet6
+
.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
# XXX Work-around for a problem in the configure script which checks for
# statvfs(2) having SVR4 in mind. Solving this in the script itself could