2013-03-24 20:16:45 +01:00
|
|
|
# Created by: Tzanetos Balitsaris <tzabal@it.teithe.gr>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= jitsi
|
2015-10-12 16:25:50 +02:00
|
|
|
PORTVERSION= 2.8.5426
|
|
|
|
PORTREVISION= 0
|
2013-03-24 20:16:45 +01:00
|
|
|
CATEGORIES= net-im java
|
2015-10-12 16:25:50 +02:00
|
|
|
MASTER_SITES= http://aetos.it.teithe.gr/~tzabal/ports/jitsi/
|
2013-03-24 20:16:45 +01:00
|
|
|
|
|
|
|
MAINTAINER= tzabal@it.teithe.gr
|
|
|
|
COMMENT= Open source IM and VoIP application
|
|
|
|
|
2014-04-08 12:27:49 +02:00
|
|
|
LICENSE= LGPL21
|
2013-09-17 01:00:36 +02:00
|
|
|
|
2014-03-10 17:38:00 +01:00
|
|
|
USES= zip
|
2013-03-24 20:16:45 +01:00
|
|
|
USE_JAVA= yes
|
|
|
|
USE_ANT= yes
|
|
|
|
MAKE_ARGS= rebuild
|
2013-09-17 01:00:36 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/jitsi/lib/native
|
|
|
|
|
2015-10-12 16:25:50 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2013-09-17 01:00:36 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2013-03-24 20:16:45 +01:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Jitsi" \
|
|
|
|
"VoIP and Instant Messenger" \
|
2014-04-08 12:27:49 +02:00
|
|
|
"${PREFIX}/share/pixmaps/jitsi.png" \
|
|
|
|
"${PORTNAME}" \
|
2013-03-24 20:16:45 +01:00
|
|
|
"Network;InstantMessaging;VideoConference;Java;" \
|
|
|
|
true
|
|
|
|
|
|
|
|
do-install:
|
2015-10-12 16:25:50 +02:00
|
|
|
# Installation directory structure
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/jitsi/sc-bundles
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/jitsi/lib/bundle
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/jitsi/lib/native
|
2013-03-24 20:16:45 +01:00
|
|
|
# Bundles (Jitsi modules)
|
2015-10-12 16:25:50 +02:00
|
|
|
cd ${WRKSRC}/sc-bundles && ${COPYTREE_SHARE} . \
|
2014-04-08 12:27:49 +02:00
|
|
|
${STAGEDIR}${PREFIX}/lib/jitsi/sc-bundles
|
2015-10-12 16:25:50 +02:00
|
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/jitsi/sc-bundles/*slick*.jar
|
|
|
|
${RM} -r ${STAGEDIR}${PREFIX}/lib/jitsi/sc-bundles/os-specific
|
2014-04-08 12:27:49 +02:00
|
|
|
# Library JARs
|
2015-10-12 16:25:50 +02:00
|
|
|
cd ${WRKSRC}/lib/bundle && ${COPYTREE_SHARE} . \
|
2014-04-08 12:27:49 +02:00
|
|
|
${STAGEDIR}${PREFIX}/lib/jitsi/lib/bundle "! -name junit.jar"
|
2015-10-12 16:25:50 +02:00
|
|
|
cd ${WRKSRC}/lib && ${COPYTREE_SHARE} "felix.jar logging.properties \
|
|
|
|
felix.client.run.properties" ${STAGEDIR}${PREFIX}/lib/jitsi/lib
|
2014-04-08 12:27:49 +02:00
|
|
|
# Native libraries
|
2015-10-12 16:25:50 +02:00
|
|
|
cd ${WRKSRC}/lib/native/freebsd${ARCH:S/i386//:S/amd/-/:S/x86_/-/} && \
|
2014-04-08 12:27:49 +02:00
|
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/jitsi/lib/native
|
2015-10-12 16:25:50 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/jitsi/lib/native/*.so
|
2013-03-24 20:16:45 +01:00
|
|
|
# Wrapper script to run Jitsi
|
2014-04-08 12:27:49 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/jitsi.sh ${STAGEDIR}${PREFIX}/bin/jitsi
|
2013-08-14 10:22:59 +02:00
|
|
|
# Manual page
|
2014-04-08 12:27:49 +02:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/jitsi.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2013-03-24 20:16:45 +01:00
|
|
|
# Desktop related
|
2014-04-08 12:27:49 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/resources/images/logo/sc_logo_128x128.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/jitsi.png
|
2013-09-17 01:00:36 +02:00
|
|
|
|
2014-04-08 12:27:49 +02:00
|
|
|
.include <bsd.port.mk>
|