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