Added
Link Here
|
1 |
PORTNAME= biboumi |
2 |
DISTVERSION= 9.0 |
3 |
CATEGORIES= net-im |
4 |
MASTER_SITES= https://git.louiz.org/biboumi/snapshot/ |
5 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
6 |
|
7 |
MAINTAINER= samir@noir.im |
8 |
COMMENT= XMPP gateway to IRC |
9 |
|
10 |
LICENSE= ZLIB |
11 |
|
12 |
LIB_DEPENDS= libexpat.so:textproc/expat2 \ |
13 |
libuuid.so:misc/e2fsprogs-libuuid |
14 |
|
15 |
USES= cmake iconv localbase:ldflags pkgconfig python:build tar:xz |
16 |
|
17 |
USE_GITHUB= nodefault |
18 |
GH_TUPLE= catchorg:Catch2:v2.2.1:catch/external/src/catch |
19 |
|
20 |
CMAKE_ARGS= -DWITHOUT_SYSTEMD=1 |
21 |
|
22 |
OPTIONS_DEFINE= DOCS LIBIDN PGSQL SQLITE3 TLS UDNS |
23 |
OPTIONS_DEFAULT= LIBIDN PGSQL SQLITE3 TLS UDNS |
24 |
|
25 |
LIBIDN_DESC= Stringprep functionality, to provide JIDs for IRC users |
26 |
PGSQL_DESC= Store users' options and messages in PostgreSQL |
27 |
SQLITE3_DESC= Store users' options and messages in SQLite |
28 |
TLS_DESC= Support TLS connections to IRC servers |
29 |
UDNS_DESC= Asynchronously resolve domain names, for better performances |
30 |
|
31 |
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx \ |
32 |
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme |
33 |
DOCS_PORTDOCS= * |
34 |
|
35 |
LIBIDN_LIB_DEPENDS= libidn.so:dns/libidn |
36 |
LIBIDN_CMAKE_ON= -DWITH_LIBIDN=1 |
37 |
LIBIDN_CMAKE_OFF= -DWITHOUT_LIBIDN=1 |
38 |
|
39 |
PGSQL_USES= pgsql |
40 |
PGSQL_CMAKE_ON= -DWITH_POSTGRESQL=1 |
41 |
PGSQL_CMAKE_OFF= -DWITHOUT_POSTGRESQL=1 |
42 |
|
43 |
SQLITE3_USES= sqlite:3 |
44 |
SQLITE3_CMAKE_ON= -DWITH_SQLITE3=1 |
45 |
SQLITE3_CMAKE_OFF= -DWITHOUT_SQLITE3=1 |
46 |
|
47 |
TLS_LIB_DEPENDS= libbotan-2.so:security/botan2 |
48 |
TLS_LIB_DEPENDS_OFF= libgcrypt.so:security/libgcrypt |
49 |
TLS_RUN_DEPENDS_ON= ca_root_nss>0:security/ca_root_nss |
50 |
TLS_CMAKE_ON= -DWITH_BOTAN=1 |
51 |
TLS_CMAKE_OFF= -DWITHOUT_BOTAN=1 |
52 |
|
53 |
UDNS_LIB_DEPENDS= libudns.so:dns/udns |
54 |
UDNS_CMAKE_ON= -DWITH_UDNS=1 |
55 |
UDNS_CMAKE_OFF= -DWITHOUT_UDNS=1 |
56 |
|
57 |
USERS= biboumi |
58 |
GROUPS= ${USERS} |
59 |
|
60 |
USE_RC_SUBR= biboumi |
61 |
SUB_LIST= USER=${USERS} GROUP=${GROUPS} |
62 |
PLIST_SUB= ${SUB_LIST} |
63 |
SUB_FILES= pkg-message |
64 |
|
65 |
post-patch: |
66 |
${REINPLACE_CMD} -e 's,GIT_REPOSITORY.*Catch.git",SOURCE_DIR "${WRKSRC}/external/src/catch",' ${WRKSRC}/CMakeLists.txt |
67 |
|
68 |
post-build: |
69 |
cd ${WRKSRC}/doc && ${MAKE} man |
70 |
|
71 |
post-build-DOCS-on: |
72 |
cd ${WRKSRC}/doc && ${MAKE} html |
73 |
|
74 |
do-install: |
75 |
${INSTALL_PROGRAM} ${WRKDIR}/.build/biboumi ${STAGEDIR}${PREFIX}/bin |
76 |
${MKDIR} ${STAGEDIR}${PREFIX}/etc/biboumi |
77 |
${INSTALL_DATA} ${WRKSRC}/conf/biboumi.cfg ${STAGEDIR}${ETCDIR}/biboumi.cfg.sample |
78 |
|
79 |
post-install: |
80 |
${MKDIR} ${STAGEDIR}/var/db/biboumi |
81 |
${MKDIR} ${STAGEDIR}/var/run/biboumi |
82 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
83 |
${INSTALL_DATA} ${WRKSRC}/conf/*policy.txt ${STAGEDIR}${EXAMPLESDIR} |
84 |
${INSTALL_MAN} ${WRKSRC}/doc/_build/man/*.1 ${STAGEDIR}${PREFIX}/man/man1 |
85 |
|
86 |
post-install-DOCS-on: |
87 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
88 |
(cd ${WRKSRC}/doc/_build/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ |
89 |
"! -name .buildinfo") |
90 |
|
91 |
.include <bsd.port.mk> |