06e6677793
remove support for them from bsd.java.mk. As Jikes is not available in Java 1.5 or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports which used it (only occurences were USE_JIKES=no). Support for the Blackdown VM is also removed, as it is not available in Java 1.5 and higher. Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5. While here, replace static values of JAVA_VERSION in files/*.in by %%JAVA_VERSION%% . PR: ports/158969 Submitted by: rene Tested on: pointyhat-west -exp
78 lines
2 KiB
Makefile
78 lines
2 KiB
Makefile
# New ports collection makefile for: Azureus
|
|
# Date created: October 6, 2004
|
|
# Whom: Jeremy Faulkner <gldisater@gldis.ca>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= azureus2
|
|
PORTVERSION= 2.5.0.4
|
|
PORTREVISION= 4
|
|
CATEGORIES= net-p2p java
|
|
MASTER_SITES= SF/azureus/x_obsolete/azureus-${PORTVERSION}
|
|
DISTNAME= azureus_${PORTVERSION}_source
|
|
|
|
MAINTAINER= rnoland@2hip.net
|
|
COMMENT= A BitTorrent client written in Java
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
|
|
${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
|
|
${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
|
|
${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
|
|
RUN_DEPENDS= ${JAVALIBDIR}/${SWT}.jar:${PORTSDIR}/x11-toolkits/${SWT}
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
JAVA_OS= native
|
|
USE_ANT= yes
|
|
|
|
USE_ZIP= yes
|
|
USE_DOS2UNIX= org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java \
|
|
org/gudy/azureus2/platform/macosx/access/jnilib/OSXAccess.java
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
JARFILE= ${PORTNAME}.jar
|
|
|
|
OPTIONS= SWTDEVEL "Use SWT Development port" off
|
|
|
|
# build classpath from BUILD_DEPENDS
|
|
MAKE_ENV= LANG=C
|
|
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
|
|
bin/${PORTNAME}
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
SUB_LIST= LIBDIR="${LOCALBASE}/lib" JARFILE="${JARFILE}" \
|
|
SWTJAR="${JAVALIBDIR}/${SWT}.jar" JAVA="${LOCALBASE}/bin/java"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_SWTDEVEL)
|
|
SWT= swt-devel
|
|
.else
|
|
SWT= swt
|
|
.endif
|
|
|
|
CLASSPATH=.
|
|
.for jar in ${CLASSPATH_JARS}
|
|
CLASSPATH:=${CLASSPATH}:${jar}
|
|
.endfor
|
|
|
|
post-patch:
|
|
@${SED} -E -e 's|%%CLASSPATH%%|${CLASSPATH}|' \
|
|
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
|
|
# bash -> sh
|
|
@${REINPLACE_CMD} -E -e 's|/bin/bash|${SH}|' \
|
|
${WRKSRC}/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java
|
|
|
|
do-install:
|
|
${MKDIR} ${JAVAJARDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} ${JAVAJARDIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
|
|
|
post-install:
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
.include <bsd.port.post.mk>
|