aboutsummaryrefslogtreecommitdiffstats
path: root/misc/mbuffer/Makefile
blob: ab0f95b9475709a0545c9670132b57ae7863b75a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: 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=    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_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>