2012-12-10 14:43:43 +01:00
|
|
|
# Created by: js@jeannot.org
|
1999-08-25 09:05:28 +02:00
|
|
|
# $FreeBSD$
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2001-10-03 16:44:01 +02:00
|
|
|
PORTNAME= scilab
|
2011-07-28 20:07:09 +02:00
|
|
|
PORTVERSION= 5.3.3
|
2012-12-10 20:11:11 +01:00
|
|
|
PORTREVISION= 5
|
2010-02-25 03:09:17 +01:00
|
|
|
CATEGORIES= math cad parallel java
|
2010-09-04 14:31:51 +02:00
|
|
|
MASTER_SITES= http://www.scilab.org/download/${PORTVERSION}/:scilab \
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
http://www.predatorlabs.net/dl/:jgraphx \
|
2012-06-03 02:59:41 +02:00
|
|
|
http://www.bayofrum.net/dist/jgraphx/:jgraphx \
|
|
|
|
SF/saxon/saxon6/${SAXON_VERSION}:saxon
|
2010-09-04 14:31:51 +02:00
|
|
|
DISTFILES= ${DISTNAME}-src.tar.gz:scilab
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}-src.tar.gz
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2012-12-06 17:39:07 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2010-03-24 00:36:10 +01:00
|
|
|
COMMENT= Scientific software package for numerical computations
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2012-06-06 22:49:07 +02:00
|
|
|
EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
|
2010-02-25 03:09:17 +01:00
|
|
|
# A partial dependencies list can be found at:
|
|
|
|
# http://wiki.scilab.org/Dependencies_of_Scilab_5.X
|
|
|
|
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
|
2012-12-10 20:11:11 +01:00
|
|
|
pcre.3:${PORTSDIR}/devel/pcre
|
1998-07-25 14:54:07 +02:00
|
|
|
|
2010-09-04 14:31:51 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2010-02-25 03:09:17 +01:00
|
|
|
|
|
|
|
USE_FORTRAN= yes
|
2013-04-24 20:10:30 +02:00
|
|
|
USES= gettext
|
2010-02-25 03:09:17 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2010-03-24 00:36:10 +01:00
|
|
|
USE_GMAKE= yes
|
2010-02-25 03:09:17 +01:00
|
|
|
USE_LDCONFIG= yes
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2011-08-23 10:28:05 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS = --with-gfortran
|
|
|
|
CONFIGURE_ENV= ac_cv_search_pthread_join="${PTHREAD_LIBS}" \
|
2011-09-24 00:26:39 +02:00
|
|
|
BLAS_LIBS="${BLAS_LIBS}" LAPACK_LIBS="${LAPACK_LIBS}"
|
2010-02-25 03:09:17 +01:00
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
OPTIONS_DEFINE= ATLAS FFTW GUI HELP NLS MATIO OCAML PVM TK UMFPACK
|
|
|
|
OPTIONS_DEFAULT= FFTW GUI HELP
|
|
|
|
|
|
|
|
ATLAS_DESC= Use Atlas instead of Blas
|
|
|
|
GUI_DESC= Build GUI (requires Java)
|
|
|
|
HELP_DESC= Help Browser (Java based, requires GUI)
|
|
|
|
MATIO_DESC= Matlab compatibility
|
|
|
|
OCAML_DESC= Build OCaml modelica compiler (requires GUI)
|
|
|
|
PVM_DESC= Parallel Virtual Machine support
|
|
|
|
UMFPACK_DESC= Build with umfpack
|
2010-02-25 03:09:17 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2006-03-22 01:37:53 +01:00
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MATLAS}
|
2007-01-16 09:53:14 +01:00
|
|
|
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
2011-11-22 12:14:10 +01:00
|
|
|
BLAS_LIBS= -lf77blas
|
2011-08-23 10:28:05 +02:00
|
|
|
LAPACK_LIBS= -lalapack -lcblas
|
2006-06-06 04:11:55 +02:00
|
|
|
.else
|
2007-01-16 09:53:14 +01:00
|
|
|
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
|
|
|
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
2011-08-23 10:28:05 +02:00
|
|
|
BLAS_LIBS?= -lblas
|
|
|
|
LAPACK_LIBS?= -llapack
|
2006-03-22 01:37:53 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-build-localization
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2010-03-02 10:05:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-build-localization
|
2010-02-25 03:09:17 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MTK}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --without-tk
|
|
|
|
.else
|
|
|
|
USE_TK= yes
|
|
|
|
CONFIGURE_ARGS+= --with-tk-library=${LOCALBASE}/lib \
|
|
|
|
--with-tk-include=${TK_INCLUDEDIR} \
|
|
|
|
--with-tcl-library=${LOCALBASE}/lib \
|
|
|
|
--with-tcl-include=${TCL_INCLUDEDIR}
|
|
|
|
.endif
|
|
|
|
|
2012-06-06 22:49:07 +02:00
|
|
|
SAXON_VERSION= 6.5.5
|
|
|
|
SAXON_DISTFILE= saxon${SAXON_VERSION:S/./-/g}.zip
|
|
|
|
DISTFILES+= ${SAXON_DISTFILE}:saxon
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MGUI}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --without-gui \
|
|
|
|
--without-javasci \
|
2010-03-24 00:36:10 +01:00
|
|
|
--without-hdf5 \
|
2011-05-20 08:04:59 +02:00
|
|
|
--without-xcos \
|
2010-02-25 03:09:17 +01:00
|
|
|
--disable-build-help
|
2011-08-23 10:28:05 +02:00
|
|
|
CONFIGURE_ENV += JAVADOC="${TRUE}"
|
|
|
|
PLIST_SUB+= WITHOUT_GUI=""
|
2010-02-25 03:09:17 +01:00
|
|
|
.else
|
2010-09-04 14:31:51 +02:00
|
|
|
DISTFILES+= ${JGRAPHX_JAR}:jgraphx
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
JGRAPHX_VERSION= 1.4.1.0
|
2010-09-04 14:31:51 +02:00
|
|
|
JGRAPHX_JAR= jgraphx-${JGRAPHX_VERSION:C/\./_/g}.jar
|
|
|
|
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bin-JAVA_HOME
|
|
|
|
|
2011-07-15 09:00:46 +02:00
|
|
|
LIB_DEPENDS+= hdf5.7:${PORTSDIR}/science/hdf5-18
|
2010-03-24 00:36:10 +01:00
|
|
|
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
GUI_DEPENDS= ${JAVALIBDIR}/flexdock.jar:${PORTSDIR}/devel/flexdock \
|
2010-02-25 03:09:17 +01:00
|
|
|
${JAVALIBDIR}/jogl.jar:${PORTSDIR}/graphics/jogl \
|
|
|
|
${JAVALIBDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
|
|
|
|
${JAVALIBDIR}/looks.jar:${PORTSDIR}/devel/looks \
|
|
|
|
${JAVALIBDIR}/skinlf.jar:${PORTSDIR}/x11-toolkits/skinlf \
|
2011-11-01 18:19:20 +01:00
|
|
|
${JAVALIBDIR}/jrosetta-api.jar:${PORTSDIR}/java/jrosetta \
|
2010-02-25 03:09:17 +01:00
|
|
|
${JAVALIBDIR}/jhall.jar:${PORTSDIR}/java/javahelp \
|
2010-09-03 12:58:23 +02:00
|
|
|
${JAVALIBDIR}/jlatexmath.jar:${PORTSDIR}/math/jlatexmath \
|
2010-02-25 03:09:17 +01:00
|
|
|
fop:${PORTSDIR}/textproc/fop \
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
${LOCALBASE}/share/java/batik/lib/batik-all.jar:${PORTSDIR}/graphics/batik \
|
2010-02-25 03:09:17 +01:00
|
|
|
foprep:${PORTSDIR}/math/jeuclid \
|
|
|
|
${JAVALIBDIR}/commons-io.jar:${PORTSDIR}/devel/jakarta-commons-io \
|
|
|
|
${JAVALIBDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons \
|
|
|
|
${JAVALIBDIR}/xml-apis-ext.jar:${PORTSDIR}/textproc/xml-commons \
|
|
|
|
${JAVALIBDIR}/avalon-framework.jar:${PORTSDIR}/devel/avalon-framework \
|
2010-03-02 10:05:01 +01:00
|
|
|
${LOCALBASE}/share/xsl/docbook/javahelp/javahelp.xsl:${PORTSDIR}/textproc/docbook-xsl \
|
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt \
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
${JAVALIBDIR}/jhdf5.jar:${PORTSDIR}/science/hdf-java \
|
|
|
|
${JAVALIBDIR}/commons-beanutils.jar:${PORTSDIR}/java/jakarta-commons-beanutils
|
|
|
|
|
|
|
|
# Can't use USE_ANT because it overrides do-build target
|
|
|
|
BUILD_DEPENDS+= ${GUI_DEPENDS} \
|
|
|
|
ant:${PORTSDIR}/devel/apache-ant \
|
2012-06-03 02:59:41 +02:00
|
|
|
swig:${PORTSDIR}/devel/swig13
|
2010-02-25 03:09:17 +01:00
|
|
|
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
RUN_DEPENDS+= ${GUI_DEPENDS}
|
2010-02-25 03:09:17 +01:00
|
|
|
|
|
|
|
USE_JAVA= yes
|
2012-12-10 14:43:43 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
# bsdjava (ie java/jdk16) doesn't have some "extra" classes that aren't in
|
|
|
|
# the standard java. namespace, but are required by scilab, such as
|
|
|
|
# javax.xml.bind.annotation.XmlSeeAlso
|
2012-12-10 17:49:34 +01:00
|
|
|
JAVA_VENDOR= openjdk
|
2010-02-25 03:09:17 +01:00
|
|
|
JAVA_BUILD= yes
|
|
|
|
JAVA_RUN= yes
|
|
|
|
USE_XORG= x11
|
|
|
|
|
2010-03-02 10:05:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-jdk=${JAVA_HOME} \
|
2010-12-23 20:39:09 +01:00
|
|
|
--with-docbook=${LOCALBASE}/share/xsl/docbook \
|
2012-03-21 01:34:23 +01:00
|
|
|
--enable-build-help \
|
|
|
|
--enable-build-swig
|
2011-08-23 10:28:05 +02:00
|
|
|
PLIST_SUB+= WITHOUT_GUI="@comment "
|
2010-02-25 03:09:17 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MHELP}
|
2010-12-23 20:39:09 +01:00
|
|
|
ALL_TARGET= all doc
|
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MFFTW}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --without-fftw
|
|
|
|
.else
|
2011-10-17 12:08:33 +02:00
|
|
|
LIB_DEPENDS+= fftw3:${PORTSDIR}/math/fftw3
|
2010-02-25 03:09:17 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MPVM}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --without-pvm
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= pvm:${PORTSDIR}/net/pvm
|
|
|
|
RUN_DEPENDS+= pvm:${PORTSDIR}/net/pvm
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-pvm-include=${LOCALBASE}/include \
|
|
|
|
--with-pvm-library=${LOCALBASE}/lib
|
|
|
|
|
|
|
|
CONFIGURE_ENV= PVM_ROOT=${LOCALBASE} \
|
|
|
|
PVMGETARCH=${LOCALBASE}/lib/pvm/lib/pvmgetarch
|
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MUMFPACK}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --without-umfpack
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= amd.1:${PORTSDIR}/math/suitesparse
|
|
|
|
CONFIGURE_ARGS+= --with-umfpack-include=${LOCALBASE}/include \
|
|
|
|
--with-umfpack-library=${LOCALBASE}/lib
|
2004-02-25 11:04:41 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MMATIO}
|
2010-02-25 03:09:17 +01:00
|
|
|
CONFIGURE_ARGS+= --without-matio
|
|
|
|
.else
|
2010-03-02 10:05:01 +01:00
|
|
|
LIB_DEPENDS+= matio.1:${PORTSDIR}/math/matio
|
2010-02-25 03:09:17 +01:00
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MOCAML}
|
2011-05-20 08:04:59 +02:00
|
|
|
CONFIGURE_ARGS+= --without-modelica
|
2010-04-30 10:54:40 +02:00
|
|
|
PLIST_SUB+= OCAML="@comment "
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ocaml:${PORTSDIR}/lang/ocaml
|
|
|
|
RUN_DEPENDS+= ocaml:${PORTSDIR}/lang/ocaml
|
|
|
|
PLIST_SUB+= OCAML=""
|
|
|
|
.endif
|
|
|
|
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-NOPORTDOCS
|
2010-10-18 12:00:24 +02:00
|
|
|
.endif
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
|
2012-06-06 22:49:07 +02:00
|
|
|
post-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}/thirdparty
|
|
|
|
@${UNZIP_CMD} ${DISTDIR}/${SAXON_DISTFILE} saxon.jar -d ${WRKSRC}/thirdparty
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2012-06-06 22:49:07 +02:00
|
|
|
@${CP} ${DISTDIR}/${JGRAPHX_JAR} ${WRKSRC}/thirdparty/jgraphx.jar
|
|
|
|
.endif
|
|
|
|
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
post-patch:
|
|
|
|
@# Configure fixes
|
|
|
|
@${REINPLACE_CMD} -e 's|-ldl | |' ${WRKSRC}/configure
|
2011-08-23 10:28:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lumfpack|-lumfpack -lamd -lcholmod -lcolamd $$LAPACK_LIBS $$BLAS_LIBS|g' ${WRKSRC}/configure
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|TCLTK_LIBS=" -ldl"|TCLTK_LIBS=" "|' ${WRKSRC}/configure
|
2011-08-04 09:23:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|"x=" ==|"x" =|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|"x" ==|"x" =|g' ${WRKSRC}/configure
|
2012-03-21 01:34:23 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|sparc64-\*-netbsd\*|amd64-\*-freebsd\*|' ${WRKSRC}/configure
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
@# Build fixes
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(CFLAGS:-O%=)|-I${LOCALBASE}/include -L${LOCALBASE}/lib|' ${WRKSRC}/modules/elementary_functions/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|freebsd|__FreeBSD__|g' ${WRKSRC}/modules/sparse/includes/spConfig.h
|
|
|
|
@${REINPLACE_CMD} -e 's|exp10(|pow(10., |g' ${WRKSRC}/modules/graphics/src/c/Format.c \
|
2010-04-30 10:54:40 +02:00
|
|
|
${WRKSRC}/modules/graphics/src/c/getHandleProperty/set_log_flags_property.c
|
2006-03-22 01:37:53 +01:00
|
|
|
@# malloc.h -> stdlib.h conversions
|
|
|
|
@${GREP} -lr "<malloc.h>" ${WRKSRC} \
|
2003-04-04 06:58:31 +02:00
|
|
|
| ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's/[<"]malloc.h[>"]/<stdlib.h>/'
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
@# Install fixes
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' ${WRKSRC}/Makefile.in
|
|
|
|
@# Run fixes
|
|
|
|
@${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|' ${WRKSRC}/etc/librarypath.xml
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/etc/librarypath.xml
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
@# Configure fixes
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/lib/java|${JAVALIBDIR}|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/lib64/jni|${LOCALBASE}/lib/|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|$$jardir/batik-all.jar|${LOCALBASE}/share/java/batik/lib/batik-all.jar|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|$$jardir/fop.jar|${LOCALBASE}/share/java/fop/build/fop.jar|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|$$jardir/jeuclid-core*.jar|${LOCALBASE}/share/java/jeuclid/repo/jeuclid-core*.jar|' ${WRKSRC}/configure
|
2011-11-01 18:19:20 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|jrosetta-API.jar|jrosetta-api.jar|' \
|
|
|
|
${WRKSRC}/configure
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
@# Run fixes
|
|
|
|
@${REINPLACE_CMD} -e 's|%%JAVALIBDIR%%|${JAVALIBDIR}|' ${WRKSRC}/etc/librarypath.xml
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/etc/librarypath.xml
|
|
|
|
@${REINPLACE_CMD} -e 's|%%JAVA_HOME%%|${JAVA_HOME}|' ${WRKSRC}/bin/scilab \
|
|
|
|
${WRKSRC}/bin/scilab-adv-cli ${WRKSRC}/bin/scilab-cli
|
2011-05-20 08:04:59 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/scilab|${DATADIR}|' ${WRKSRC}/desktop/scilab.desktop
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/scilab-cli|${DATADIR}|' \
|
2011-08-23 10:28:05 +02:00
|
|
|
${WRKSRC}/desktop/scilab-adv-cli.desktop ${WRKSRC}/desktop/scilab-cli.desktop
|
2012-03-21 01:34:23 +01:00
|
|
|
.if ${OSVERSION} < 900000 && ${ARCH} == "amd64"
|
|
|
|
@# Avoids segfault when building help
|
|
|
|
@${REINPLACE_CMD} 's|JIT|NONE|' ${WRKSRC}/etc/jvm_options.xml
|
|
|
|
.endif
|
2011-08-23 10:28:05 +02:00
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -e '/^check-local:/,/^$$/s/scilab-adv-cli/scilab-cli/g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2005-06-07 22:49:04 +02:00
|
|
|
.endif
|
2002-01-30 06:59:03 +01:00
|
|
|
|
2001-10-03 16:44:01 +02:00
|
|
|
pre-install:
|
2010-12-23 20:39:09 +01:00
|
|
|
@${MKDIR} ${DATADIR}/.atoms
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
2010-09-04 14:31:51 +02:00
|
|
|
@${MKDIR} ${DATADIR}/modules && ${INSTALL_DATA} ${DISTDIR}/${JGRAPHX_JAR} ${DATADIR}/modules/jgraphx.jar
|
2010-12-23 20:39:09 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|${WRKSRC}/thirdparty/jgraphx.jar|${DATADIR}/modules/jgraphx.jar|g' ${WRKSRC}/etc/classpath.xml
|
2010-10-18 12:00:24 +02:00
|
|
|
.endif
|
1997-06-18 14:14:52 +02:00
|
|
|
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
post-install:
|
2011-08-23 10:28:05 +02:00
|
|
|
@# Remove empty dirs in DATADIR/modules - they will be removed by the
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
@# toolbox uninstaller otherwise if 3rd party toolboxes are used
|
|
|
|
@${FIND} ${DATADIR}/modules -type d -empty -delete
|
|
|
|
@# plist for include/scilab
|
|
|
|
@${FIND} -s ${PREFIX}/include/scilab -not -type d | ${SORT} | \
|
|
|
|
${SED} -e 's#^${PREFIX}/##' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/include/scilab -type d | ${SORT} -r | \
|
|
|
|
${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
@# plist for lib/scilab
|
|
|
|
@${FIND} -s ${PREFIX}/lib/scilab -not -type d | ${SORT} | \
|
|
|
|
${SED} -e 's#^${PREFIX}/##' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${PREFIX}/lib/scilab -type d | ${SORT} -r | \
|
|
|
|
${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
@# plist for share/scilab EXCEPT:
|
|
|
|
@# contrib and .atoms (3rd party toolboxes)
|
|
|
|
@${FIND} -s ${DATADIR} -not -type d -not -path ${DATADIR}/contrib\* | \
|
|
|
|
${SORT} | ${SED} -e 's#^${PREFIX}/##' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${DATADIR} -type d -not -path ${DATADIR}/contrib\* \
|
|
|
|
-not -path ${DATADIR}/.atoms\* -not -path ${DATADIR} | \
|
|
|
|
${SORT} -r | ${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/share/scilab 2>/dev/null || true" >> ${TMPPLIST}
|
2012-12-17 21:38:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MGUI}
|
2011-08-23 10:28:05 +02:00
|
|
|
@${TOUCH} ${DATADIR}/contrib/xcos_toolbox_skeleton/images/h5/.keep_me
|
|
|
|
.endif
|
|
|
|
|
|
|
|
check test: build
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
|
|
|
|
${MAKE_ARGS} check
|
Update to 5.3.0
Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x
port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for
consistency among 5.2.x versions, since I didn't expose the knob through
OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the
JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
to whatever was used to build the port. This seems to correct occasional
crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
These directories vary quite a bit depending on what options are set but
should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done
unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not
available for FreeBSD. It tries to download a list of available packages
from the Scilab website (based on uname). There is no list for FreeBSD and
it HTTP 404's. Scilab misinterprets this and says "Please connect to the
Internet", which is a bit misleading. Patch to indicate that this will never
work. I considered faking the uname to Linux, but there are no RPMs in ports
for math-type things, like fortran, blas/lapack, etc. so I doubt anything
would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building
as root
PR: ports/153274
Submitted by: Rob Farmer (maintainer)
2010-12-19 09:51:20 +01:00
|
|
|
|
2010-02-25 03:09:17 +01:00
|
|
|
.include <bsd.port.mk>
|