freebsd-ports/misc/mbuffer/Makefile
Rong-En Fan ec3b672513 - 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@
2012-05-27 06:18:47 +00:00

48 lines
999 B
Makefile

# New ports collection makefile for: mbuffer
# Date created: Dec 14 2006
# Whom: Rong-En Fan <rafan@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mbuffer
PORTVERSION= 2011.07.24
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= rafan@FreeBSD.org
COMMENT= A tool for buffering data streams
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_ARGS= SHELL=${SH}
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:
@${REINPLACE_CMD} -e 's,-lpthread,${PTHREAD_LIBS},' ${WRKSRC}/configure
.include <bsd.port.post.mk>