summaryrefslogtreecommitdiff
path: root/net-p2p/azureus2
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-02-19 08:44:52 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-02-19 08:44:52 +0000
commit906ac7fec5ecd0422de527b5e427cdae97e1146f (patch)
tree82df17bb72b3f6d3bb1b99a828dd18a1271bf8bc /net-p2p/azureus2
parento Install jtc.ico icon and add a FreeBSD ports system generated (diff)
o Pacify portlint(1) by cleaning up BUILD_DEPENDS
o This port now both builds and runs on amd64 arch as reported by others (I do not own hardware to verify that) PR: 92210 Submitted by: mi
Notes
Notes: svn path=/head/; revision=156372
Diffstat (limited to 'net-p2p/azureus2')
-rw-r--r--net-p2p/azureus2/Makefile7
-rw-r--r--net-p2p/azureus2/distinfo6
-rw-r--r--net-p2p/azureus2/files/build.xml2
-rw-r--r--net-p2p/azureus2/files/patch-TransferTypes17
4 files changed, 25 insertions, 7 deletions
diff --git a/net-p2p/azureus2/Makefile b/net-p2p/azureus2/Makefile
index 2aa0602be461..a8488083f4ad 100644
--- a/net-p2p/azureus2/Makefile
+++ b/net-p2p/azureus2/Makefile
@@ -19,13 +19,13 @@ COMMENT= A BitTorrent client written in Java
BUILD_DEPENDS= \
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
- ${LOCALBASE}/share/java/classes/junit.jar:${PORTSDIR}/java/junit \
+ ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt31 \
${JAVALIBDIR}/seda.jar:${PORTSDIR}/net/seda
RUN_DEPENDS= \
${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt31
-ONLY_FOR_ARCHS= i386
+ONLY_FOR_ARCHS= i386 amd64
USE_JAVA= yes
JAVA_BUILD= jdk
@@ -35,13 +35,14 @@ JAVA_OS= native
USE_ANT= yes
USE_JIKES= no
-USE_REINPLACE= yes
USE_ZIP= yes
+USE_DOS2UNIX= org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java
NO_WRKSUBDIR= yes
JARFILE= ${PORTNAME}.jar
# build classpath from BUILD_DEPENDS
+MAKE_ENV= LANG=C
CLASSPATH_JARS= ${BUILD_DEPENDS:C/:.+$//:M*.jar}
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${PORTNAME}
diff --git a/net-p2p/azureus2/distinfo b/net-p2p/azureus2/distinfo
index 6049092fef21..18483703886f 100644
--- a/net-p2p/azureus2/distinfo
+++ b/net-p2p/azureus2/distinfo
@@ -1,3 +1,3 @@
-MD5 (Azureus_2.3.0.6_source.zip) = d02357ee2917482fee1174a0dc549c5e
-SHA256 (Azureus_2.3.0.6_source.zip) = 7244b8b379f6254d0adf3f43da240b415f982c496d63529a86eaf8e231ef120a
-SIZE (Azureus_2.3.0.6_source.zip) = 4773566
+MD5 (Azureus_2.4.0.0_source.zip) = cb0390f3e1d158453fca980c92050a56
+SHA256 (Azureus_2.4.0.0_source.zip) = 1190c7281433ef9bdb32c3aac52d2c0fd31ff13114a2c569d31ccb1cc0d69d70
+SIZE (Azureus_2.4.0.0_source.zip) = 5235489
diff --git a/net-p2p/azureus2/files/build.xml b/net-p2p/azureus2/files/build.xml
index 21ac16c59937..4555797a810c 100644
--- a/net-p2p/azureus2/files/build.xml
+++ b/net-p2p/azureus2/files/build.xml
@@ -19,7 +19,7 @@
<target name="compile" depends="init" description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
- <javac srcdir="." destdir="${build}" fork="yes" memoryMaximumSize="64m">
+ <javac srcdir="." destdir="${build}" fork="yes" memoryMaximumSize="512m">
<include name="**/*.java"/>
<exclude name="**/Win32*.java"/>
<exclude name="**/swt/osx/**"/>
diff --git a/net-p2p/azureus2/files/patch-TransferTypes b/net-p2p/azureus2/files/patch-TransferTypes
new file mode 100644
index 000000000000..2c13840c877e
--- /dev/null
+++ b/net-p2p/azureus2/files/patch-TransferTypes
@@ -0,0 +1,17 @@
+--- org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java Fri Dec 12 09:56:48 2003
++++ org/gudy/azureus2/ui/swt/test/PrintTransferTypes.java Sat Jun 11 16:06:40 2005
+@@ -41,5 +41,5 @@
+ TransferData[] data = event.dataTypes;
+ for (int i = 0; i < data.length; i++) {
+- int id = data[i].type;
++ long id = data[i].type;
+ String name = getNameFromId(id);
+ System.out.println("Data type is " + id + " " + name);
+@@ -97,5 +97,5 @@
+ return ids;
+ }
+- static String getNameFromId(int id) {
++ static String getNameFromId(long id) {
+- switch (id) {
++ switch ((int)id) {
+ case 1 :