aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/azureus2
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-12 18:06:11 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-12 18:06:11 +0000
commit2e64d1face5d2ce09e2feaa48788681e44bc74aa (patch)
treeed141c30e4744a20c5253a261e84d9a5e2d4402b /net-p2p/azureus2
parent07ea270434786da53247810984b0bb92306294e2 (diff)
downloadports-2e64d1face5d2ce09e2feaa48788681e44bc74aa.tar.gz
ports-2e64d1face5d2ce09e2feaa48788681e44bc74aa.zip
Notes
Diffstat (limited to 'net-p2p/azureus2')
-rw-r--r--net-p2p/azureus2/Makefile13
-rw-r--r--net-p2p/azureus2/files/azureus11
2 files changed, 17 insertions, 7 deletions
diff --git a/net-p2p/azureus2/Makefile b/net-p2p/azureus2/Makefile
index 2b51b33a8961..08bd0b5844d1 100644
--- a/net-p2p/azureus2/Makefile
+++ b/net-p2p/azureus2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= azureus
PORTVERSION= 2.2.0.2
+PORTREVISION= 1
CATEGORIES= net java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -29,17 +30,19 @@ JAVA_OS= native
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
JARFILE= Azureus2.jar
-PLIST_FILES= %%DATADIR%%/${JARFILE} bin/${PORTNAME}
-PLIST_DIRS= %%DATADIR%%
+PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} bin/${PORTNAME}
do-configure:
${SED} -e "s+%%PREFIX%%+${PREFIX}+" -e "s+%%LOCALBASE%%+${LOCALBASE}+" \
- -e "s+%%JAVA%%+${JAVA}+" -e "s+%%DATADIR%%+${DATADIR}+" \
+ -e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \
+ -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \
+ -e "s|%%JAVA_VERSION%%|${JAVA_VERSION}|" \
+ -e "s|%%JAVA_OS%%|${JAVA_OS}|" \
${FILESDIR}/${PORTNAME} > ${WRKDIR}/${PORTNAME}
do-install:
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${DATADIR}/${JARFILE}
+ ${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${JAVAJARDIR}/${JARFILE}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/net-p2p/azureus2/files/azureus b/net-p2p/azureus2/files/azureus
index d5c0ffaf198b..5871a852c4f8 100644
--- a/net-p2p/azureus2/files/azureus
+++ b/net-p2p/azureus2/files/azureus
@@ -2,13 +2,20 @@
#
# $FreeBSD$
+export JAVA_VERSION
+export JAVA_OS
+
+# java
+JAVA_VERSION="%%JAVA_VERSION%%"
+JAVA_OS="%%JAVA_OS%%"
+
ECLIPSE_BASE=%%LOCALBASE%%/eclipse
ECLIPSE_SWT=`find "${ECLIPSE_BASE}" -name '*swt.*' -type d | grep -e "plugins/org.eclipse.swt.[motif|gtk]" | head -n 1`
ECLIPSE_WS=`echo "${ECLIPSE_SWT}" | sed -e "s+^${ECLIPSE_BASE}/plugins/org.eclipse.swt.++" -e "s+_.*$++"`
ECLIPSE_SWT_JAR=${ECLIPSE_SWT}/ws/${ECLIPSE_WS}
LIB_PATH=${ECLIPSE_SWT}/os/freebsd/x86/
-CLASS_PATH=:%%DATADIR%%/Azureus2.jar:${ECLIPSE_SWT_JAR}/swt-mozilla.jar:${ECLIPSE_SWT_JAR}/swt-pi.jar:${ECLIPSE_SWT_JAR}/swt.jar
+CLASS_PATH=:%%JAVAJARDIR%%/Azureus2.jar:${ECLIPSE_SWT_JAR}/swt-mozilla.jar:${ECLIPSE_SWT_JAR}/swt-pi.jar:${ECLIPSE_SWT_JAR}/swt.jar
if [ "${DEBUG}" ]
then
@@ -20,4 +27,4 @@ then
echo "LIB_PATH = ${LIB_PATH}"
fi
-"%%JAVA%%" -cp "${CLASS_PATH}" "-Djava.library.path=${LIB_PATH}" "-Dos.name=Linux" org.gudy.azureus2.ui.swt.Main
+exec "%%JAVA%%" -cp "${CLASS_PATH}" "-Djava.library.path=${LIB_PATH}" "-Dos.name=Linux" org.gudy.azureus2.ui.swt.Main "${@}"