2002-01-07 07:34:28 -05:00
|
|
|
# New ports collection makefile for: javanns
|
|
|
|
# Date created: 7 January 2002
|
|
|
|
# Whom: des
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= javanns
|
2002-10-08 05:07:02 -04:00
|
|
|
PORTVERSION= 1.1
|
2002-01-07 07:34:28 -05:00
|
|
|
CATEGORIES= math java
|
|
|
|
MASTER_SITES= http://www-ra.informatik.uni-tuebingen.de/downloads/JavaNNS/
|
|
|
|
DISTNAME= JavaNNS-LinuxIntel
|
|
|
|
|
|
|
|
MAINTAINER= des@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= Fully featured neural network simulator
|
2002-01-07 07:34:28 -05:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper
|
|
|
|
|
2002-01-07 07:38:00 -05:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2002-01-07 07:34:28 -05:00
|
|
|
JAVAVM?= ${LOCALBASE}/bin/javavm
|
|
|
|
CLASSDIR?= ${PREFIX}/share/java/classes
|
|
|
|
LIBSDIR?= ${DATADIR}/lib
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
2002-11-19 06:57:31 -05:00
|
|
|
USE_REINPLACE= yes
|
2002-01-07 07:34:28 -05:00
|
|
|
|
2002-10-08 05:07:02 -04:00
|
|
|
post-extract:
|
|
|
|
# Permissions in the tar file are whacked
|
2002-11-19 06:57:31 -05:00
|
|
|
find ${WRKSRC} -type d -print | xargs ${CHMOD} 755
|
|
|
|
find ${WRKSRC} -type f -print | xargs ${CHMOD} 644
|
2002-10-08 05:07:02 -04:00
|
|
|
|
2002-01-07 07:34:28 -05:00
|
|
|
do-configure:
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/javanns.sh ${WRKSRC}
|
2002-11-19 06:57:31 -05:00
|
|
|
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
-e 's|%%DATADIR%%|${DATADIR}|g' \
|
|
|
|
-e 's|%%CLASSDIR%%|${CLASSDIR}|g' ${WRKSRC}/javanns.sh
|
2002-01-07 07:34:28 -05:00
|
|
|
${FIND} ${WRKSRC} -type d -print | ${XARGS} ${CHMOD} 0755
|
|
|
|
|
|
|
|
do-install:
|
2002-10-08 05:07:02 -04:00
|
|
|
${MKDIR} ${DATADIR} ${LIBSDIR} ${CLASSDIR}
|
2002-01-07 07:34:28 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/JavaNNS.jar ${CLASSDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/javanns.sh ${PREFIX}/bin/javanns
|
2002-10-08 05:07:02 -04:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${TAR} -cf - -C${WRKSRC} examples manual |\
|
|
|
|
${TAR} -xf - -C${DOCSDIR}
|
|
|
|
.endif
|
2002-01-07 07:34:28 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|