2012-06-21 09:56:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.59 2012/06/21 13:56:57 sthen Exp $
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2006-05-24 01:03:51 -04:00
|
|
|
# vax: no IEEE arithmetic
|
|
|
|
# sparc: fPIC version of libgcc.a needed but not available
|
|
|
|
NOT_FOR_ARCHS= vax sparc
|
2005-11-02 13:20:58 -05:00
|
|
|
|
2007-09-15 14:44:36 -04:00
|
|
|
COMMENT= high-level language for numerical computations
|
2005-11-02 13:20:58 -05:00
|
|
|
|
2009-04-14 14:22:59 -04:00
|
|
|
VERSION= 3.0.5
|
2001-07-15 14:07:15 -04:00
|
|
|
DISTNAME= octave-${VERSION}
|
2012-06-21 09:56:57 -04:00
|
|
|
REVISION= 9
|
2005-11-02 13:20:58 -05:00
|
|
|
CATEGORIES= math
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2007-06-20 04:51:42 -04:00
|
|
|
SHARED_LIBS= cruft 5.0 \
|
2008-07-30 15:47:09 -04:00
|
|
|
octave 5.0 \
|
2007-06-20 04:51:42 -04:00
|
|
|
octinterp 4.0
|
2005-12-24 15:05:27 -05:00
|
|
|
|
2008-10-01 01:16:07 -04:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/octave/
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2006-04-01 14:21:57 -05:00
|
|
|
MAINTAINER= Steven Mestdagh <steven@openbsd.org>
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2008-01-21 13:30:13 -05:00
|
|
|
# GPL v3
|
2001-07-15 14:07:15 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-07-18 10:33:39 -04:00
|
|
|
WANTLIB= c m ncurses readline stdc++ z ${MODFORTRAN_WANTLIB} \
|
2010-11-19 02:23:05 -05:00
|
|
|
fftw3>=3 lapack>=3 blas>=1 amd umfpack pcre>=1 curl>=6
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2009-04-14 14:22:59 -04:00
|
|
|
MASTER_SITES= ftp://ftp.octave.org/pub/octave/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/Octave/ \
|
|
|
|
ftp://neacm.fe.up.pt/pub/octave/
|
2005-11-02 13:20:58 -05:00
|
|
|
|
2010-05-29 11:28:18 -04:00
|
|
|
MODULES= fortran
|
2010-10-23 11:09:57 -04:00
|
|
|
MODFORTRAN_COMPILER = g77
|
2010-05-29 11:28:18 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS} \
|
2010-11-19 02:23:05 -05:00
|
|
|
devel/desktop-file-utils
|
|
|
|
RUN_DEPENDS= devel/gmake \
|
|
|
|
devel/desktop-file-utils
|
2010-05-29 11:28:18 -04:00
|
|
|
LIB_DEPENDS= ${MODFORTRAN_LIB_DEPENDS} \
|
2010-11-19 02:23:05 -05:00
|
|
|
math/fftw3 \
|
|
|
|
math/lapack \
|
|
|
|
math/blas \
|
|
|
|
math/amd \
|
|
|
|
math/umfpack \
|
|
|
|
devel/pcre \
|
|
|
|
net/curl
|
2001-07-15 14:07:15 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-10-18 16:52:05 -04:00
|
|
|
USE_GROFF = Yes
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2012-03-29 09:38:12 -04:00
|
|
|
SEPARATE_BUILD= Yes
|
2005-11-02 13:20:58 -05:00
|
|
|
CONFIGURE_STYLE=autoconf
|
2007-06-20 04:51:42 -04:00
|
|
|
AUTOCONF_VERSION=2.61
|
2005-11-20 12:44:20 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--with-fftw \
|
|
|
|
--without-mpi \
|
|
|
|
--without-hdf5
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2006-05-24 01:03:51 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2008-01-21 13:30:13 -05:00
|
|
|
F77=${FC} \
|
|
|
|
SED=/usr/bin/sed
|
2005-12-24 15:05:27 -05:00
|
|
|
MAKE_ENV= LIBcruft_VERSION=${LIBcruft_VERSION} \
|
|
|
|
LIBoctave_VERSION=${LIBoctave_VERSION} \
|
|
|
|
LIBoctinterp_VERSION=${LIBoctinterp_VERSION}
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2008-02-12 09:44:06 -05:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CONFIGURE_ENV+= FFLAGS="${FFLAGS}"
|
|
|
|
.endif
|
|
|
|
|
2005-12-24 15:05:27 -05:00
|
|
|
# needed to build on amd64
|
2010-07-18 14:49:01 -04:00
|
|
|
GCC_ARCH= ${MACHINE_ARCH}-unknown-openbsd${OSREV}
|
2005-11-02 13:20:58 -05:00
|
|
|
GNU_ARCH= ${GCC_ARCH:S/amd64/x86_64/}
|
2005-12-24 15:05:27 -05:00
|
|
|
SUBST_VARS= GNU_ARCH VERSION
|
2005-11-02 13:20:58 -05:00
|
|
|
|
|
|
|
# need to use fpic version of libgcc.a
|
|
|
|
post-configure:
|
|
|
|
@perl -pi -e 's#(gcc-lib/${GCC_ARCH}/[\d.]+)\s#\1/fpic #' \
|
|
|
|
${WRKBUILD}/Makeconf
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
.ifmake regress
|
|
|
|
# some tests need HOME to be writable
|
|
|
|
PORTHOME= /tmp
|
|
|
|
# define some user for tilde expansion test
|
|
|
|
MAKE_ENV+= USER=nobody
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-regress:
|
|
|
|
@rm -f /tmp/oct-*
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
# fix ls-R and install HTML documentation
|
2007-06-20 04:51:42 -04:00
|
|
|
HTMLDOCS= interpreter liboctave
|
2001-07-15 14:07:15 -04:00
|
|
|
post-install:
|
|
|
|
@cd ${PREFIX}/share/octave && \
|
2005-11-02 13:20:58 -05:00
|
|
|
perl -pi -e "s,${PREFIX},${TRUEPREFIX}," ls-R
|
2001-07-15 14:07:15 -04:00
|
|
|
@cd ${PREFIX}/libexec/octave && \
|
2005-11-02 13:20:58 -05:00
|
|
|
perl -pi -e "s,${PREFIX},${TRUEPREFIX}," ls-R
|
2005-11-20 12:44:20 -05:00
|
|
|
.for d in ${HTMLDOCS}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/octave/${d}
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/doc/${d}/HTML/*.html \
|
|
|
|
${PREFIX}/share/doc/octave/${d}
|
|
|
|
.endfor
|
2001-07-15 14:07:15 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|