2005-11-20 12:44:20 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2005/11/20 17:44:20 naddy Exp $
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
NOT_FOR_ARCHS= vax
|
|
|
|
|
|
|
|
COMMENT= "high-level language for numerical computations"
|
|
|
|
|
2005-11-20 12:44:20 -05:00
|
|
|
VERSION= 2.1.72
|
2001-07-15 14:07:15 -04:00
|
|
|
DISTNAME= octave-${VERSION}
|
2005-11-02 13:20:58 -05:00
|
|
|
CATEGORIES= math
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
HOMEPAGE= http://www.octave.org/
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
MAINTAINER= Steven Mestdagh <steven.mestdagh@esat.kuleuven.be>
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
# GNU GPL
|
2001-07-15 14:07:15 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
WANTLIB= c g2c m ncurses readline stdc++
|
2001-07-15 14:07:15 -04:00
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
MASTER_SITES= ftp://ftp.octave.org/pub/octave/ \
|
2005-11-20 12:44:20 -05:00
|
|
|
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/ \
|
2005-11-02 13:20:58 -05:00
|
|
|
ftp://neacm.fe.up.pt/pub/octave/ \
|
2005-11-20 12:44:20 -05:00
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/Octave/
|
2005-11-02 13:20:58 -05:00
|
|
|
|
|
|
|
MODULES= gcc3
|
|
|
|
MODGCC3_ARCHES= alpha sparc
|
|
|
|
MODGCC3_LANGS= C++
|
2005-11-20 12:44:20 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS= fftw3.3::math/fftw3
|
2001-10-02 08:27:11 -04:00
|
|
|
REGRESS_DEPENDS=::devel/dejagnu
|
2001-07-15 14:07:15 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2005-11-02 13:20:58 -05:00
|
|
|
SEPARATE_BUILD= simple
|
|
|
|
CONFIGURE_STYLE=autoconf
|
|
|
|
AUTOCONF_VERSION=2.59
|
2005-11-20 12:44:20 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--with-fftw \
|
|
|
|
--without-mpi \
|
|
|
|
--without-hdf5
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-11-02 13:20:58 -05:00
|
|
|
MAKE_ENV= SHLIB_VER=${SHLIB_VER}
|
2001-07-15 14:07:15 -04:00
|
|
|
|
|
|
|
# need shared library version for machines which support shared libraries.
|
2005-11-02 13:20:58 -05:00
|
|
|
SHLIB_VER= 2.0
|
|
|
|
GCC_ARCH= ${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}
|
|
|
|
GNU_ARCH= ${GCC_ARCH:S/amd64/x86_64/}
|
|
|
|
SUBST_VARS= GNU_ARCH VERSION SHLIB_VER
|
|
|
|
|
|
|
|
# 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
|
2005-11-20 12:44:20 -05:00
|
|
|
HTMLDOCS= interpreter liboctave faq
|
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>
|