blob: 3bd02f5f66bca2901611655fa0d1ffb1451a5581 (
plain) (
blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# New ports collection makefile for: snns
# Date created: 2 Febuary 1997
# Whom: reg@shale.csir.co.za
#
# $FreeBSD$
#
PORTNAME= snns
PORTVERSION= 4.3
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.ra.cs.uni-tuebingen.de/downloads/SNNS/
DISTNAME= SNNSv${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Fully featured neural network simulator
LIB_DEPENDS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
USE_XORG= x11 xext xt
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}/lib/snns --enable-global \
--build=${CONFIGURE_TARGET}
post-extract:
.for file in config.guess config.sub
@${CP} -f ${TEMPLATES}/${file} ${WRKSRC}/configuration
.endfor
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's|mkdir $$(|${MKDIR} $$(|g'
@${FIND} ${WRKSRC}/xgui/sources -name "*.c" -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's|X11/Xaw/|X11/Xaw3d/|g'
@${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/snns
@${ECHO_CMD} '' >> ${WRKDIR}/snns
@${ECHO_CMD} 'XGUILOADPATH=${PREFIX}/lib/snns' >> ${WRKDIR}/snns
@${ECHO_CMD} 'export XGUILOADPATH' >> ${WRKDIR}/snns
@${ECHO_CMD} 'PATH=$${PATH}:${PREFIX}/lib/snns/bin' >> ${WRKDIR}/snns
@${ECHO_CMD} 'export DPATH' >> ${WRKDIR}/snns
@${ECHO_CMD} '' >> ${WRKDIR}/snns
@${ECHO_CMD} '${PREFIX}/lib/snns/bin/xgui' >> ${WRKDIR}/snns
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/snns ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/Readme ${PREFIX}/lib/snns
${INSTALL_DATA} ${WRKSRC}/Readme.license ${PREFIX}/lib/snns
${INSTALL_DATA} ${WRKSRC}/default.cfg ${PREFIX}/lib/snns
${INSTALL_DATA} ${WRKSRC}/help.hdoc ${PREFIX}/lib/snns
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|