aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/azureus
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2006-02-19 16:44:52 +0800
committerlioux <lioux@FreeBSD.org>2006-02-19 16:44:52 +0800
commit0f2f8856f3a5575f4d4ce22e4599ef94b7a38d80 (patch)
tree1d6aafd12552ad1c4e888233725df070eb41ed2c /net-p2p/azureus
parent1e0536c59226bf43c5cd6776eac067c051847939 (diff)
downloadfreebsd-ports-gnome-0f2f8856f3a5575f4d4ce22e4599ef94b7a38d80.tar.gz
freebsd-ports-gnome-0f2f8856f3a5575f4d4ce22e4599ef94b7a38d80.tar.zst
freebsd-ports-gnome-0f2f8856f3a5575f4d4ce22e4599ef94b7a38d80.zip
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
Diffstat (limited to 'net-p2p/azureus')
-rw-r--r--net-p2p/azureus/Makefile7
-rw-r--r--net-p2p/azureus/distinfo6
-rw-r--r--net-p2p/azureus/files/build.xml2
-rw-r--r--net-p2p/azureus/files/patch-TransferTypes17
4 files changed, 25 insertions, 7 deletions
diff --git a/net-p2p/azureus/Makefile b/net-p2p/azureus/Makefile
index 2aa0602be461..a8488083f4ad 100644
--- a/net-p2p/azureus/Makefile
+++ b/net-p2p/azureus/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/azureus/distinfo b/net-p2p/azureus/distinfo
index 6049092fef21..18483703886f 100644
--- a/net-p2p/azureus/distinfo
+++ b/net-p2p/azureus/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/azureus/files/build.xml b/net-p2p/azureus/files/build.xml
index 21ac16c59937..4555797a810c 100644
--- a/net-p2p/azureus/files/build.xml
+++ b/net-p2p/azureus/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/azureus/files/patch-TransferTypes b/net-p2p/azureus/files/patch-TransferTypes
new file mode 100644
index 000000000000..2c13840c877e
--- /dev/null
+++ b/net-p2p/azureus/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 :