diff options
author | des <des@FreeBSD.org> | 2002-01-07 20:34:28 +0800 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-01-07 20:34:28 +0800 |
commit | 278666d4676e1398eb515011e193ae44befc0583 (patch) | |
tree | 7c92cea48405a56101200d8062c7697fa37ccb12 /math/javanns/Makefile | |
parent | 73aaf731b0c22ed4044fa62ba1a6e676ec15515a (diff) | |
download | freebsd-ports-gnome-278666d4676e1398eb515011e193ae44befc0583.tar.gz freebsd-ports-gnome-278666d4676e1398eb515011e193ae44befc0583.tar.zst freebsd-ports-gnome-278666d4676e1398eb515011e193ae44befc0583.zip |
Rough port of JavaNNS 1.0 beta. It runs fine, but complains about not
finding its configuration and help files. I'll fix these issues later.
Diffstat (limited to 'math/javanns/Makefile')
-rw-r--r-- | math/javanns/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/math/javanns/Makefile b/math/javanns/Makefile new file mode 100644 index 000000000000..20b91229458b --- /dev/null +++ b/math/javanns/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: javanns +# Date created: 7 January 2002 +# Whom: des +# +# $FreeBSD$ +# + +PORTNAME= javanns +PORTVERSION= 1.0.b +CATEGORIES= math java +MASTER_SITES= http://www-ra.informatik.uni-tuebingen.de/downloads/JavaNNS/ +DISTNAME= JavaNNS-LinuxIntel + +MAINTAINER= des@FreeBSD.org + +RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper + +JAVAVM?= ${LOCALBASE}/bin/javavm +CLASSDIR?= ${PREFIX}/share/java/classes +LIBSDIR?= ${DATADIR}/lib + +NO_WRKSUBDIR= yes +NO_BUILD= yes + +do-configure: + ${INSTALL_DATA} ${FILESDIR}/javanns.sh ${WRKSRC} + ${PERL} -p -i -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/javanns.sh + ${PERL} -p -i -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/javanns.sh + ${PERL} -p -i -e 's|%%CLASSDIR%%|${CLASSDIR}|g' ${WRKSRC}/javanns.sh + ${FIND} ${WRKSRC} -type d -print | ${XARGS} ${CHMOD} 0755 + +do-install: + ${MKDIR} ${DATADIR} ${DOCSDIR} ${LIBSDIR} ${CLASSDIR} + ${TAR} -cf - -C${WRKSRC} examples manual |\ + ${TAR} -xf - -C${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/libSNNS_jkr.so ${LIBSDIR} + ${INSTALL_DATA} ${WRKSRC}/JavaNNSini.html ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/JavaNNS.jar ${CLASSDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/javanns.sh ${PREFIX}/bin/javanns + +.include <bsd.port.mk> |