aboutsummaryrefslogtreecommitdiffstats
path: root/security/honggfuzz/Makefile
blob: 85ee2b272411fa7926f42923c6521c6842416177 (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
# New ports collection makefile for:    honggfuzz
# Date created:             2010-12-13
# Whom:                 Sofian Brabez <sbrabez@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   honggfuzz
PORTVERSION=    0.3
CATEGORIES= security
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
EXTRACT_SUFX=   .tgz

MAINTAINER= sbz@FreeBSD.org
COMMENT=    A general-purpose fuzzer with simple, command-line interface

LICENSE=    AL2
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_GMAKE=  yes

# inplace replacement to remove relative binary path in examples scripts
post-patch:
    @${REINPLACE_CMD} -i "" -E "s,\.\./,," ${WRKSRC}/examples/*.sh

do-build:
    @(cd ${WRKSRC}; ${GMAKE})

do-install:
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>