2006-04-05 03:49:52 +00:00
|
|
|
# New ports collection makefile for: Java OnionNetworks FEC
|
|
|
|
# Date created: Wed Apr 5 03:10:31 UTC 2006
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fec
|
|
|
|
PORTVERSION= 1.0.3
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 1
|
2006-04-05 03:49:52 +00:00
|
|
|
CATEGORIES= net java
|
|
|
|
MASTER_SITES= http://onionnetworks.com/downloads/
|
|
|
|
PKGNAMEPREFIX= onion-
|
|
|
|
|
2008-06-15 19:06:36 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-04-05 03:49:52 +00:00
|
|
|
COMMENT= Java Forward Error Correction (FEC) library from OnionNetworks
|
|
|
|
|
|
|
|
BUILD_DEPENDS= \
|
|
|
|
${JAVALIBDIR}/log4j.jar:${PORTSDIR}/devel/log4j
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_ANT= yes
|
|
|
|
JAVA_BUILD= jdk
|
2006-04-05 22:36:45 +00:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
2006-04-05 03:49:52 +00:00
|
|
|
JAVA_OS= native
|
|
|
|
ALL_TARGET= jars
|
|
|
|
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
ALL_TARGET+= javadoc
|
|
|
|
|
|
|
|
PORTDOCS+= javadoc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# override DEFAULT
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
|
|
|
|
JAVADOC_WRKSRC= ${WRKSRC}/javadoc
|
|
|
|
|
|
|
|
# jars
|
|
|
|
JAR_FILES+= \
|
|
|
|
onion-common.jar \
|
|
|
|
onion-fec.jar
|
|
|
|
PLIST_FILES+= ${JAR_FILES:S,^,%%JAVAJARDIR%%/,}
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${LN} -sf ${JAVALIBDIR}/log4j.jar ${WRKSRC}/lib
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
# line taken from textproc/xerces-j maintained by hq@FreeBSD.org
|
|
|
|
@cd ${JAVADOC_WRKSRC} && \
|
|
|
|
${FIND} . -type d -exec ${MKDIR} "${DOCSDIR}/javadoc/{}" \; && \
|
|
|
|
${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/javadoc/{}" \;
|
|
|
|
.endif
|
|
|
|
.for jar in ${JAR_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/${jar} ${JAVAJARDIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|