Added
Link Here
|
1 |
# Created by: Venim <ven1m@protonmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= airdcpp-webclient |
5 |
DISTVERSION= 2.11.3 |
6 |
CATEGORIES= net-p2p |
7 |
MASTER_SITES= https://airdcpp-web.github.io/ |
8 |
|
9 |
MAINTAINER= ven1m@protonmail.com |
10 |
COMMENT= Peer-to-peer file sharing application for file servers/NAS devices |
11 |
|
12 |
LICENSE= MIT |
13 |
|
14 |
BUILD_DEPENDS= websocketpp>=0.7.0:devel/websocketpp |
15 |
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ |
16 |
libboost_system.so:devel/boost-libs \ |
17 |
libboost_thread.so:devel/boost-libs \ |
18 |
libleveldb.so:databases/leveldb \ |
19 |
libmaxminddb.so:net/libmaxminddb \ |
20 |
libminiupnpc.so:net/miniupnpc |
21 |
RUN_DEPENDS= airdcpp-webui>=${DISTVERSION}:net-p2p/airdcpp-webui |
22 |
|
23 |
USES= cmake compiler:c++11-lang iconv pkgconfig python ssl |
24 |
USE_GITHUB= yes |
25 |
GH_ACCOUNT= airdcpp-web |
26 |
USE_LDCONFIG= yes |
27 |
USE_RC_SUBR= airdcppd |
28 |
|
29 |
CMAKE_OFF= INSTALL_WEB_UI |
30 |
ALL_TARGET= all |
31 |
|
32 |
ETCDIR?= ${PREFIX}/etc/airdcpp |
33 |
DATADIR?= ${PREFIX}/share/airdcpp |
34 |
|
35 |
USERS= airdcpp |
36 |
GROUPS= airdcpp |
37 |
|
38 |
_AIRDCPP_RUNDIR?= /var/run/airdcppd |
39 |
|
40 |
BINARY_ALIAS= python=${PYTHON_CMD} |
41 |
SUB_FILES= dcppboot.xml pkg-message |
42 |
SUB_LIST+= AIRDCPP_GROUP=${GROUPS} \ |
43 |
AIRDCPP_RUNDIR=${_AIRDCPP_RUNDIR} \ |
44 |
AIRDCPP_USER=${USERS} |
45 |
PLIST_SUB= ${SUB_LIST} \ |
46 |
DISTVERSION=${DISTVERSION} |
47 |
|
48 |
OPTIONS_DEFINE= NATPMP TBB |
49 |
NATPMP_DESC= Optional NAT-PMP support |
50 |
TBB_DESC= Optional Intel Threading Building Blocks (TBB) support |
51 |
|
52 |
NATPMP_LIB_DEPENDS= libnatpmp.so:net/libnatpmp |
53 |
NATPMP_CONFIGURE_WITH= natpmp |
54 |
TBB_LIB_DEPENDS= libtbb.so:devel/tbb |
55 |
TBB_CONFIGURE_WITH= tbb |
56 |
|
57 |
post-install: |
58 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/airdcppd \ |
59 |
${STAGEDIR}${PREFIX}/lib/libairdcpp.so.${DISTVERSION} \ |
60 |
${STAGEDIR}${PREFIX}/lib/libairdcpp-webapi.so.${DISTVERSION} |
61 |
|
62 |
${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${_AIRDCPP_RUNDIR} |
63 |
|
64 |
${INSTALL_DATA} ${WRKDIR}/dcppboot.xml ${STAGEDIR}${ETCDIR}/dcppboot.xml.sample |
65 |
|
66 |
.include <bsd.port.mk> |