aboutsummaryrefslogtreecommitdiffstats
path: root/devel/opendht/Makefile
blob: 5f91d293b1c2b5ac5eb02d8773980a31b13c3a2a (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
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$

PORTNAME=   opendht
PORTVERSION=    0.5.2
CATEGORIES= devel net

MAINTAINER= yuri@rawbw.com
COMMENT=    Lightweight Distributed Hash Table implementation

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libmsgpackc.so:devel/msgpack \
        libnettle.so:security/nettle \
        libgnutls.so:security/gnutls \
        libreadline.so:devel/readline

USE_GITHUB= yes
GH_ACCOUNT= savoirfairelinux

GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--disable-python
USE_LDCONFIG=   yes

USES=       autoreconf compiler:c++11-lib libtool pkgconfig
CFLAGS+=    -I${LOCALBASE}/include
CXXFLAGS+=  -I${LOCALBASE}/include

post-stage:
    @${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig/opendht.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
    @${RMDIR} ${STAGEDIR}${PREFIX}/lib/pkgconfig
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopendht.so.0.0.0

.include <bsd.port.mk>