mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
Update to 3.0.0, and grab maintainership.
This commit is contained in:
parent
9b29d084c2
commit
f59910605b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=204482
@ -6,69 +6,97 @@
|
||||
#
|
||||
|
||||
PORTNAME= octave
|
||||
PORTVERSION= 2.1.73
|
||||
PORTREVISION= 3
|
||||
PORTVERSION= 3.0.0
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= ftp://ftp.octave.org/pub/octave/bleeding-edge/ \
|
||||
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/bleeding-edge/ \
|
||||
http://neacm.fe.up.pt/pub/octave/bleeding-edge/ \
|
||||
ftp://ftp.lublin.pl/site/octave/bleeding-edge/
|
||||
MASTER_SITES= ftp://ftp.octave.org/pub/octave/ \
|
||||
ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/Octave/bleeding-edge/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= maho@FreeBSD.org
|
||||
COMMENT= High-level interactive language for numerical computations
|
||||
|
||||
BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
|
||||
BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot \
|
||||
${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \
|
||||
${LOCALBASE}/lib/libglpk.a:${PORTSDIR}/math/glpk \
|
||||
gsed:${PORTSDIR}/textproc/gsed \
|
||||
dvips:${PORTSDIR}/print/dvipsk-tetex
|
||||
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
|
||||
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
|
||||
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \
|
||||
hdf5:${PORTSDIR}/science/hdf5 \
|
||||
umfpack.1:${PORTSDIR}/math/suitesparse \
|
||||
qhull:${PORTSDIR}/math/qhull
|
||||
|
||||
LATEST_LINK= octave-devel
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_PERL5_BUILD=yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= ${PREFIX}/lib/octave-${OCTAVE_VERSION}
|
||||
USE_AUTOTOOLS= autoconf:261 autoheader:261
|
||||
|
||||
INFO= octave liboctave
|
||||
MAN1= octave.1 octave-bug.1 mkoctfile.1 octave-config.1
|
||||
|
||||
OCTAVE_VERSION= ${PORTVERSION}
|
||||
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
|
||||
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 600000
|
||||
BUILD_DEPENDS+= info:${PORTSDIR}/print/texinfo
|
||||
BROKEN= Fails to install
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
||||
WITH_ATLAS= yes
|
||||
.endif
|
||||
.if defined(WITH_ATLAS)
|
||||
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
||||
BLAS= -lf77blas -latlas
|
||||
LAPACK= -lalapack
|
||||
.else
|
||||
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
||||
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
||||
BLAS= -lblas
|
||||
LAPACK= -llapack
|
||||
.endif
|
||||
|
||||
USE_FORTRAN= yes
|
||||
|
||||
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
|
||||
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
||||
F77="${F77}" \
|
||||
FFLAGS="${FFLAGS}"
|
||||
OCTAVE_VERSION= ${PORTVERSION}
|
||||
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
|
||||
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
|
||||
INCLUDES= -I${LOCALBASE}/include -I${LOCALBASE}/include/metis
|
||||
MAKE_ENV+= CFLAGS="${CFLAGS} ${INCLUDES}" \
|
||||
CXXFLAGS="${CXXFLAGS} ${INCLUDES}" \
|
||||
CPPFLAGS="${CPPFLAGS} ${INCLUDES}" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
||||
CC="${CC}" \
|
||||
CXX="${CXX}"
|
||||
CONFIGURE_ENV+= GPERF="${LOCALBASE}/bin/gperf" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
||||
CFLAGS="${CFLAGS} ${INCLUDES}" \
|
||||
CXXFLAGS="${CXXFLAGS} ${INCLUDES}" \
|
||||
CPPFLAGS="${CPPFLAGS} ${INCLUDES}" \
|
||||
F77="${FC}" \
|
||||
FFLAGS="${FFLAGS}" \
|
||||
CC="${CC}" \
|
||||
CXX="${CXX}"
|
||||
CONFIGURE_ARGS= --host=${GNU_HOST} \
|
||||
--with-blas="-L${LOCALBASE}/lib ${BLAS}" \
|
||||
--with-lapack="${LAPACK}" \
|
||||
--enable-shared
|
||||
|
||||
SUB_FILES= octave
|
||||
SUB_LIST= OCTAVE_VERSION="${OCTAVE_VERSION}"
|
||||
SUB_LIST= OCTAVE_VERSION="${OCTAVE_VERSION}" GNU_HOST="${GNU_HOST}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
||||
WITH_ATLAS= yes
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ATLAS)
|
||||
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
||||
CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \
|
||||
--with-lapack=-lalapack
|
||||
.else
|
||||
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
||||
CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib -lblas"
|
||||
.endif
|
||||
pre-configure:
|
||||
@cd ${WRKSRC}/scripts ; ${AUTOCONF}
|
||||
|
||||
post-install:
|
||||
${MV} ${PREFIX}/bin/octave-${OCTAVE_VERSION} ${PREFIX}/libexec/octave/${OCTAVE_VERSION}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin/octave-${OCTAVE_VERSION}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info
|
||||
${MV} ${PREFIX}/bin/${PORTNAME}-${PORTVERSION} ${PREFIX}/libexec/${PORTNAME}/${PORTVERSION}/exec/${GNU_HOST}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}-${PORTVERSION}
|
||||
${LN} -fs ${PREFIX}/bin/${PORTNAME}-${PORTVERSION} ${PREFIX}/bin/${PORTNAME}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in faq/Octave-FAQ.ps interpreter/octave.ps liboctave/liboctave.ps \
|
||||
.for file in faq/Octave-FAQ.ps liboctave/liboctave.ps \
|
||||
refcard/refcard-a4.ps refcard/refcard-legal.ps refcard/refcard-letter.ps
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (octave-2.1.73.tar.bz2) = c356475aa06d81a10f8bf27f1a1d27a0
|
||||
SHA256 (octave-2.1.73.tar.bz2) = 8ccaee227c6cad3b5633a904414f17ce73de8eab2abd4d2e6a3972dd878ffbc3
|
||||
SIZE (octave-2.1.73.tar.bz2) = 5790133
|
||||
MD5 (octave-3.0.0.tar.bz2) = d5512acdf60ac04398ff258cbc37f3c4
|
||||
SHA256 (octave-3.0.0.tar.bz2) = f2351eed4f6505993275947802a35ecbc9b7e587ebbb5ee7ba72d54280de4418
|
||||
SIZE (octave-3.0.0.tar.bz2) = 9821575
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/math/octave/files/Attic/octave.in,v 1.2 2006-07-09 02:02:27 maho Exp $
|
||||
# $FreeBSD: /tmp/pcvs/ports/math/octave/files/Attic/octave.in,v 1.3 2007-12-25 03:37:51 maho Exp $
|
||||
|
||||
OCTAVE_EXEC=%%PREFIX%%/libexec/octave/%%OCTAVE_VERSION%%/octave-%%OCTAVE_VERSION%%
|
||||
OCTAVE_EXEC=%%PREFIX%%/libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/octave-%%OCTAVE_VERSION%%
|
||||
LD_LIBRARY_PATH=%%PREFIX%%/lib/octave-%%OCTAVE_VERSION%%; export LD_LIBRARY_PATH
|
||||
|
||||
exec $OCTAVE_EXEC "$@"
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- doc/liboctave/Makefile.in.orig Tue Mar 21 06:10:52 2006
|
||||
+++ doc/liboctave/Makefile.in Sat Jul 1 13:50:50 2006
|
||||
@@ -48,7 +48,7 @@
|
||||
.PHONY: all
|
||||
|
||||
liboctave.info: $(TEXINFO)
|
||||
- -$(MAKEINFO) -I$(srcdir) -I$(srcdir)/.. $<
|
||||
+ -$(MAKEINFO) --force --no-split -I$(srcdir) -I$(srcdir)/.. $<
|
||||
|
||||
liboctave.dvi: $(TEXINFO)
|
||||
-TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2DVI) $<
|
@ -1,20 +0,0 @@
|
||||
--- configure.orig Wed May 7 04:08:03 2003
|
||||
+++ configure Tue Jun 10 01:14:35 2003
|
||||
@@ -700,7 +700,6 @@
|
||||
fi
|
||||
|
||||
ac_tool_prefix=
|
||||
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
||||
|
||||
test "$silent" = yes && exec 6>/dev/null
|
||||
|
||||
@@ -18767,6 +18766,9 @@
|
||||
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
|
||||
|
||||
unwind-prot.o: unwind-prot.cc
|
||||
+ $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
|
||||
+
|
||||
+xdiv.o: xdiv.cc
|
||||
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
|
||||
|
||||
EOF
|
@ -1,14 +0,0 @@
|
||||
--- src/sysdep.cc.orig Sat Jan 4 15:21:29 2003
|
||||
+++ src/sysdep.cc Tue Jun 10 01:23:09 2003
|
||||
@@ -98,7 +98,11 @@
|
||||
#ifndef FP_X_DNML
|
||||
#define FP_X_DNML 0
|
||||
#endif
|
||||
+#if defined(__alpha__)
|
||||
+ fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_UFL|FP_X_IMP));
|
||||
+#else
|
||||
fpsetmask (~(FP_X_OFL|FP_X_INV|FP_X_DZ|FP_X_DNML|FP_X_UFL|FP_X_IMP));
|
||||
+#endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
--- doc/interpreter/Makefile.in.orig Tue Mar 21 06:10:52 2006
|
||||
+++ doc/interpreter/Makefile.in Sat Jul 1 13:52:37 2006
|
||||
@@ -89,7 +89,7 @@
|
||||
@$(top_srcdir)/move-if-change $@.t $@
|
||||
|
||||
octave.info: $(TEXINFO)
|
||||
- -$(MAKEINFO) -I$(srcdir) -I$(srcdir)/.. $<
|
||||
+ -$(MAKEINFO) --no-split -I$(srcdir) -I$(srcdir)/.. $<
|
||||
|
||||
octave.dvi: $(TEXINFO)
|
||||
-TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):" $(TEXI2DVI) $<
|
17
math/octave/files/patch-examples+Makefile.in
Normal file
17
math/octave/files/patch-examples+Makefile.in
Normal file
@ -0,0 +1,17 @@
|
||||
--- examples/Makefile.in~ Wed Dec 14 12:13:54 2005
|
||||
+++ examples/Makefile.in Wed Jul 5 12:59:06 2006
|
||||
@@ -51,10 +51,10 @@
|
||||
rm -f $(DESTDIR)$(imagedir)/$$f; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(imagedir)/$$f; \
|
||||
done
|
||||
- if test -n "$(DESKTOP_FILE_INSTALL)"; then \
|
||||
- $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
|
||||
- --vendor www.octave.org octave.desktop; \
|
||||
- fi
|
||||
+# if test -n "$(DESKTOP_FILE_INSTALL)"; then \
|
||||
+# $(DESKTOP_FILE_INSTALL) --dir=$(DESTDIR)$(datadir)/applications \
|
||||
+# --vendor www.octave.org octave.desktop; \
|
||||
+# fi
|
||||
.PHONY: install install-strip
|
||||
|
||||
tags:
|
10
math/octave/files/patch-libcruft+mkf77def.in
Normal file
10
math/octave/files/patch-libcruft+mkf77def.in
Normal file
@ -0,0 +1,10 @@
|
||||
--- libcruft/mkf77def.in~ Sat Oct 28 08:19:17 2006
|
||||
+++ libcruft/mkf77def.in Wed Jun 27 16:17:36 2007
|
||||
@@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
-SED=${SED:-'sed'}
|
||||
+SED=gsed
|
||||
AWK=${AWK:-'awk'}
|
||||
|
||||
F77_TOLOWER=%F77_APPEND_UNDERSCORE%
|
@ -1,11 +0,0 @@
|
||||
--- mkoctfile.in.orig Sun Mar 27 14:13:29 2005
|
||||
+++ mkoctfile.in Wed May 25 23:00:43 2005
|
||||
@@ -184,7 +184,7 @@
|
||||
-D*)
|
||||
defs="$defs $1"
|
||||
;;
|
||||
- -[lLR]*)
|
||||
+ -[lLR]* | -pthread)
|
||||
ldflags="$ldflags $1"
|
||||
;;
|
||||
-M | --depend)
|
13
math/octave/files/patch-src+Makefile.in
Normal file
13
math/octave/files/patch-src+Makefile.in
Normal file
@ -0,0 +1,13 @@
|
||||
for gendoc part, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30423
|
||||
|
||||
--- src/Makefile.in.orig Sat Sep 30 03:20:15 2006
|
||||
+++ src/Makefile.in Wed Jan 10 19:26:54 2007
|
||||
@@ -313,7 +313,7 @@
|
||||
$(OCTAVE_LIBS) \
|
||||
$(LEXLIB) $(UMFPACK_LIBS) $(AMD_LIBS) $(COLAMD_LIBS) \
|
||||
$(CHOLMOD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) $(BLAS_LIBS) \
|
||||
- $(FFTW_LIBS) $(LIBS) $(FLIBS)
|
||||
+ $(FFTW_LIBS) $(LIBS) $(FLIBS) -lcamd
|
||||
|
||||
stmp-pic: pic
|
||||
@if [ -f stmp-pic ]; then \
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user