blob: 9b297725c5a4693583b80da0323bd08071e1e5c0 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$
PORTNAME= eiskaltdcpp-lib
PORTVERSION= 2.2.4
PORTREVISION= 4
CATEGORIES= net-p2p
MASTER_SITES= GOOGLE_CODE
DISTNAME= eiskaltdcpp-${DISTVERSION}
MAINTAINER= gelraen.ua@gmail.com
COMMENT= A Direct Connect client shared library
LICENSE= GPLv3
LIB_DEPENDS= boost_system:${PORTSDIR}/devel/boost-libs
BUILD_DEPENDS+= chrpath:${PORTSDIR}/devel/chrpath
PROJECTHOST= eiskaltdc
USE_XZ= yes
USE_GCC= 4.6+
USES= cmake gettext
USE_OPENSSL= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
OPTIONS_DEFINE= LUA PCRE IDN DHT
OPTIONS_DEFAULT= IDN DHT
DHT_DESC= DHT support
.include <bsd.port.options.mk>
CMAKE_ARGS+= -DINSTALL_HEADERS:BOOL=ON
CMAKE_ARGS+= -DUSE_QT:BOOL=OFF
CMAKE_ARGS+= -DUSE_GTK:BOOL=OFF
CMAKE_ARGS+= -DUSE_ASPELL:BOOL=OFF
CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=OFF
CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=ON
.if ${PORT_OPTIONS:MLUA}
USE_LUA= 5.1
CMAKE_ARGS+= -DLUA_SCRIPT:BOOL=ON
IGNORE= crashes on connect attempt if built with Lua support
.else
CMAKE_ARGS+= -DLUA_SCRIPT:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
CMAKE_ARGS+= -DPERL_REGEX:BOOL=ON
.else
CMAKE_ARGS+= -DPERL_REGEX:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MIDN}
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn
CMAKE_ARGS+= -DUSE_IDNA:BOOL=ON
.else
CMAKE_ARGS+= -DUSE_IDNA:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MDHT}
CMAKE_ARGS+= -DWITH_DHT:BOOL=ON
.else
CMAKE_ARGS+= -DWITH_DHT:BOOL=OFF
.endif
post-build:
${LOCALBASE}/bin/chrpath -r "${_GCC_RUNTIME}" "${WRKSRC}/dcpp/libeiskaltdcpp.so.2.2"
.include <bsd.port.mk>
|