1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/misc/mbuffer/Makefile
Martin Wilke 0a47453c43 - Convert gmake, bzip2 to USES
Approved by:	portmgr
2014-05-26 12:16:06 +00:00

46 lines
951 B
Makefile

# Created by: Rong-En Fan <rafan@FreeBSD.org>
# $FreeBSD$
PORTNAME= mbuffer
PORTVERSION= 2013.02.20
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
EXTRACT_SUFX= .tgz
MAINTAINER= mm@FreeBSD.org
COMMENT= Tool for buffering data streams
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake
GNU_CONFIGURE= yes
MAKE_ARGS= SHELL=${SH}
PLIST_FILES= bin/mbuffer man/man1/mbuffer.1.gz
OPTIONS_DEFINE= MHASH
MHASH_DESC= Use mhash for hash generation
OPTIONS_DEFAULT= MHASH
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMHASH}
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>