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
|
2004-11-22 00:12:17 +00:00
|
|
|
PORTVERSION= 2.1.63
|
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
|
1995-05-02 07:18:21 +00:00
|
|
|
|
1999-05-12 23:27:28 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-12-11 21:50:01 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= "Does not compile on FreeBSD 4.x"
|
2005-03-27 02:00:59 +00:00
|
|
|
.else
|
|
|
|
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
2004-12-11 21:50:01 +00:00
|
|
|
.endif
|
|
|
|
|
1999-05-12 23:27:28 +00:00
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.else
|
|
|
|
GNU_HOST= ${ARCH}-portbld-freebsdaout${OSREL}
|
|
|
|
.endif
|
2003-06-08 10:09:59 +00:00
|
|
|
OCTAVE_VERSION= ${PORTVERSION}
|
1999-05-12 23:27:28 +00:00
|
|
|
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
|
|
|
|
|
2003-12-07 02:07:58 +00:00
|
|
|
BLAS_LIBS= "-L${LOCALBASE}/lib -lf77blas -lcblas -latlas"
|
1995-05-02 07:18:21 +00:00
|
|
|
USE_GMAKE= yes
|
1999-05-12 23:27:28 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-06-15 10:28:37 +00:00
|
|
|
|
2005-02-10 07:43:49 +00:00
|
|
|
CONIGURE_ARGS= --host=${GNU_HOST} --with-fftw --with-blas=${BLAS_LIBS} \
|
|
|
|
--with-lapack=-lalapack --enable-shared
|
2004-12-05 02:58:07 +00:00
|
|
|
|
2003-06-09 17:19:23 +00:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
|
2003-12-07 02:07:58 +00:00
|
|
|
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
FFLAGS="${FFLAGS}"
|
1999-05-12 23:27:28 +00:00
|
|
|
|
|
|
|
.if ${OSVERSION} < 400004
|
|
|
|
CONFIGURE_ARGS+= --with-f2c
|
|
|
|
.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
|
|
|
|
|
2003-06-09 17:19:23 +00:00
|
|
|
MAN1= octave.1 octave-bug.1 mkoctfile.1 octave-config.1
|
1995-05-02 07:18:21 +00:00
|
|
|
|
2003-06-08 10:09:59 +00:00
|
|
|
post-extract:
|
|
|
|
@${RM} -f ${WRKSRC}/doc/interpreter/octave.info*
|
|
|
|
@${RM} -f ${WRKSRC}/doc/liboctave/liboctave.info*
|
1997-01-20 22:13:57 +00:00
|
|
|
post-install:
|
2004-12-04 22:47:45 +00:00
|
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g ; \
|
|
|
|
s,%%OCTAVE_VERSION%%,${OCTAVE_VERSION},g' \
|
|
|
|
${FILESDIR}/octave > ${WRKDIR}/octave
|
2003-07-23 23:41:24 +00:00
|
|
|
${RM} ${PREFIX}/bin/octave
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info
|
1999-05-12 23:27:28 +00:00
|
|
|
install-info --entry='* Octave: (octave). Interactive language for numerical computations.' $(PREFIX)/info/octave.info $(PREFIX)/info/dir
|
|
|
|
install-info --entry='* LibOctave: (liboctave). C++ class library for Octave.' $(PREFIX)/info/liboctave.info $(PREFIX)/info/dir
|
2003-06-08 10:09:59 +00:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
@${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
|
|
|
|
$(INSTALL_DATA) ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
1997-01-20 22:13:57 +00:00
|
|
|
.endif
|
|
|
|
|
1999-05-12 23:27:28 +00:00
|
|
|
.include <bsd.port.post.mk>
|