aboutsummaryrefslogtreecommitdiffstats
path: root/security/bcrypt/Makefile
blob: 71069af225c49df0fc9a6920fe058e4957156f78 (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
# New ports collection makefile for:    bcrypt
# Date created:             11 Aug 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   bcrypt
PORTVERSION=    1.1
CATEGORIES= security
MASTER_SITES=   http://bcrypt.sourceforge.net/ \
        CRITICAL

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    A cross-plattform blowfish encryption utility

ALL_TARGET= ${PORTNAME}

LDFLAGS+=   -lz
MAKE_ENV+=  LDFLAGS="${LDFLAGS}"

PORTDOCS=   README
MAN1=       bcrypt.1
PLIST_FILES=    bin/bcrypt

post-patch:
    @${REINPLACE_CMD} -E 's/^(CC|CFLAGS|LDFLAGS|PREFIX)\ /\1?/' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>