blob: 0cbc85c056ffaca3701eb52377b72cd23ecd9e52 (
plain)
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
|
PORTNAME= jitsi
DISTVERSION= 2.1-183
PORTREVISION= 3
CATEGORIES= net-im java
PKGNAMESUFFIX= -videobridge
MAINTAINER= acm@FreeBSD.org
COMMENT= WebRTC compatible video router or SFU
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/share/java/maven/bin/mvn:devel/maven
RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash
ONLY_FOR_ARCHS= i386 amd64 powerpc64 powerpc64le
USE_GITHUB= yes
GH_PROJECT= ${PORTNAME}${PKGNAMESUFFIX}
GH_TAGNAME= dbddd16
USE_JAVA= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX}
SUB_FILES+= pkg-message
SUB_LIST+= JAVA=${JAVA}
ETCDIR= ${PREFIX}/etc/jitsi/videobridge
DEV_UPDATE_MODE= no
.if (${DEV_UPDATE_MODE} == "yes")
post-build:
@cd ${WRKDIR} && ${TAR} czf ${DISTDIR}/${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-deps${EXTRACT_SUFX} m2
@${ECHO} "(!!!) Please upload the maven deps archive: ${DISTDIR}/${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-deps${EXTRACT_SUFX}"
.else
MASTER_SITES+= LOCAL/acm/:maven
DISTFILES+= ${PORTNAME}${PKGNAMESUFFIX}-${DISTVERSION}-deps${EXTRACT_SUFX}:maven
MAVEN_ARGS= --offline
.endif
MAVEN_ARGS+= -PbuildFatJar -DskipTests -Dassembly.skipAssembly=false
MAVEN_REPO= -Dmaven.repo.local=${WRKDIR}/m2
post-patch:
@${REINPLACE_CMD} -e 's|1.0-20190319.172750-1|1.0-0-ge979298|g' ${WRKSRC}/pom.xml
do-build:
cd ${WRKSRC}; \
${SETENV} mvn ${MAVEN_REPO} ${MAVEN_ARGS} package
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/lib
@${MKDIR} ${STAGEDIR}${ETCDIR}
cd ${WRKSRC}/lib \
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/lib/{} \;
@(echo "JVB_XMPP_HOST=localhost"; \
echo "JVB_XMPP_DOMAIN=jitsi.example.com"; \
echo "JVB_XMPP_PORT=5347"; \
echo "JVB_XMPP_SECRET=YOURSECRET1"; \
echo ""; \
echo "VIDEOBRIDGE_MAX_MEMORY=3072m"; \
echo "# VIDEOBRIDGE_DEBUG_OPTIONS=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000\" "; \
) > ${STAGEDIR}${ETCDIR}/${PORTNAME}${PKGNAMESUFFIX}.conf.sample
${INSTALL_DATA} ${WRKSRC}/target/${PORTNAME}${PKGNAMESUFFIX}-2.1-SNAPSHOT-jar-with-dependencies.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}${PKGNAMESUFFIX}.jar
.include <bsd.port.mk>
|