diff options
author | ru <ru@FreeBSD.org> | 2005-12-31 06:12:13 +0800 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-12-31 06:12:13 +0800 |
commit | 73376c2bda393170fa76cc2acaa2f77c276a4ea5 (patch) | |
tree | 64f8876d2ca363ed410b0045a21110cc821d5e85 | |
parent | 0675b84416c8308579340a152f5f344747251c7d (diff) | |
download | freebsd-ports-gnome-73376c2bda393170fa76cc2acaa2f77c276a4ea5.tar.gz freebsd-ports-gnome-73376c2bda393170fa76cc2acaa2f77c276a4ea5.tar.zst freebsd-ports-gnome-73376c2bda393170fa76cc2acaa2f77c276a4ea5.zip |
Allow to compile without smb(4) support.
-rw-r--r-- | sysutils/mbmon/Makefile | 6 | ||||
-rw-r--r-- | sysutils/mbmon/files/patch-configure | 10 | ||||
-rw-r--r-- | sysutils/xmbmon/Makefile | 6 | ||||
-rw-r--r-- | sysutils/xmbmon/files/patch-configure | 10 |
4 files changed, 18 insertions, 14 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 diff --git a/sysutils/xmbmon/Makefile b/sysutils/xmbmon/Makefile index dabcb64e2b49..31c2e451e7f4 100644 --- a/sysutils/xmbmon/Makefile +++ b/sysutils/xmbmon/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/xmbmon/files/patch-configure b/sysutils/xmbmon/files/patch-configure index b6c3e5612a89..7bd6af8d22b4 100644 --- a/sysutils/xmbmon/files/patch-configure +++ b/sysutils/xmbmon/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 |