aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2012-05-27 14:18:47 +0800
committerrafan <rafan@FreeBSD.org>2012-05-27 14:18:47 +0800
commit5504b99510e1e996c1de0aebbd06f2bc6348c998 (patch)
treee06a21394b5c807fe965a95438f5866169ece522 /misc
parent0d4d4e0095c2f174c227f736e50ec1dcf100007f (diff)
downloadfreebsd-ports-gnome-5504b99510e1e996c1de0aebbd06f2bc6348c998.tar.gz
freebsd-ports-gnome-5504b99510e1e996c1de0aebbd06f2bc6348c998.tar.zst
freebsd-ports-gnome-5504b99510e1e996c1de0aebbd06f2bc6348c998.zip
- mbuffer prefers mash, so let it be (also fixed hidden dependency to mhash
if it was installed at the time this port is built) PR: ports/168252 Submitted by: mm@
Diffstat (limited to 'misc')
-rw-r--r--misc/mbuffer/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/misc/mbuffer/Makefile b/misc/mbuffer/Makefile
index fb2873c66ae4..3d7369e797c2 100644
--- a/misc/mbuffer/Makefile
+++ b/misc/mbuffer/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mbuffer
PORTVERSION= 2011.07.24
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
@@ -26,6 +27,19 @@ PLIST_FILES= bin/mbuffer
MAN1= ${PORTNAME}.1
+OPTIONS= MHASH "Use mhash for hash generation" on
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_MHASH)
+LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.else
+CONFIGURE_ARGS+=ac_cv_search_mhash_init=no
+USE_OPENSSL= yes
+.endif
+
.include <bsd.port.pre.mk>
post-patch: