summaryrefslogtreecommitdiff
path: root/sysutils/gvfs/Makefile
diff options
context:
space:
mode:
authorwiz <wiz>2009-12-09 15:08:30 +0000
committerwiz <wiz>2009-12-09 15:08:30 +0000
commit3bbfcb917e84661726c2a42da66097eff09b39e4 (patch)
treed0a960e82523af14f414c606ff408cdf9386630e /sysutils/gvfs/Makefile
parentdf9146dd92993ec65f164788cc0faf0648aa8c2e (diff)
downloadpkgsrc-3bbfcb917e84661726c2a42da66097eff09b39e4.tar.gz
Make samba dependency optional, but default on (so no change to package).
Based on patch by markand@malikania.org on pkgsrc-users, but with a crucial missing line added.
Diffstat (limited to 'sysutils/gvfs/Makefile')
-rw-r--r--sysutils/gvfs/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/sysutils/gvfs/Makefile b/sysutils/gvfs/Makefile
index 2bd163fe70d..b7d129c6582 100644
--- a/sysutils/gvfs/Makefile
+++ b/sysutils/gvfs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2009/10/31 14:46:51 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2009/12/09 15:08:30 wiz Exp $
#
DISTNAME= gvfs-1.2.3
@@ -16,16 +16,14 @@ PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= intltool gmake pkg-config msgfmt
-CONFIGURE_ARGS+= --with-samba-includes=${LOCALBASE}/include
-CONFIGURE_ARGS+= --with-samba-libs=${LOCALBASE}/lib/samba
CONFIGURE_ARGS+= --enable-http
CONFIGURE_ARGS+= --disable-bash-completion
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS_VAR= PKG_OPTIONS.gvfs
-PKG_SUPPORTED_OPTIONS+= avahi hal fuse
-PKG_SUGGESTED_OPTIONS+= avahi hal
+PKG_SUPPORTED_OPTIONS+= avahi hal fuse samba
+PKG_SUGGESTED_OPTIONS+= avahi hal samba
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
# XXX fuse.bl3.mk will fail if we include it and fuse is not available
@@ -43,6 +41,15 @@ PLIST.avahi= yes
CONFIGURE_ARGS+= --disable-avahi
.endif
+.if !empty(PKG_OPTIONS:Msamba)
+CONFIGURE_ARGS+= --with-samba-includes=${LOCALBASE}/include
+CONFIGURE_ARGS+= --with-samba-libs=${LOCALBASE}/lib/samba
+.include "../../net/samba/buildlink3.mk"
+PLIST.samba= yes
+.else
+CONFIGURE_ARGS+= --disable-samba
+.endif
+
.if !empty(PKG_OPTIONS:Mhal)
.include "../../misc/libcdio/buildlink3.mk"
.include "../../sysutils/hal/buildlink3.mk"
@@ -66,7 +73,6 @@ BUILDLINK_API_DEPENDS.glib2+= glib2>=2.17.6
.include "../../devel/glib2/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../archivers/libarchive/buildlink3.mk"
-.include "../../net/samba/buildlink3.mk"
BUILDLINK_API_DEPENDS.libsoup24+= libsoup24>=2.25.1
.include "../../net/libsoup24/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"