aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/mbmon
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-12-31 06:12:13 +0800
committerru <ru@FreeBSD.org>2005-12-31 06:12:13 +0800
commit73376c2bda393170fa76cc2acaa2f77c276a4ea5 (patch)
tree64f8876d2ca363ed410b0045a21110cc821d5e85 /sysutils/mbmon
parent0675b84416c8308579340a152f5f344747251c7d (diff)
downloadfreebsd-ports-gnome-73376c2bda393170fa76cc2acaa2f77c276a4ea5.tar.gz
freebsd-ports-gnome-73376c2bda393170fa76cc2acaa2f77c276a4ea5.tar.zst
freebsd-ports-gnome-73376c2bda393170fa76cc2acaa2f77c276a4ea5.zip
Allow to compile without smb(4) support.
Diffstat (limited to 'sysutils/mbmon')
-rw-r--r--sysutils/mbmon/Makefile6
-rw-r--r--sysutils/mbmon/files/patch-configure10
2 files changed, 9 insertions, 7 deletions
diff --git a/sysutils/mbmon/Makefile b/sysutils/mbmon/Makefile
index dabcb64e2b49..31c2e451e7f4 100644
--- a/sysutils/mbmon/Makefile
+++ b/sysutils/mbmon/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xmbmon
PORTVERSION= 205
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/
.if defined(WITHOUT_X11)
@@ -42,10 +42,14 @@ pre-everything::
@${ECHO_CMD} "Definable build options"
@${ECHO_CMD} "-----------------------"
@${ECHO_CMD} "WITHOUT_X11 - Self explanatory"
+ @${ECHO_CMD} "WITHOUT_SMB - disable smb(4) support"
@${ECHO_CMD} ""
post-patch:
@${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${DOCSDIR}+' ${WRKSRC}/mbmon.1
+.if !defined(WITHOUT_SMB)
+ @${REINPLACE_CMD} -e 's/^DEFS=/&-DSMBUS_IOCTL /' ${WRKSRC}/Makefile.in
+.endif
post-install:
.if !defined(NOPORTDOCS)
diff --git a/sysutils/mbmon/files/patch-configure b/sysutils/mbmon/files/patch-configure
index b6c3e5612a89..7bd6af8d22b4 100644
--- a/sysutils/mbmon/files/patch-configure
+++ b/sysutils/mbmon/files/patch-configure
@@ -1,19 +1,17 @@
$FreeBSD$
---- configure.orig Fri Aug 13 10:22:18 2004
-+++ configure Fri Dec 16 17:50:05 2005
-@@ -3486,8 +3486,9 @@
+--- configure Fri Aug 13 10:22:18 2004
++++ configure Fri Dec 30 23:37:25 2005
+@@ -3486,7 +3486,7 @@
case "${host}" in
- i?86-*-freebsd*)
+ i?86-*-freebsd* | amd64-*-freebsd*)
CC=cc
-+ HOSTDEF="-DSMBUS_IOCTL"
;;
i?86-*-linux-*)
- CC=gcc
-@@ -3946,7 +3947,7 @@
+@@ -3946,7 +3946,7 @@
done