View | Details | Raw Unified | Return to bug 120176
Collapse All | Expand All

(-)lensnns-latest/Makefile (-19 / +12 lines)
Lines 1-15 Link Here
1
# New ports collection makefile for:	lensnns
1
# New ports collection makefile for:	lensnns
2
# Date created:		9 jan 2007
2
# Date created:		9 jan 2007
3
# Whom:			Jason W. Bacon <bacon@smithers.neuro.mcw.edu>
3
# Whom:			Jason W. Bacon <jwbacon@tds.net>
4
#
4
#
5
# $FreeBSD: ports/math/lensnns/Makefile,v 1.1 2007/06/04 21:06:18 miwi Exp $
5
# $FreeBSD$
6
#
6
#
7
7
8
PORTNAME=	lensnns
8
PORTNAME=	lensnns
9
PORTVERSION=	2.63
9
PORTVERSION=	2.63
10
PORTREVISION=	1
10
CATEGORIES=	math science
11
CATEGORIES=	math science
11
MASTER_SITES=	http://tedlab.mit.edu/~dr/Lens/Dist/ \
12
MASTER_SITES=	http://tedlab.mit.edu/~dr/Lens/Dist/ \
12
		http://www.neuro.mcw.edu/~bacon/Ports/distfiles/
13
		http://www.neuro.mcw.edu/Ports/distfiles/
13
DISTNAME=	lens
14
DISTNAME=	lens
14
15
15
MAINTAINER=	bacon@smithers.neuro.mcw.edu
16
MAINTAINER=	bacon@smithers.neuro.mcw.edu
Lines 17-43 Link Here
17
18
18
LIB_DEPENDS=	tcl83.1:${PORTSDIR}/lang/tcl83 \
19
LIB_DEPENDS=	tcl83.1:${PORTSDIR}/lang/tcl83 \
19
		tk83.1:${PORTSDIR}/x11-toolkits/tk83
20
		tk83.1:${PORTSDIR}/x11-toolkits/tk83
21
RUN_DEPENDS=	bestbrowser:${PORTSDIR}/www/bestbrowser
20
22
21
USE_GMAKE=	yes
23
USE_GMAKE=	yes
22
24
23
MAKE_ENV+=	HOSTTYPE="FreeBSD"
24
25
MAN1=		lensnns.1
25
MAN1=		lensnns.1
26
26
27
SUB_FILES=	pkg-message lensnns.1
27
SUB_FILES=	pkg-message lensnns.1 lensnns.cshrc lensnns.profile
28
PKGMESSAGE=	${WRKDIR}/pkg-message
28
PKGMESSAGE=	${WRKDIR}/pkg-message
29
WEB_BROWSER?=	konqueror
29
WEB_BROWSER?=	bestbrowser
30
30
MAKE_ENV+=	HOSTTYPE="FreeBSD"
31
pre-everything::
32
	@${ECHO_CMD} ""
33
	@${ECHO_CMD} "========================================================"
34
	@${ECHO_CMD} "The default WEB browser for viewing the manual is KDE's"
35
	@${ECHO_CMD} "konqueror.  If you want to change this, type Ctrl+C now,"
36
	@${ECHO_CMD} "and run make again with -DWEB_BROWSER, e.g."
37
	@${ECHO_CMD} ""
38
	@${ECHO_CMD} "	make -DWEB_BROWSER=firefox"
39
	@${ECHO_CMD} "========================================================"
40
	@${ECHO_CMD} ""
41
31
42
post-extract:
32
post-extract:
43
	${MKDIR} ${WRKDIR}/lens
33
	${MKDIR} ${WRKDIR}/lens
Lines 49-55 Link Here
49
	${INSTALL_PROGRAM} ${WRKSRC}/Bin/FreeBSD/lens-2.63 ${PREFIX}/bin
39
	${INSTALL_PROGRAM} ${WRKSRC}/Bin/FreeBSD/lens-2.63 ${PREFIX}/bin
50
	${LN} -s ${PREFIX}/bin/alens-2.63 ${PREFIX}/bin/alensnns
40
	${LN} -s ${PREFIX}/bin/alens-2.63 ${PREFIX}/bin/alensnns
51
	${LN} -s ${PREFIX}/bin/lens-2.63 ${PREFIX}/bin/lensnns
41
	${LN} -s ${PREFIX}/bin/lens-2.63 ${PREFIX}/bin/lensnns
52
	${INSTALL_MAN} ${WRKDIR}/lensnns.1 ${PREFIX}/man/man1
42
	${INSTALL_MAN} ${WRKDIR}/lensnns.1 ${MAN1PREFIX}/man/man1
53
	${MKDIR} ${PREFIX}/share/${PORTNAME}/Src/Images
43
	${MKDIR} ${PREFIX}/share/${PORTNAME}/Src/Images
54
	${MKDIR} ${PREFIX}/share/${PORTNAME}/Examples
44
	${MKDIR} ${PREFIX}/share/${PORTNAME}/Examples
55
	${MKDIR} ${PREFIX}/share/${PORTNAME}/Commands
45
	${MKDIR} ${PREFIX}/share/${PORTNAME}/Commands
Lines 61-66 Link Here
61
		${PREFIX}/share/${PORTNAME}/Examples
51
		${PREFIX}/share/${PORTNAME}/Examples
62
	${INSTALL_DATA} ${WRKSRC}/Commands/* \
52
	${INSTALL_DATA} ${WRKSRC}/Commands/* \
63
		${PREFIX}/share/${PORTNAME}/Commands
53
		${PREFIX}/share/${PORTNAME}/Commands
54
	${MKDIR} ${PREFIX}/etc/mri
55
	${INSTALL_SCRIPT} ${WRKDIR}/lensnns.cshrc ${WRKDIR}/lensnns.profile \
56
		${PREFIX}/etc/mri
64
57
65
post-install:
58
post-install:
66
	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
59
	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
(-)lensnns-latest/files/lensnns.cshrc.in (+1 lines)
Line 0 Link Here
1
setenv LENSDIR %%DATADIR%%
(-)lensnns-latest/files/lensnns.profile.in (+2 lines)
Line 0 Link Here
1
LENSDIR=%%DATADIR%%
2
export LENSDIR
(-)lensnns-latest/files/pkg-message.in (-2 / +23 lines)
Lines 4-19 Link Here
4
4
5
	man lensnns
5
	man lensnns
6
6
7
---
8
7
To use the default configuration, set the environment variable LENSDIR to
9
To use the default configuration, set the environment variable LENSDIR to
8
10
9
        %%DATADIR%%
11
        %%DATADIR%%
10
12
13
As an alternative to manual setup shown above, this port (and many other MRI
14
ports) include configuration scripts to automaticaly perform this setup.
15
Using these scripts, a single addition to your shell's startup script will
16
automatically configure the environment for all MRI ports that include
17
a configuration script.
18
19
To utilize these scripts in C-shell compatible shells, add the following
20
to your .cshrc:
21
22
foreach script (%%PREFIX%%/etc/mri/*.cshrc)
23
    source ${script}
24
end
25
26
For Bourne-shell compatibles, add the following to your .profile:
27
28
for script in %%PREFIX%%/etc/mri/*.profile; do
29
    . ${script}
30
done
31
32
---
33
11
If you want to customize your environment, make a complete copy of
34
If you want to customize your environment, make a complete copy of
12
35
13
        %%DATADIR%%
36
        %%DATADIR%%
14
37
15
and set LENSDIR to the full pathname of your copy.
38
and set LENSDIR to the full pathname of your copy.
16
17
Firefox is required to view the manual from the Help menu.
18
39
19
===========================================================================
40
===========================================================================
(-)lensnns-latest/pkg-descr (+2 lines)
Lines 1-3 Link Here
1
Lens is an efficient, yet flexible, neural network simulator that runs on
1
Lens is an efficient, yet flexible, neural network simulator that runs on
2
a variety of platforms, is able to handle large, complex simulations, but
2
a variety of platforms, is able to handle large, complex simulations, but
3
is also reasonably easy for novices to operate.
3
is also reasonably easy for novices to operate.
4
5
WWW: http://tedlab.mit.edu/~dr/Lens/
(-)lensnns-latest/pkg-plist (+3 lines)
Lines 2-7 Link Here
2
bin/alens-2.63
2
bin/alens-2.63
3
bin/lensnns
3
bin/lensnns
4
bin/lens-2.63
4
bin/lens-2.63
5
etc/mri/lensnns.cshrc
6
etc/mri/lensnns.profile
5
%%DATADIR%%/Commands/addGroup.txt
7
%%DATADIR%%/Commands/addGroup.txt
6
%%DATADIR%%/Commands/addLinkType.txt
8
%%DATADIR%%/Commands/addLinkType.txt
7
%%DATADIR%%/Commands/addNet.txt
9
%%DATADIR%%/Commands/addNet.txt
Lines 232-234 Link Here
232
@dirrm %%DATADIR%%/Examples
234
@dirrm %%DATADIR%%/Examples
233
@dirrm %%DATADIR%%/Commands
235
@dirrm %%DATADIR%%/Commands
234
@dirrm %%DATADIR%%
236
@dirrm %%DATADIR%%
237
@dirrmtry etc/mri

Return to bug 120176