From 73376c2bda393170fa76cc2acaa2f77c276a4ea5 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 30 Dec 2005 22:12:13 +0000 Subject: Allow to compile without smb(4) support. --- sysutils/mbmon/Makefile | 6 +++++- sysutils/mbmon/files/patch-configure | 10 ++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'sysutils/mbmon') 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 -- cgit