2012-10-04 12:00:38 +02:00
|
|
|
# Created by: Jeremy Faulkner <gldisater@gldis.ca>
|
2004-10-24 03:08:00 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-12-22 19:27:01 +01:00
|
|
|
PORTNAME= vuze
|
2017-02-01 21:13:50 +01:00
|
|
|
PORTVERSION= 5.7.4.0
|
2006-01-30 22:36:28 +01:00
|
|
|
CATEGORIES= net-p2p java
|
2011-11-14 06:35:54 +01:00
|
|
|
MASTER_SITES= SF/azureus/vuze/Vuze_${PORTVERSION:S/.//g}
|
|
|
|
DISTNAME= Vuze_${PORTVERSION:S/.//g}_source
|
2004-10-24 03:08:00 +02:00
|
|
|
|
2017-02-01 21:13:50 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-28 17:17:00 +01:00
|
|
|
COMMENT= BitTorrent client written in Java
|
2004-10-24 03:08:00 +02:00
|
|
|
|
2014-03-19 20:15:24 +01:00
|
|
|
LICENSE= GPLv2
|
2016-01-14 00:15:47 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/GPL.txt
|
2014-03-19 20:15:24 +01:00
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/log4j.jar:devel/log4j \
|
|
|
|
${JAVALIBDIR}/commons-cli.jar:java/jakarta-commons-cli \
|
|
|
|
${JAVALIBDIR}/junit.jar:java/junit \
|
|
|
|
${JAVALIBDIR}/swt-devel.jar:x11-toolkits/swt-devel
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/swt-devel.jar:x11-toolkits/swt-devel
|
2004-10-24 03:08:00 +02:00
|
|
|
|
2014-03-10 17:38:00 +01:00
|
|
|
USES= zip
|
2004-10-24 03:08:00 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_OS= native
|
2005-01-13 23:16:14 +01:00
|
|
|
USE_ANT= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2017-02-01 21:13:50 +01:00
|
|
|
NO_ARCH= yes
|
2012-10-28 17:17:00 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2005-01-13 23:16:14 +01:00
|
|
|
|
|
|
|
JARFILE= ${PORTNAME}.jar
|
|
|
|
|
|
|
|
# build classpath from BUILD_DEPENDS
|
2012-10-28 17:17:00 +01:00
|
|
|
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar:T}
|
2004-10-24 03:08:00 +02:00
|
|
|
|
2007-05-26 02:56:11 +02:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
|
2007-10-29 22:29:24 +01:00
|
|
|
bin/${PORTNAME} \
|
|
|
|
share/icons/hicolor/16x16/apps/${PORTNAME}.png \
|
|
|
|
share/icons/hicolor/32x32/apps/${PORTNAME}.png \
|
2008-12-22 19:27:01 +01:00
|
|
|
share/icons/hicolor/64x64/apps/${PORTNAME}.png
|
2004-10-24 03:08:00 +02:00
|
|
|
|
2007-05-26 02:56:11 +02:00
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
SUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \
|
2013-09-12 16:07:35 +02:00
|
|
|
SWTJAR="${JAVALIBDIR}/swt-devel.jar" JAVA="${LOCALBASE}/bin/java"
|
2006-03-20 06:57:26 +01:00
|
|
|
|
2008-12-22 19:27:01 +01:00
|
|
|
DESKTOP_ENTRIES= "Vuze" \
|
2013-01-23 00:13:41 +01:00
|
|
|
"BitTorrent client" \
|
2007-10-29 22:29:24 +01:00
|
|
|
"${PORTNAME}" \
|
2013-01-23 00:13:41 +01:00
|
|
|
"${PORTNAME}" \
|
|
|
|
"Network;P2P;Java;" \
|
2007-10-29 22:29:24 +01:00
|
|
|
true
|
|
|
|
|
2005-01-13 23:16:14 +01:00
|
|
|
CLASSPATH=.
|
|
|
|
.for jar in ${CLASSPATH_JARS}
|
2012-10-28 17:17:00 +01:00
|
|
|
CLASSPATH:=${CLASSPATH}:${JAVALIBDIR}/${jar}
|
2005-01-13 23:16:14 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-patch:
|
2016-10-21 14:51:40 +02:00
|
|
|
${RM} -r ${WRKSRC}/org/eclipse
|
2007-05-26 02:56:11 +02:00
|
|
|
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
|
2005-01-13 23:16:14 +01:00
|
|
|
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
|
|
|
|
|
2007-05-26 02:56:11 +02:00
|
|
|
do-install:
|
2013-10-13 17:22:36 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
|
2014-03-19 20:15:24 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
2012-10-28 17:17:00 +01:00
|
|
|
.for s in 16 32 64
|
2013-10-13 17:22:36 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps
|
2015-11-05 13:36:25 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/org/gudy/azureus2/ui/icons/a${s}.png \
|
2013-10-13 17:22:36 +02:00
|
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/${PORTNAME}.png
|
2012-10-28 17:17:00 +01:00
|
|
|
.endfor
|
2007-05-26 02:56:11 +02:00
|
|
|
|
2012-10-04 12:00:38 +02:00
|
|
|
.include <bsd.port.mk>
|