blob: 0dc71409bbb42826b5452a83a4b67ef59f1649ac (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# New ports collection makefile for: scilab
# Date created: 30 April 2001
# Whom: js@jeannot.org
#
# $FreeBSD$
#
PORTNAME= scilab
PORTVERSION= 2.6
PORTREVISION= 2
CATEGORIES= math cad parallel
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/
EXTRACT_SUFX= .src.tar.gz
MAINTAINER= js@jeannot.org
COMMENT= A free Matlab clone by INRIA & ENPC
LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
BUILD_DEPENDS= pvm:${PORTSDIR}/net/pvm \
wish8.3:${PORTSDIR}/x11-toolkits/tk83
RUN_DEPENDS= xless:${PORTSDIR}/misc/xless \
wish8.3:${PORTSDIR}/x11-toolkits/tk83 \
pvm:${PORTSDIR}/net/pvm
PVM_ROOT= ${LOCALBASE}/lib/pvm
NO_CDROM= "Don't sell for profit."
GNU_CONFIGURE= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --without-xless --with-tk \
--with-tk-library=${LOCALBASE}/lib \
--with-tk-include=${LOCALBASE}/include/tk8.3 \
--with-tcl-library=${LOCALBASE}/lib \
--with-tcl-include=${LOCALBASE}/include/tcl8.3 \
--with-xaw3d \
--x-include=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
CONFIGURE_ENV= PVM_ROOT=${PVM_ROOT} PVM_LIB=${LOCALBASE}/lib X11BASE=${X11BASE}
MAKE_ENV= PVM_INCLUDE=${LOCALBASE}/include
post-extract:
${RM} ${WRKSRC}/examples/callsci/callsciJava/config/config
${RM} ${WRKSRC}/examples/callsci/callsciFortran/config/config
${RM} ${WRKSRC}/examples/callsci/callsciC/config/config
${RM} ${WRKSRC}/examples/callsci/callsciC++/config/config
pre-patch:
${TR} -d '\015' < ${WRKSRC}/macros/util/formatman.sci \
> ${WRKSRC}/macros/util/formatman.sci.new
${MV} ${WRKSRC}/macros/util/formatman.sci.new \
${WRKSRC}/macros/util/formatman.sci
post-patch:
@${REINPLACE_CMD} -e 's,%%PVM_ROOT%%,${PVM_ROOT},' \
${WRKSRC}/scripts/scilab.g
# malloc.h -> stdlib.h conversions
for file in \
examples/intersci-examples/ex6c.c \
examples/intersci-examples/ex8c.c \
examples/intersci-examples/ex9c.c \
examples/interface-tour/pgmsc.c \
examples/intersci-examples-so/ex06c.c \
examples/intersci-examples-so/ex09c.c \
examples/intersci-examples-so/ex08c.c imp/Slatexpr2.c \
imp/Slatexprs.c imp/Slpr.c imp/SEpsf.c imp/Slatexpr.c \
intersci/intersci.h intersci/intersci-n.h \
pvm3/src/imalloc.c routines/calelm/sci_tools.c \
routines/comm/messages.c routines/metanet/connex.c \
routines/metanet/metanet.c routines/metanet/dmtree.c \
routines/metanet/files.c routines/metanet/loadg.c \
routines/metanet/paths.c routines/metanet/saveg.c \
routines/metanet/show.c routines/metanet/transc.c \
routines/metanet/myhsearch.c routines/default/scimem.c \
routines/default/Funtab.c routines/sparse/spDefs.h \
routines/sun/link.c routines/sun/addinter.c \
routines/sun/men_Sutils.c routines/sun/h_help_data.c \
routines/xsci/jpc_command.c routines/xsci/jpc_utils.c \
routines/xsci/wf_e_edit.c routines/xsci/wf_w_dir.c \
routines/xsci/wf_w_file.c routines/xsci/x_button.c \
routines/xsci/x_charproc.c routines/xsci/x_screen.c \
routines/xsci/x_scrollbar.c routines/xsci/x_test_loop.c \
routines/xsci/x_screen.nok.c routines/xsci/jpc_SGraph.c \
routines/xsci/jpc_Xloop.c routines/xsci/jpc_coloredit.c \
routines/xsci/jpc_SGraph.c.in \
routines/libcomm/gest_memoire.c routines/sound/fileio.c \
routines/sound/sprintf_ptr.c routines/wsci/winmain.c \
routines/wsci/wmprint.c routines/wsci/runscilab.c \
routines/wsci/wmtex.c routines/pvm/sci_tools.c \
routines/graphics/RecLoad.c routines/graphics/periFig.c \
routines/graphics/periPos.c routines/graphics/Math.h \
routines/graphics/periGif.c xless/xless.h xmetanet/comm.c \
xmetanet/dialog.c xmetanet/file.c xmetanet/graph.c \
xmetanet/graphics.c xmetanet/list.c xmetanet/load.c \
xmetanet/myhsearch.c xmetanet/name.c xmetanet/save.c; do \
${REINPLACE_CMD} -e \
's/[<"]malloc.h[>"]/<stdlib.h>/' ${WRKSRC}/$${file}; \
done
pre-install:
${FIND} ${WRKSRC} -name \*.orig -delete
${FIND} ${WRKSRC} -name \*.bak -delete
.include <bsd.port.mk>
|