2004-03-19 02:26:58 +01:00
|
|
|
# $NetBSD: Makefile,v 1.51 2004/03/19 01:26:58 dmcmahill Exp $
|
1998-08-25 14:53:07 +02:00
|
|
|
#
|
|
|
|
|
2001-07-18 03:14:23 +02:00
|
|
|
DISTNAME= ${SCIBASE}.src
|
2001-11-29 02:12:24 +01:00
|
|
|
PKGNAME= ${SCIBASE}
|
2003-12-19 05:37:23 +01:00
|
|
|
PKGREVISION= 3
|
1998-08-25 14:53:07 +02:00
|
|
|
CATEGORIES= math
|
1999-03-05 12:22:34 +01:00
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/
|
2003-09-12 22:46:47 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} scicos.tar.gz scicos_blocks.tar.gz
|
1998-08-25 14:53:07 +02:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= dmcmahill@NetBSD.org
|
1998-08-25 14:53:07 +02:00
|
|
|
HOMEPAGE= http://www-rocq.inria.fr/scilab/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= High-level scientific math programming environment with graphics
|
1998-08-25 14:53:07 +02:00
|
|
|
|
2003-09-12 22:46:47 +02:00
|
|
|
DIST_SUBDIR= ${SCIBASE}
|
|
|
|
SCIBASE= scilab-2.7
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${SCIBASE}
|
2003-09-12 22:46:47 +02:00
|
|
|
|
|
|
|
SITES_scicos.tar.gz= ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/misc/
|
|
|
|
SITES_scicos_blocks.tar.gz= ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/misc/
|
|
|
|
|
2002-03-05 22:05:52 +01:00
|
|
|
#needs FPC code not found in older versions of NetBSD
|
|
|
|
NOT_FOR_PLATFORM= NetBSD-1.[0-4]*-alpha NetBSD-1.5-alpha \
|
|
|
|
NetBSD-1.5.*-alpha NetBSD-1.5[A-U]-alpha
|
1998-11-13 02:25:12 +01:00
|
|
|
|
2004-03-11 00:41:44 +01:00
|
|
|
USE_BUILDLINK3= yes
|
Update to scilab-2.6
Thanks to the scilab folks at INRIA for helping us get rid of 9 more patches!
From the CHANGES file:
Main Changes Scilab 2.5 -> 2.6
==============================
NEW FUNCTIONALITIES
===================
Automatic graphic rescaling when combining 2D plots, axis handling
Isometric 3D plots. Thanks to Enrico Segre
3D plots shading. Thanks to Stephane MOTTELET
Error messages handling
Grep function added
Modeless message box added
Profiling of functions execution added
Real time simulation in Scicos. Thanks to Anders Blomdell
Scicos diagram linearization and fixed point computation
OTHERS IMPROVEMENTS
===================
A more professional licence
Input/Output improved (carriage return at the end of the file are not
required anymore, OS independent ascii file input, handling of opened
files )
More complete mexlib for MatlabV mex interface.
Many bug corrected in integer types manipulation
API improved, many examples given
A better window management under KDE
A better plugin interface (help, demos,...) and new Scilab functions for
building and loading interfaces.
Interactive demos for ODE and DAE solving added
Scicos' GUI improved, customizable keyboard shortcuts added
Default list, tlist and mlist display can be overloaded
It is now possible to draw dashed lines in color. Background now work
with postscript driver. Easiest argument passing to plot2d, plot3d,...
GIF driver bugs fixed.
INCOMPATIBLITY
==============
help and scicos palettes handling have changed.
Fraclab toolbox has been moved to the contributions part and is no
more included in the package
The Communication Toolbox (geci) is now obsolete. It will be removed in
next release. Use PVM instead.
2001-04-08 18:25:27 +02:00
|
|
|
USE_FORTRAN= yes
|
2002-10-01 00:36:08 +02:00
|
|
|
USE_X11BASE= yes
|
Update to scilab-2.6
Thanks to the scilab folks at INRIA for helping us get rid of 9 more patches!
From the CHANGES file:
Main Changes Scilab 2.5 -> 2.6
==============================
NEW FUNCTIONALITIES
===================
Automatic graphic rescaling when combining 2D plots, axis handling
Isometric 3D plots. Thanks to Enrico Segre
3D plots shading. Thanks to Stephane MOTTELET
Error messages handling
Grep function added
Modeless message box added
Profiling of functions execution added
Real time simulation in Scicos. Thanks to Anders Blomdell
Scicos diagram linearization and fixed point computation
OTHERS IMPROVEMENTS
===================
A more professional licence
Input/Output improved (carriage return at the end of the file are not
required anymore, OS independent ascii file input, handling of opened
files )
More complete mexlib for MatlabV mex interface.
Many bug corrected in integer types manipulation
API improved, many examples given
A better window management under KDE
A better plugin interface (help, demos,...) and new Scilab functions for
building and loading interfaces.
Interactive demos for ODE and DAE solving added
Scicos' GUI improved, customizable keyboard shortcuts added
Default list, tlist and mlist display can be overloaded
It is now possible to draw dashed lines in color. Background now work
with postscript driver. Easiest argument passing to plot2d, plot3d,...
GIF driver bugs fixed.
INCOMPATIBLITY
==============
help and scicos palettes handling have changed.
Fraclab toolbox has been moved to the contributions part and is no
more included in the package
The Communication Toolbox (geci) is now obsolete. It will be removed in
next release. Use PVM instead.
2001-04-08 18:25:27 +02:00
|
|
|
USE_LIBTOOL= yes
|
1998-08-25 14:53:07 +02:00
|
|
|
|
2002-10-01 00:36:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
update to scilab-2.7.
Main Changes Scilab 2.6 -> 2.7
==============================
THANKS
======
Scilab group wants to thank the increasing number of people who have
contributed to this new version of Scilab, with special mention to
Anders Blomdell, Stephane Mottelet, Dan McMahill
Ton van Overbeek, Bruno Pincon and Enrico Segre.
NEW FUNCTIONALITIES
===================
Slicot based control routines (www.win.tue.nl/wgs/slicot.html)
have been introduced with a special attention
to identification functions, lyapunov, sylvester and riccati equation solvers.
Interface with TeXmacs (www.texmacs.org) a high level scientific text editor.
The editor allows you to write structured documents via a wysiwyg interface
including Scilab sessions and results.
An embedded text editor scipad derived from TkNotepad
(www.mindspring.com/~joeja/programs.html) as been developped.
C Code generation from Scicos discrete models
Blocks defining DAE are now usable in Scicos.
Statistic toolbox added (labostat).
A new graphics version based on objects and entities has been developped
(beta version). It allows to edit the properties of graphics
objects. By default, the old graphics version is used. Tu use the new graphics
version see the help of "graphics_entities".
OTHERS IMPROVEMENTS
===================
Linear algebra primitives now based on Lapack instead of Linpack/Eispack.
Basic functions revised (thanks to B Pincon).
stacksize use is no more restricted.
Hypertext, xml based, online help.
Binary Matlab file .mat loader (loadmatfile) added.
Possibility to customize graphics window event handlers (seteventhandler).
edit_graph, a graph editor for Metanet toolbox, written in Scilab, replaces
xmetanet. It works on both Unix and Windows.
INCOMPATIBLITIES
================
It is higly recommended to rebuild user's scilab functions libraries. This
can be done as follow:
predef(0);genlib('mylib','mylib_path',%t)
gschur and gspec functions are now obsolete and replaced by schur and spec.
Geci and the communication library have been removed. Use PVM interface instead.
Metanet graph editor has been rewritten. Use edit_graph instead.
man pages have to be written in HTML or better in XML but chapters
written in the old ascii files are still handled.
Scicos internal data structure have been changed. Automatic translation
is made when old diagrams are loaded.
2003-02-22 05:31:03 +01:00
|
|
|
CONFIGURE_ARGS+= --without-xaw3d
|
2004-03-11 00:41:44 +01:00
|
|
|
|
|
|
|
TCL_DIR=${LOCALBASE}
|
|
|
|
CONFIGURE_ARGS+= --with-tcl-library=${TCL_DIR}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-tcl-include=${TCL_DIR}/include
|
|
|
|
CONFIGURE_ARGS+= --with-tk-library=${TCL_DIR}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-tk-include=${TCL_DIR}/include
|
2002-10-01 00:36:08 +02:00
|
|
|
|
|
|
|
# override HOME to avoid picking up a bad ${HOME}/.scilab during the build
|
|
|
|
MAKE_ENV+= HOME=${WRKSRC}
|
|
|
|
MAKE_ENV+= PVM_ROOT=${PVM_ROOT}
|
|
|
|
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
|
|
|
|
|
|
|
|
PVM_ROOT?= ${LOCALBASE}/pvm3
|
|
|
|
CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT}
|
|
|
|
CONFIGURE_ENV+= X11BASE=${X11BASE}
|
|
|
|
PLIST_SUBST+= SCIBASE=${SCIBASE}
|
1999-03-05 12:22:34 +01:00
|
|
|
|
2004-03-11 00:41:44 +01:00
|
|
|
UNBUILDLINK_FILES+= Makemex config/configuration config/Makeso.incl
|
|
|
|
|
2002-03-05 22:05:52 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} "===> Checking if you have working FPC"
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
${CC} ${CFLAGS} -o ${WRKDIR}/chk_ieee ${FILESDIR}/chk_ieee.c
|
|
|
|
@cd ${WRKDIR} && if ./chk_ieee ; then ${ECHO} "yes" ; else \
|
|
|
|
${ECHO} "no" ; \
|
|
|
|
${ECHO} "${PKGNAME} requires floating point completion on this system" ;\
|
|
|
|
${ECHO} "Possible causes for this check failing are:" ;\
|
|
|
|
${ECHO} " - you have an old /usr/lib/* which was not compiled with -mieee" ;\
|
|
|
|
${ECHO} " - you have overridden CFLAGS for pkgsrc removing the -mieee flag" ;\
|
|
|
|
${ECHO} "Without fixing this problem ${PKGNAME} will not work." ; ${FALSE} ; fi
|
|
|
|
.endif
|
|
|
|
|
2003-09-12 22:46:47 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
post-extract:
|
|
|
|
.for f in scicos scicos_blocks
|
|
|
|
@extract_file=${DISTDIR}/${DIST_SUBDIR}/${f}.tar.gz ; export extract_file ; \
|
|
|
|
cd ${WRKSRC}/macros/${f} && ${EXTRACT_CMD}
|
|
|
|
.endfor
|
|
|
|
|
2004-03-11 00:41:44 +01:00
|
|
|
# clean up any possible leftovers from 'make test' so that our PLIST
|
|
|
|
# will still be right. Also clean up a reference to WRKSRC.
|
|
|
|
pre-install:
|
|
|
|
cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} distclean
|
|
|
|
cd ${WRKSRC}/examples && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} distclean
|
|
|
|
mv ${WRKSRC}/maple/maple2scilab.mpl ${WRKSRC}/maple/maple2scilab.mpl.bak
|
|
|
|
${SED} 's;${WRKSRC};${PREFIX}/lib/${SCIBASE};g' ${WRKSRC}/maple/maple2scilab.mpl.bak > \
|
|
|
|
${WRKSRC}/maple/maple2scilab.mpl
|
|
|
|
${RM} -f ${WRKSRC}/maple/maple2scilab.mpl.bak
|
|
|
|
|
2003-05-06 19:40:18 +02:00
|
|
|
# delete some .orig files that got created by patching
|
2003-12-19 05:37:23 +01:00
|
|
|
# also fix the libtool link
|
2003-03-01 03:01:47 +01:00
|
|
|
post-install:
|
2003-09-12 22:46:47 +02:00
|
|
|
${RM} -f ${PREFIX}/lib/${SCIBASE}/config/Makeso.incl.in.orig
|
|
|
|
${RM} -f ${PREFIX}/lib/${SCIBASE}/macros/util/scipad.sci.orig
|
2004-03-11 00:41:44 +01:00
|
|
|
${RM} -f ${PREFIX}/lib/${SCIBASE}/config/Makeso.incl.subst.sav
|
|
|
|
${RM} -f ${PREFIX}/lib/${SCIBASE}/config/configuration.subst.sav
|
2003-12-19 05:37:23 +01:00
|
|
|
${RM} -f ${PREFIX}/lib/${SCIBASE}/libtool
|
2004-03-11 00:41:44 +01:00
|
|
|
${LN} -s ${LOCALBASE}/bin/libtool ${PREFIX}/lib/${SCIBASE}/libtool
|
2003-03-01 03:01:47 +01:00
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2002-05-25 20:47:24 +02:00
|
|
|
.endif
|
|
|
|
|
Update to scilab-2.6
Thanks to the scilab folks at INRIA for helping us get rid of 9 more patches!
From the CHANGES file:
Main Changes Scilab 2.5 -> 2.6
==============================
NEW FUNCTIONALITIES
===================
Automatic graphic rescaling when combining 2D plots, axis handling
Isometric 3D plots. Thanks to Enrico Segre
3D plots shading. Thanks to Stephane MOTTELET
Error messages handling
Grep function added
Modeless message box added
Profiling of functions execution added
Real time simulation in Scicos. Thanks to Anders Blomdell
Scicos diagram linearization and fixed point computation
OTHERS IMPROVEMENTS
===================
A more professional licence
Input/Output improved (carriage return at the end of the file are not
required anymore, OS independent ascii file input, handling of opened
files )
More complete mexlib for MatlabV mex interface.
Many bug corrected in integer types manipulation
API improved, many examples given
A better window management under KDE
A better plugin interface (help, demos,...) and new Scilab functions for
building and loading interfaces.
Interactive demos for ODE and DAE solving added
Scicos' GUI improved, customizable keyboard shortcuts added
Default list, tlist and mlist display can be overloaded
It is now possible to draw dashed lines in color. Background now work
with postscript driver. Easiest argument passing to plot2d, plot3d,...
GIF driver bugs fixed.
INCOMPATIBLITY
==============
help and scicos palettes handling have changed.
Fraclab toolbox has been moved to the contributions part and is no
more included in the package
The Communication Toolbox (geci) is now obsolete. It will be removed in
next release. Use PVM instead.
2001-04-08 18:25:27 +02:00
|
|
|
# the "SCI=0 && unset SCI" is done because some of the tests really will
|
|
|
|
# fail if SCI is set to anything.
|
2003-07-12 15:22:16 +02:00
|
|
|
do-test:
|
Update to scilab-2.6
Thanks to the scilab folks at INRIA for helping us get rid of 9 more patches!
From the CHANGES file:
Main Changes Scilab 2.5 -> 2.6
==============================
NEW FUNCTIONALITIES
===================
Automatic graphic rescaling when combining 2D plots, axis handling
Isometric 3D plots. Thanks to Enrico Segre
3D plots shading. Thanks to Stephane MOTTELET
Error messages handling
Grep function added
Modeless message box added
Profiling of functions execution added
Real time simulation in Scicos. Thanks to Anders Blomdell
Scicos diagram linearization and fixed point computation
OTHERS IMPROVEMENTS
===================
A more professional licence
Input/Output improved (carriage return at the end of the file are not
required anymore, OS independent ascii file input, handling of opened
files )
More complete mexlib for MatlabV mex interface.
Many bug corrected in integer types manipulation
API improved, many examples given
A better window management under KDE
A better plugin interface (help, demos,...) and new Scilab functions for
building and loading interfaces.
Interactive demos for ODE and DAE solving added
Scicos' GUI improved, customizable keyboard shortcuts added
Default list, tlist and mlist display can be overloaded
It is now possible to draw dashed lines in color. Background now work
with postscript driver. Easiest argument passing to plot2d, plot3d,...
GIF driver bugs fixed.
INCOMPATIBLITY
==============
help and scicos palettes handling have changed.
Fraclab toolbox has been moved to the contributions part and is no
more included in the package
The Communication Toolbox (geci) is now obsolete. It will be removed in
next release. Use PVM instead.
2001-04-08 18:25:27 +02:00
|
|
|
SCI=0 && unset SCI && cd ${WRKSRC}/tests && \
|
|
|
|
${MAKE_ENV} ${MAKE_PROGRAM} tests 2>&1 | \
|
|
|
|
tee ${WRKDIR}/tests.log
|
|
|
|
SCI=0 && unset SCI && cd ${WRKSRC}/examples && \
|
|
|
|
${MAKE_ENV} ${MAKE_PROGRAM} tests 2>&1 | \
|
|
|
|
tee ${WRKDIR}/examples.log
|
1998-08-25 14:53:07 +02:00
|
|
|
|
2004-03-11 00:41:44 +01:00
|
|
|
.include "../../parallel/pvm3/buildlink3.mk"
|
2004-03-19 02:26:58 +01:00
|
|
|
.include "../../x11/tk/buildlink3.mk"
|
1998-08-25 14:53:07 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|