1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/net-p2p/azureus/Makefile
Mario Sergio Fujikawa Ferreira ea49be316b Update to 2.3.0.6
PR:		90131
Submitted by:	Robert C. Noland III <rnoland@2hip.net>
2005-12-09 17:14:29 +00:00

109 lines
3.2 KiB
Makefile

# New ports collection makefile for: Azureus
# Date created: October 6, 2004
# Whom: Jeremy Faulkner <gldisater@gldis.ca>
#
# $FreeBSD$
#
PORTNAME= azureus
PORTVERSION= 2.3.0.6
CATEGORIES= net java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= Azureus_${PORTVERSION}_source
MAINTAINER= lioux@FreeBSD.org
COMMENT= A BitTorrent client written in Java
EXTRACT_DEPENDS= \
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk.freebsd.x86_${ECLIPSE_VERSION}.1.jar:${PORTSDIR}/java/eclipse
BUILD_DEPENDS= \
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
${LOCALBASE}/eclipse/plugins/org.eclipse.swt_${ECLIPSE_VERSION}.0.jar:${PORTSDIR}/java/eclipse \
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk.freebsd.x86_${ECLIPSE_VERSION}.1.jar:${PORTSDIR}/java/eclipse \
${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
${LOCALBASE}/eclipse/plugins/org.junit_3.8.1/junit.jar:${PORTSDIR}/java/junit \
${JAVALIBDIR}/seda.jar:${PORTSDIR}/net/seda
RUN_DEPENDS= \
${LOCALBASE}/eclipse/plugins/org.eclipse.swt_${ECLIPSE_VERSION}.0.jar:${PORTSDIR}/java/eclipse \
${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk.freebsd.x86_${ECLIPSE_VERSION}.1.jar:${PORTSDIR}/java/eclipse
ONLY_FOR_ARCHS= i386
USE_JAVA= yes
JAVA_EXTRACT= yes
JAVA_BUILD= jdk
JAVA_RUN= jdk
JAVA_VERSION= 1.4
JAVA_OS= native
USE_ANT= yes
USE_JIKES= no
USE_REINPLACE= yes
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}
# hack for eclipse 3.1
PLIST_DIRS= %%DATADIR%%
PLIST_FILES+= \
%%DATADIR%%/libswt-atk-gtk-3139.so \
%%DATADIR%%/libswt-awt-gtk-3139.so \
%%DATADIR%%/libswt-cairo-gtk-3139.so \
%%DATADIR%%/libswt-gnome-gtk-3139.so \
%%DATADIR%%/libswt-gtk-3139.so \
%%DATADIR%%/libswt-pi-gtk-3139.so
post-extract:
@${MKDIR} ${WRKDIR}/eclipse && cd ${WRKDIR}/eclipse && ${JAR} -xf ${LOCALBASE}/eclipse/plugins/org.eclipse.swt.gtk.freebsd.x86_${ECLIPSE_VERSION}.1.jar
do-configure:
${SED} -e "s+%%PREFIX%%+${PREFIX}+" -e "s+%%LOCALBASE%%+${LOCALBASE}+" \
-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}|" \
-e "s|%%JARFILE%%|${JARFILE}|" \
${FILESDIR}/${PORTNAME} > ${WRKDIR}/${PORTNAME}
do-install:
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/dist/lib/${JARFILE} \
${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
# hack for eclipse 3.1
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKDIR}/eclipse/*so ${DATADIR}
.include <bsd.port.pre.mk>
#.if exists(${PORTSDIR}/java/eclipse)
#ECLIPSE_PORT= ${PORTSDIR}/java/eclipse
#ECLIPSE_VERSION!= cd ${ECLIPSE_PORT} && ${MAKE} -V PORTVERSION
#.else
ECLIPSE_VERSION= 3.1
#.endif
CLASSPATH=.
.for jar in ${CLASSPATH_JARS}
CLASSPATH:=${CLASSPATH}:${jar}
.endfor
post-patch:
@${SED} -E \
-e 's|%%CLASSPATH%%|${CLASSPATH}|' \
${FILESDIR}/build.xml > ${WRKSRC}/build.xml
# bash -> sh
@${REINPLACE_CMD} -E \
-e 's|/bin/bash|${SH}|' \
${WRKSRC}/com/aelitis/azureus/core/update/impl/AzureusRestarterImpl.java
.include <bsd.port.post.mk>