2010-02-12 01:41:48 +01:00
|
|
|
# $NetBSD: Makefile,v 1.86 2010/02/12 00:41:48 asau Exp $
|
1998-11-22 20:45:08 +01:00
|
|
|
|
2005-04-01 12:15:46 +02:00
|
|
|
DISTNAME= octave-${OCTAVE_VER}
|
1998-11-22 20:45:08 +01:00
|
|
|
CATEGORIES= math
|
2008-05-02 10:50:46 +02:00
|
|
|
MASTER_SITES= ftp://ftp.octave.org/pub/octave/
|
2003-07-02 22:58:34 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1998-11-26 00:56:53 +01:00
|
|
|
|
2005-04-01 12:15:46 +02:00
|
|
|
MAINTAINER= adam@NetBSD.org
|
2006-10-04 23:47:16 +02:00
|
|
|
HOMEPAGE= http://www.octave.org/
|
2005-04-01 12:15:46 +02:00
|
|
|
COMMENT= High-level language, intended for numerical computations
|
1998-11-26 00:56:53 +01:00
|
|
|
|
2005-04-01 12:15:46 +02:00
|
|
|
BUILD_DEPENDS+= bison>=1.875:../../devel/bison
|
|
|
|
BUILD_DEPENDS+= gperf>=2.7:../../devel/gperf
|
|
|
|
DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
|
1998-11-22 20:45:08 +01:00
|
|
|
|
2010-02-12 01:41:48 +01:00
|
|
|
OCTAVE_VER= 3.2.4
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
CONFLICTS+= octave-2.*
|
2005-04-01 12:15:46 +02:00
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "arm32")
|
|
|
|
BROKEN= Internal compiler error occurs on arm32 (even with gcc-2.95.3)
|
|
|
|
.endif
|
2001-03-29 23:21:36 +02:00
|
|
|
|
2009-01-27 13:04:14 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2005-04-01 12:15:46 +02:00
|
|
|
USE_GNU_READLINE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2009-10-12 11:28:02 +02:00
|
|
|
USE_TOOLS+= autoconf gsed gmake makeinfo perl pkg-config
|
2005-04-01 12:15:46 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2005-11-29 14:11:05 +01:00
|
|
|
GCC_REQD+= 3.0
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
USE_LANGUAGES= c c++ fortran
|
2005-04-01 12:15:46 +02:00
|
|
|
|
|
|
|
# needed for loading of shared objects such as those in the
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
# octave-forge package or user written ones compiled with mkoctfile
|
2005-04-01 12:15:46 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-dl
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
# shared libraries are handled automatically in pkgsrc
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
|
|
|
CONFIGURE_ARGS+= --disable-shared
|
|
|
|
|
|
|
|
# trick pkgsrc into real gsed, needed for "mkf77def"
|
|
|
|
TOOLS_PLATFORM.gsed= #empty
|
2005-04-01 12:15:46 +02:00
|
|
|
|
|
|
|
.include "options.mk"
|
1998-11-22 20:45:08 +01:00
|
|
|
|
2005-05-30 20:12:51 +02:00
|
|
|
GNU_PLATFORM_DIR!= ${.CURDIR}/../../mk/gnu-config/config.sub ${MACHINE_GNU_PLATFORM}
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
PLIST_SUBST+= GNU_PLATFORM_DIR=${GNU_PLATFORM_DIR}
|
2005-05-30 20:12:51 +02:00
|
|
|
|
2007-10-05 18:31:33 +02:00
|
|
|
INFO_FILES= yes
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
OCTAVE_DOC= faq/Octave-FAQ.ps liboctave/liboctave.ps \
|
|
|
|
refcard/refcard-a4.ps refcard/refcard-legal.ps \
|
|
|
|
refcard/refcard-letter.ps
|
2005-04-01 12:15:46 +02:00
|
|
|
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
INSTALLATION_DIRS+= share/octave/${OCTAVE_VER}/doc
|
|
|
|
UNWRAP_FILES+= mkoctfile octave-bug src/oct-conf.h
|
1998-11-22 20:45:08 +01:00
|
|
|
|
2009-07-23 15:43:25 +02:00
|
|
|
# Doesn't work yet, needs to sort out libtool shared libraries handling:
|
|
|
|
#TEST_TARGET= check
|
|
|
|
|
2009-10-12 11:28:02 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && autoconf
|
|
|
|
|
2001-05-16 23:46:08 +02:00
|
|
|
post-extract:
|
2007-10-05 18:31:33 +02:00
|
|
|
find ${WRKSRC}/doc -type f -name '*.info*' -print | xargs rm -f
|
|
|
|
mkdir ${WRKSRC}/src/pic
|
2005-04-01 12:15:46 +02:00
|
|
|
|
|
|
|
# substitute in the real path to various bits of the toolchain because
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
# mkoctfile will be used potentially by users and it needs to point at the same
|
|
|
|
# compilers as were used in building octave. We also fix up the path to sed
|
|
|
|
# otherwise we end up with the buildlink directory in mkoctfile
|
2005-04-01 12:15:46 +02:00
|
|
|
post-build:
|
2007-10-05 18:31:33 +02:00
|
|
|
mv ${WRKSRC}/mkoctfile ${WRKSRC}/mkoctfile.bak
|
|
|
|
sed -e 's;"${CC}";"${CCPATH}";g' \
|
2005-04-01 12:15:46 +02:00
|
|
|
-e 's;"${CXX}";"${CXXPATH}";g' \
|
|
|
|
-e 's;"${FC}";"${FCPATH}";g' \
|
|
|
|
-e 's@^:[ \t]*\$${SED=.*@: \$$\{SED="${SED}"\}@g' \
|
|
|
|
${WRKSRC}/mkoctfile.bak > ${WRKSRC}/mkoctfile
|
2007-10-05 18:31:33 +02:00
|
|
|
chmod a+x ${WRKSRC}/mkoctfile
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
(cd ${WRKSRC}/doc/interpreter && gmake octave.ps)
|
2001-05-16 23:46:08 +02:00
|
|
|
|
1998-11-22 20:45:08 +01:00
|
|
|
post-install:
|
2006-03-09 16:40:20 +01:00
|
|
|
cd ${WRKSRC}/doc/liboctave; \
|
2006-03-20 19:15:37 +01:00
|
|
|
for f in liboctave.info liboctave.info-[0-9]*; do \
|
2006-03-09 16:40:20 +01:00
|
|
|
${TEST} ! -f "$$f" || \
|
2009-01-27 13:04:14 +01:00
|
|
|
${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR}; \
|
2006-03-09 16:40:20 +01:00
|
|
|
done
|
2005-04-01 12:15:46 +02:00
|
|
|
.for f in ${OCTAVE_DOC}
|
2009-01-27 13:04:14 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/octave/${OCTAVE_VER}/doc
|
2005-04-01 12:15:46 +02:00
|
|
|
.endfor
|
2003-11-10 02:04:05 +01:00
|
|
|
|
2005-04-01 12:15:46 +02:00
|
|
|
.include "../../audio/libsndfile/buildlink3.mk"
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
Changes 3.0.0:
* Compatibility with Matlab graphics is much better now. We now
have some graphics features that work like Matlab's Handle
Graphics (tm):
* The way Octave handles search paths has changed.
* Previous versions of Octave had a number of built-in variables to
control warnings (for example, warn_divide_by_zero). These
variables have been replaced by warning identifiers that are used
with the warning function to control the state of warnings.
* All built-in variables have been converted to functions.
* For compatibility with Matlab, the output order of Octave's
"system" function has changed.
* For compatibility with Matlab, the output of Octave's fsolve
function has been changed.
* For compatibility with Matlab, normcdf, norminv, normpdf, and
normrnd have been modified to compute distributions using the
standard deviation instead of the variance.
* For compatibility with Matlab, gamcdf, gaminv, gampdf, gamrnd,
expcdf, expinv, exppdf and exprnd have been modified to compute
the distributions using the standard scale factor rather than
one over the scale factor.
2008-01-11 02:23:43 +01:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2005-04-01 12:15:46 +02:00
|
|
|
.include "../../math/blas/buildlink3.mk"
|
|
|
|
.include "../../math/fftw/buildlink3.mk"
|
|
|
|
.include "../../math/lapack/buildlink3.mk"
|
2009-04-12 22:46:20 +02:00
|
|
|
.include "../../www/curl/buildlink3.mk"
|
2009-07-19 02:33:10 +02:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
|
2009-10-12 11:28:02 +02:00
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2001-01-26 23:54:00 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|