1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net-p2p/vuze/Makefile
Pawel Pekala f6592cd9d4 - Update to version 5.7.4.0
- Drop maintainership, I'm not using it anymore
- Remove antique minimal java version requirement
- Port is architecture neutral
2017-02-01 20:13:50 +00:00

73 lines
2.0 KiB
Makefile

# Created by: Jeremy Faulkner <gldisater@gldis.ca>
# $FreeBSD$
PORTNAME= vuze
PORTVERSION= 5.7.4.0
CATEGORIES= net-p2p java
MASTER_SITES= SF/azureus/vuze/Vuze_${PORTVERSION:S/.//g}
DISTNAME= Vuze_${PORTVERSION:S/.//g}_source
MAINTAINER= ports@FreeBSD.org
COMMENT= BitTorrent client written in Java
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/GPL.txt
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
USES= zip
USE_JAVA= yes
JAVA_OS= native
USE_ANT= yes
NO_WRKSUBDIR= yes
NO_ARCH= yes
INSTALLS_ICONS= yes
JARFILE= ${PORTNAME}.jar
# build classpath from BUILD_DEPENDS
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar:T}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
bin/${PORTNAME} \
share/icons/hicolor/16x16/apps/${PORTNAME}.png \
share/icons/hicolor/32x32/apps/${PORTNAME}.png \
share/icons/hicolor/64x64/apps/${PORTNAME}.png
SUB_FILES= ${PORTNAME}
SUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \
SWTJAR="${JAVALIBDIR}/swt-devel.jar" JAVA="${LOCALBASE}/bin/java"
DESKTOP_ENTRIES= "Vuze" \
"BitTorrent client" \
"${PORTNAME}" \
"${PORTNAME}" \
"Network;P2P;Java;" \
true
CLASSPATH=.
.for jar in ${CLASSPATH_JARS}
CLASSPATH:=${CLASSPATH}:${JAVALIBDIR}/${jar}
.endfor
post-patch:
${RM} -r ${WRKSRC}/org/eclipse
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.for s in 16 32 64
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps
${INSTALL_DATA} ${WRKSRC}/org/gudy/azureus2/ui/icons/a${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/${PORTNAME}.png
.endfor
.include <bsd.port.mk>