#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net-p2p/vuze/files/vuze.in,v 1.2 2009-12-01 21:05:21 rnoland Exp $

# java
export JAVA_VERSION="1.6+"
export JAVA_OS="native"

ECLIPSE_BASE=/usr/local/eclipse
ECLIPSE_SWT_JAR=/usr/local/share/java/classes/swt-devel.jar
LIB_PATH=/usr/local/lib

CLASS_PATH=:/usr/local/share/java/classes/vuze.jar:${ECLIPSE_SWT_JAR}

if [ "${DEBUG}" ]
then
	echo "ECLIPSE_BASE = ${ECLIPSE_BASE}"
	echo "ECLIPSE_WS = ${ECLIPSE_WS}"
	echo "ECLIPSE_SWT = ${ECLIPSE_SWT}"
	echo "ECLIPSE_SWT_JAR = ${ECLIPSE_SWT_JAR}"
	echo "CLASS_PATH = ${CLASS_PATH}"
	echo "LIB_PATH = ${LIB_PATH}"
fi

exec "/usr/local/bin/java" -cp "${CLASS_PATH}" "-Djava.library.path=${LIB_PATH}" "-Dos.name=FreeBSD" "-Dazureus.config.path=${HOME}/.Azureus" "-Duser.dir=${HOME}/.Azureus" org.gudy.azureus2.ui.swt.Main "${@}"
