diff options
author | lioux <lioux@FreeBSD.org> | 2005-01-13 22:16:14 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-01-13 22:16:14 +0000 |
commit | 97e99dc24eb82566e8788c4416069f0f1b4db3c2 (patch) | |
tree | 8569a826791daed469a7a93faa6c98971e9f34c1 /net-p2p/azureus/Makefile | |
parent | ae60bbc2ef2a74928374d5ac948ed837a241a25b (diff) | |
download | FreeBSD-ports-97e99dc24eb82566e8788c4416069f0f1b4db3c2.zip FreeBSD-ports-97e99dc24eb82566e8788c4416069f0f1b4db3c2.tar.gz |
o Build an azureus jar with a native jdk instead of downloading the
jar
o Use a custom made ant build.xml for building. Written with help
from [1]
o Clean up CLASSPATH, we do not need swt-pi-mozilla.jar
o Bump PORTREVISION
Reviewed by: jrandom [1]
Diffstat (limited to 'net-p2p/azureus/Makefile')
-rw-r--r-- | net-p2p/azureus/Makefile | 44 |
1 files changed, 34 insertions, 10 deletions
diff --git a/net-p2p/azureus/Makefile b/net-p2p/azureus/Makefile index 08bd0b5..dd78176 100644 --- a/net-p2p/azureus/Makefile +++ b/net-p2p/azureus/Makefile @@ -7,28 +7,35 @@ PORTNAME= azureus PORTVERSION= 2.2.0.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -DISTNAME= Azureus${PORTVERSION}.jar -EXTRACT_SUFX= -EXTRACT_ONLY= +DISTNAME= Azureus_${PORTVERSION}_source MAINTAINER= lioux@FreeBSD.org COMMENT= A BitTorrent client written in Java -RUN_DEPENDS= ${LOCALBASE}/eclipse:${PORTSDIR}/java/eclipse +BUILD_DEPENDS= \ + ${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt-pi.jar:${PORTSDIR}/java/eclipse \ + ${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk_${ECLIPSE_VERSION}/ws/gtk/swt.jar:${PORTSDIR}/java/eclipse +RUN_DEPENDS= \ + ${BUILD_DEPENDS} -NO_BUILD= yes ONLY_FOR_ARCHS= i386 USE_JAVA= yes JAVA_VERSION= 1.4+ JAVA_OS= native +USE_ANT= yes -DATADIR= ${JAVASHAREDIR}/${PORTNAME} -JARFILE= Azureus2.jar +USE_ZIP= yes +NO_WRKSUBDIR= yes + +JARFILE= ${PORTNAME}.jar + +# build classpath from BUILD_DEPENDS +CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar} PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${PORTNAME} @@ -38,11 +45,28 @@ do-configure: -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \ -e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \ -e "s|%%JAVA_OS%%|${JAVA_OS}|" \ + -e "s|%%JARFILE%%|${JARFILE}|" \ ${FILESDIR}/${PORTNAME} > ${WRKDIR}/${PORTNAME} do-install: ${MKDIR} ${JAVAJARDIR} - ${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${JAVAJARDIR}/${JARFILE} + ${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} \ + ${JAVAJARDIR}/ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +ECLIPSE_PORT= ${PORTSDIR}/java/eclipse +ECLIPSE_VERSION!= cd ${ECLIPSE_PORT} && ${MAKE} -V PORTVERSION + +CLASSPATH=. +.for jar in ${CLASSPATH_JARS} +CLASSPATH:=${CLASSPATH}:${jar} +.endfor + +post-patch: + @${SED} -E \ + -e 's|%%CLASSPATH%%|${CLASSPATH}|' \ + ${FILESDIR}/build.xml > ${WRKSRC}/build.xml + +.include <bsd.port.post.mk> |