1995-05-02 07:18:21 +00:00
|
|
|
# New ports collection makefile for: octave
|
1998-09-08 14:32:42 +00:00
|
|
|
# Date created: 8 September 1998
|
1997-01-20 22:13:57 +00:00
|
|
|
# Whom: chuckr@freebsd.org
|
1995-05-02 07:18:21 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1995-05-02 07:18:21 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= octave
|
2006-07-01 06:56:34 +00:00
|
|
|
PORTVERSION= 2.1.73
|
1997-10-15 23:20:44 +00:00
|
|
|
CATEGORIES= math
|
2003-06-09 17:19:23 +00:00
|
|
|
MASTER_SITES= ftp://ftp.octave.org/pub/octave/bleeding-edge/ \
|
2000-06-23 02:29:31 +00:00
|
|
|
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/bleeding-edge/
|
1995-05-02 07:18:21 +00:00
|
|
|
|
2003-06-08 00:30:49 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= High-level interactive language for numerical computations
|
1995-05-02 07:18:21 +00:00
|
|
|
|
1999-09-11 00:46:39 +00:00
|
|
|
BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
|
|
|
|
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
|
2003-06-09 17:36:16 +00:00
|
|
|
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw \
|
2004-11-22 00:12:17 +00:00
|
|
|
atlas.1:${PORTSDIR}/math/atlas
|
2003-06-09 17:36:16 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2004-12-03 07:07:41 +00:00
|
|
|
USE_PERL5_BUILD=yes
|
2005-05-26 17:32:40 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
1995-05-02 07:18:21 +00:00
|
|
|
|
2005-05-26 17:32:40 +00:00
|
|
|
INFO= octave liboctave
|
|
|
|
MAN1= octave.1 octave-bug.1 mkoctfile.1 octave-config.1
|
2004-12-11 21:50:01 +00:00
|
|
|
|
2003-06-08 10:09:59 +00:00
|
|
|
OCTAVE_VERSION= ${PORTVERSION}
|
2005-05-26 17:32:40 +00:00
|
|
|
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
|
1999-05-12 23:27:28 +00:00
|
|
|
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
|
|
|
|
|
2005-05-26 17:32:40 +00:00
|
|
|
F77?= f77
|
2004-12-05 02:58:07 +00:00
|
|
|
|
2005-05-26 17:32:40 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
|
2003-12-07 02:07:58 +00:00
|
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
2005-05-26 17:32:40 +00:00
|
|
|
F77="${F77}" \
|
2003-12-07 02:07:58 +00:00
|
|
|
FFLAGS="${FFLAGS}"
|
2005-05-26 17:32:40 +00:00
|
|
|
CONFIGURE_ARGS= --host=${GNU_HOST} \
|
|
|
|
--with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \
|
|
|
|
--with-lapack=-lalapack \
|
|
|
|
--enable-shared
|
|
|
|
|
|
|
|
SUB_FILES= octave
|
|
|
|
SUB_LIST= OCTAVE_VERSION="${OCTAVE_VERSION}"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
1999-05-12 23:27:28 +00:00
|
|
|
|
2005-05-26 17:32:40 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= "Does not compile on FreeBSD 4.x"
|
1999-05-12 23:27:28 +00:00
|
|
|
.endif
|
|
|
|
|
2003-06-08 08:22:30 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
2003-06-08 05:15:28 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-readline
|
|
|
|
.endif
|
|
|
|
|
1997-01-20 22:13:57 +00:00
|
|
|
post-install:
|
2006-07-09 02:02:27 +00:00
|
|
|
${MV} ${PREFIX}/bin/octave-${OCTAVE_VERSION} ${PREFIX}/libexec/octave/${OCTAVE_VERSION}
|
2003-07-23 23:41:24 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin
|
2006-07-09 02:02:27 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin/octave-${OCTAVE_VERSION}
|
2003-07-23 23:41:24 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info
|
2005-05-26 17:32:40 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-06-08 10:09:59 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in faq/Octave-FAQ.ps interpreter/octave.ps liboctave/liboctave.ps \
|
|
|
|
refcard/refcard-a4.ps refcard/refcard-legal.ps refcard/refcard-letter.ps
|
2005-05-26 17:32:40 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
2003-06-08 10:09:59 +00:00
|
|
|
.endfor
|
1997-01-20 22:13:57 +00:00
|
|
|
.endif
|
|
|
|
|
1999-05-12 23:27:28 +00:00
|
|
|
.include <bsd.port.post.mk>
|