2013-03-24 20:16:45 +01:00
|
|
|
# Created by: Tzanetos Balitsaris <tzabal@it.teithe.gr>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= jitsi
|
2013-09-17 01:00:36 +02:00
|
|
|
PORTVERSION= 2.3
|
2013-03-24 20:16:45 +01:00
|
|
|
CATEGORIES= net-im java
|
2013-09-17 01:00:36 +02:00
|
|
|
MASTER_SITES= http://aetos.it.teithe.gr/~tzabal/ports/jitsi/ \
|
|
|
|
http://www.c-s.li/ports/
|
|
|
|
DISTNAME= jitsi-master-084e2b42b5
|
2013-03-24 20:16:45 +01:00
|
|
|
|
|
|
|
MAINTAINER= tzabal@it.teithe.gr
|
|
|
|
COMMENT= Open source IM and VoIP application
|
|
|
|
|
2013-08-14 10:22:59 +02:00
|
|
|
MAN1= jitsi.1
|
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
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2013-03-24 20:16:45 +01:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Jitsi" \
|
|
|
|
"VoIP and Instant Messenger" \
|
|
|
|
${PREFIX}/share/pixmaps/jitsi.png \
|
|
|
|
jitsi \
|
|
|
|
"Network;InstantMessaging;VideoConference;Java;" \
|
|
|
|
true
|
|
|
|
|
2013-09-21 00:13:34 +02:00
|
|
|
NO_STAGE= yes
|
2013-03-24 20:16:45 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${ECHO_CMD} ">> Creating Jitsi directories..."
|
|
|
|
@${MKDIR} ${PREFIX}/lib/jitsi/sc-bundles
|
|
|
|
@${MKDIR} ${PREFIX}/lib/jitsi/lib/bundle
|
|
|
|
@${MKDIR} ${PREFIX}/lib/jitsi/lib/native
|
|
|
|
|
|
|
|
# Bundles (Jitsi modules)
|
|
|
|
@${ECHO_CMD} ">> Installing bundles (Jitsi modules)..."
|
|
|
|
@cd ${WRKSRC}/sc-bundles && ${COPYTREE_SHARE} \* \
|
|
|
|
${PREFIX}/lib/jitsi/sc-bundles
|
|
|
|
@${RM} ${PREFIX}/lib/jitsi/sc-bundles/*slick*.jar
|
|
|
|
@${RM} -r ${PREFIX}/lib/jitsi/sc-bundles/os-specific
|
|
|
|
|
|
|
|
# Library Jars
|
|
|
|
@${ECHO_CMD} ">> Installing library jars..."
|
|
|
|
@cd ${WRKSRC}/lib/bundle && ${COPYTREE_SHARE} \* \
|
|
|
|
${PREFIX}/lib/jitsi/lib/bundle "! -name junit.jar"
|
|
|
|
@cd ${WRKSRC}/lib && ${COPYTREE_SHARE} "felix.jar jdic-all.jar \
|
|
|
|
felix.client.run.properties logging.properties" \
|
|
|
|
${PREFIX}/lib/jitsi/lib
|
|
|
|
|
|
|
|
# Native Libraries
|
|
|
|
@${ECHO_CMD} ">> Installing native libraries..."
|
|
|
|
.if ${ARCH} != amd64
|
|
|
|
@cd ${WRKSRC}/lib/native/freebsd && ${COPYTREE_SHARE} \* \
|
|
|
|
${PREFIX}/lib/jitsi/lib/native
|
|
|
|
.else
|
|
|
|
@cd ${WRKSRC}/lib/native/freebsd-64 && ${COPYTREE_SHARE} \* \
|
|
|
|
${PREFIX}/lib/jitsi/lib/native
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Wrapper script to run Jitsi
|
|
|
|
@${ECHO_CMD} ">> Installing wrapper script..."
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/jitsi.sh ${PREFIX}/bin/jitsi
|
|
|
|
|
2013-08-14 10:22:59 +02:00
|
|
|
# Manual page
|
|
|
|
@${ECHO_CMD} ">> Installing the manual page..."
|
|
|
|
@${INSTALL_MAN} ${FILESDIR}/jitsi.1 ${MANPREFIX}/man/man1
|
|
|
|
|
2013-03-24 20:16:45 +01:00
|
|
|
# Desktop related
|
|
|
|
@${ECHO_CMD} ">> Installing Jitsi's logo..."
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/resources/images/logo/sc_logo_128x128.png \
|
|
|
|
${PREFIX}/share/pixmaps/jitsi.png
|
|
|
|
|
2013-09-17 01:00:36 +02:00
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2013-03-24 20:16:45 +01:00
|
|
|
.include <bsd.port.post.mk>
|