aboutsummaryrefslogtreecommitdiffstats
path: root/security/nettle/Makefile
blob: 3d765d8023366225b3975263b46ef4145af01f7a (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
48
# ex:ts=8
# ex:ts=8
# New ports collection makefile for:    nettle
# Date created:         Dec 6, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   nettle
PORTVERSION=    2.2
CATEGORIES= security
MASTER_SITES=   http://www.lysator.liu.se/~nisse/archive/ \
        ftp://ftp.lysator.liu.se/pub/security/lsh/

MAINTAINER= johans@FreeBSD.org
COMMENT=    A low-level cryptographic library

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/COPYING.LIB

LIB_DEPENDS=    gmp.10:${PORTSDIR}/math/gmp

USE_GMAKE=  yes
USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
USE_LDCONFIG=   yes

DOCS=       NEWS README TODO nettle.html nettle.pdf
EXAMPLES=   examples/*.c examples/*.h

INFO=       nettle

post-install:
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>