aboutsummaryrefslogtreecommitdiffstats
path: root/security/fastd-devel/Makefile
blob: 7903b1af404fd467aaacc5673b3470efd4974817 (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
# $FreeBSD$

PORTNAME=       fastd
PORTVERSION=        18.a.20151111
PORTREVISION=       1
CATEGORIES=     security net
MASTER_SITES=       http://git.universe-factory.net/fastd/snapshot/
PKGNAMESUFFIX=      -devel
DISTNAME=       999b87b80302dbc14e23ef3dff187b91dae7fab5

MAINTAINER=     crest_maintainer@rlwinm.de
COMMENT=        Fast and Secure Tunnelling Daemon

LICENSE=        BSD2CLAUSE
LICENSE_FILE=       ${WRKSRC}/COPYRIGHT

LIB_DEPENDS=        libjson-c.so:${PORTSDIR}/devel/json-c       \
            libsodium.so:${PORTSDIR}/security/libsodium \
            libuecc.so:${PORTSDIR}/security/libuecc

USES=           bison cmake:outsource pkgconfig tar

PKG_CONFIG_PATH=    ${PREFIX}/lib/pkgconfig/
CONFIGURE_ENV+=     PKG_CONFIG_PATH=${PKG_CONFIG_PATH}

USE_RC_SUBR=        fastd_devel

PLIST_FILES=        bin/fastd-devel           \
            man/man1/fastd-devel.1.gz

.include <bsd.port.pre.mk>

# GCC from base does not support -mpclmul.
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000024
CMAKE_ARGS+=        -DWITH_MAC_GHASH_PCLMULQDQ=FALSE
.endif

post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/fastd.1 ${STAGEDIR}${PREFIX}/man/man1/fastd-devel.1

.include <bsd.port.post.mk>