summaryrefslogtreecommitdiffstats
path: root/math/javanns/Makefile
blob: 0e0756c234c31869e3ea882b4e372980c57f0f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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

ONLY_FOR_ARCHS=	i386

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>
OpenPOWER on IntegriCloud