aboutsummaryrefslogtreecommitdiffstats
path: root/security/i2pd/Makefile
blob: f97fa89392d35cfdaa8c65b9a2f3e29936e0d035 (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
49
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   i2pd
PORTVERSION=    2.3.0
CATEGORIES= security net-p2p

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    C++ implementation of I2P client

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libboost_thread.so:${PORTSDIR}/devel/boost-libs

BROKEN_FreeBSD_9=   does not build

USE_GITHUB= yes
GH_ACCOUNT= PurpleI2P

USES=       cmake compiler:c++11-lib
CMAKE_SOURCE_PATH=${WRKSRC}/build
USE_OPENSSL=    yes

PLIST_FILES=    bin/${PORTNAME} \
        man/man1/${PORTNAME}.1.gz
PORTDOCS=   *

OPTIONS_DEFINE= AESNI UPNP DOCS

AESNI_DESC= Use AES-NI instructions set
AESNI_CMAKE_ON= -DWITH_AESNI=ON
AESNI_CMAKE_OFF=-DWITH_AESNI=OFF

UPNP_DESC=  Include support for UPnP client
UPNP_CMAKE_ON=  -DWITH_UPNP=ON
UPNP_CMAKE_OFF= -DWITH_UPNP=OFF
UPNP_LIB_DEPENDS=libminiupnpc.so:${PORTSDIR}/net/miniupnpc

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

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/configuration.md ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>