aboutsummaryrefslogtreecommitdiffstats
path: root/security/libsodium/Makefile
blob: 7449680d73999e3e05691bfe0cc5df4b95b58212 (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
# $FreeBSD$

PORTNAME=   libsodium
PORTVERSION=    0.4.5
CATEGORIES= security
MASTER_SITES=   http://download.dnscrypt.org/libsodium/releases/

MAINTAINER= csosstudy@gmail.com
COMMENT=    Library to build higher-level cryptographic tools

LICENSE=    ISCL

GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USES=   pkgconfig

OPTIONS_DEFINE= DOCS

PORTDOCS=   AUTHORS README.markdown THANKS

post-patch:
    @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
        ${WRKSRC}/Makefile.in

post-build:
    cd ${WRKSRC} && ${MAKE} check

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>