diff -ur /usr/ports/math/octave/Makefile octave/Makefile --- /usr/ports/math/octave/Makefile 2010-12-04 07:32:38.000000000 +0000 +++ octave/Makefile 2011-04-25 00:22:19.000000000 +0000 @@ -6,10 +6,9 @@ # PORTNAME= octave -PORTVERSION= 3.2.4 -PORTREVISION= 4 +PORTVERSION= 3.4.0 CATEGORIES= math -MASTER_SITES= ftp://ftp.octave.org/pub/octave/ \ +MASTER_SITES= ftp://ftp.gnu.org/gnu/octave/ \ ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/Octave/bleeding-edge/ MAINTAINER= maho@FreeBSD.org @@ -18,11 +17,12 @@ BUILD_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot \ ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \ gsed:${PORTSDIR}/textproc/gsed \ - dvips:${PORTSDIR}/print/dvipsk-tetex + dvips:${PORTSDIR}/print/dvipsk-tetex \ + ${PREFIX}/bin/makeinfo:${PORTSDIR}/print/texinfo RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot \ - gsed:${PORTSDIR}/textproc/gsed -LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \ - glpk.28:${PORTSDIR}/math/glpk \ + gsed:${PORTSDIR}/textproc/gsed \ + ${PREFIX}/bin/makeinfo:${PORTSDIR}/print/texinfo +LIB_DEPENDS= glpk.28:${PORTSDIR}/math/glpk \ umfpack.1:${PORTSDIR}/math/suitesparse \ qhull:${PORTSDIR}/math/qhull \ arpack:${PORTSDIR}/math/arpack \ @@ -31,7 +31,8 @@ fftw3:${PORTSDIR}/math/fftw3 \ ftgl:${PORTSDIR}/graphics/ftgl \ fltk.1:${PORTSDIR}/x11-toolkits/fltk \ - GraphicsMagick.1:${PORTSDIR}/graphics/GraphicsMagick + GraphicsMagick.1:${PORTSDIR}/graphics/GraphicsMagick \ + curl:${PORTSDIR}/ftp/curl USE_BZIP2= yes USE_PERL5_BUILD=yes @@ -39,8 +40,8 @@ GNU_CONFIGURE= yes USE_AUTOTOOLS= autoconf -INFO= octave liboctave -MAN1= octave.1 octave-bug.1 mkoctfile.1 octave-config.1 +INFO= octave liboctave OctaveFAQ +MAN1= octave.1 mkoctfile.1 octave-config.1 OPTIONS= LEGACY_HDF5 "Build with HDF5 v1.6 (otherwise with HDF5 v1.8)" on @@ -90,15 +91,12 @@ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ CC="${CC}" \ CXX="${CXX}" \ - TERMIOS_H="termios.h" + MAKEINFO=${PREFIX}/bin/makeinfo 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}" GNU_HOST="${GNU_HOST}" - .if (${OSVERSION} <= 700000) WITH_PTMALLOC=yes .endif @@ -108,27 +106,30 @@ CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lptmalloc" .endif +post-patch: + ${REINPLACE_CMD} 's+"makeinfo"+"${PREFIX}/bin/makeinfo"+' ${WRKSRC}/src/help.cc + post-install: - ${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} ${MKDIR} ${DESKTOPDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/octave.desktop \ + ${INSTALL_DATA} ${WRKSRC}/doc/icons/octave.desktop \ ${DESKTOPDIR}/www.octave.org-octave.desktop .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for file in faq/Octave-FAQ.ps liboctave/liboctave.ps \ - refcard/refcard-a4.ps refcard/refcard-legal.ps refcard/refcard-letter.ps +.for file in faq/OctaveFAQ.ps liboctave/liboctave.ps \ + refcard/refcard-a4.ps refcard/refcard-legal.ps \ + refcard/refcard-letter.ps interpreter/octave.ps ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} .endfor .endif - ${RM} -f ${WRKDIR}/PLIST + ${RM} -f ${WRKDIR}/PLIST .for d in ${PREFIX}/include/octave-${OCTAVE_VERSION} ${PREFIX}/share/octave ${PREFIX}/libexec/octave ${PREFIX}/lib/octave-${OCTAVE_VERSION} @${FIND} -s $d -not -type d | \ - ${SED} -e 's#^${PREFIX}/##' >> ${WRKDIR}/PLIST - @${FIND} $d -type d | ${SORT} -r | \ - ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${WRKDIR}/PLIST + ${SED} -e 's#^${PREFIX}/##' >> ${WRKDIR}/PLIST + @${FIND} -s $d -type d -empty | \ + ${SED} -e 's,^${PREFIX}/,@exec mkdir -p %D/,' \ + -e 's,$$, 2>/dev/null || true,' >> ${WRKDIR}/PLIST + @${FIND} -s $d -type d -depth | \ + ${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${WRKDIR}/PLIST .endfor cd ${WRKDIR} ; ${SED} -i -e "/PLIST/ r PLIST" ${TMPPLIST} diff -ur /usr/ports/math/octave/distinfo octave/distinfo --- /usr/ports/math/octave/distinfo 2011-03-20 19:53:14.000000000 +0000 +++ octave/distinfo 2011-04-20 21:11:06.000000000 +0000 @@ -1,2 +1,2 @@ -SHA256 (octave-3.2.4.tar.bz2) = 48471d05c7ed9c0a5a4d5fa4ae8a857447ac3da1197f86cfe79b9d8f4fdfd147 -SIZE (octave-3.2.4.tar.bz2) = 12080959 +SHA256 (octave-3.4.0.tar.bz2) = 0fb4f78f43320eec82477c1bbde42877e0e490a9f4903966b1682a9600ffcc2b +SIZE (octave-3.4.0.tar.bz2) = 14619487 Only in /usr/ports/math/octave/files: octave.in Only in /usr/ports/math/octave/files: patch-configure.in Only in /usr/ports/math/octave/files: patch-examples+Makefile.in diff -ur /usr/ports/math/octave/files/patch-libcruft+mkf77def.in octave/files/patch-libcruft+mkf77def.in --- /usr/ports/math/octave/files/patch-libcruft+mkf77def.in 2007-12-25 03:37:51.000000000 +0000 +++ octave/files/patch-libcruft+mkf77def.in 2011-04-20 23:28:04.000000000 +0000 @@ -1,10 +1,11 @@ ---- 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 +--- libcruft/mkf77def.in.orig 2011-02-08 04:00:51.000000000 -0600 ++++ libcruft/mkf77def.in 2011-04-20 18:26:34.000000000 -0500 +@@ -18,7 +18,7 @@ + # along with Octave; see the file COPYING. If not, see + # . -SED=${SED:-'sed'} +SED=gsed AWK=${AWK:-'awk'} - F77_TOLOWER=%F77_APPEND_UNDERSCORE% + F77_TOLOWER="@F77_APPEND_UNDERSCORE@" Only in /usr/ports/math/octave/files: patch-mkoctfile.in diff -ur /usr/ports/math/octave/files/patch-scripts+pkg+pkg.m octave/files/patch-scripts+pkg+pkg.m --- /usr/ports/math/octave/files/patch-scripts+pkg+pkg.m 2009-08-03 11:20:23.000000000 +0000 +++ octave/files/patch-scripts+pkg+pkg.m 2011-04-20 23:35:28.000000000 +0000 @@ -1,11 +1,11 @@ ---- scripts/pkg/pkg.m~ 2009-07-27 18:31:53.000000000 +0900 -+++ scripts/pkg/pkg.m 2009-07-27 18:32:52.000000000 +0900 -@@ -1247,7 +1247,7 @@ +--- scripts/pkg/pkg.m.orig 2011-04-20 18:29:53.000000000 -0500 ++++ scripts/pkg/pkg.m 2011-04-20 18:35:01.000000000 -0500 +@@ -1326,7 +1326,7 @@ + ## Make. if (exist (fullfile (src, "Makefile"), "file")) - [status, output] = shell (cstrcat ("export INSTALLDIR=\"", desc.dir, -- "\"; make -C '", src, "'")); -+ "\"; gmake -C '", src, "'")); +- [status, output] = shell (cstrcat (scenv, "make -C '", src, "'")); ++ [status, output] = shell (cstrcat (scenv, "gmake -C '", src, "'")); if (status != 0) - rm_rf (desc.dir); - error ("'make' returned the following error: %s", output); + rm_rf (desc.dir); + error ("'make' returned the following error: %s", output); diff -ur /usr/ports/math/octave/pkg-plist octave/pkg-plist --- /usr/ports/math/octave/pkg-plist 2009-08-23 16:49:23.000000000 +0000 +++ octave/pkg-plist 2011-04-24 22:28:40.000000000 +0000 @@ -2,38 +2,15 @@ bin/mkoctfile-%%OCTAVE_VERSION%% bin/octave bin/octave-%%OCTAVE_VERSION%% -bin/octave-bug -bin/octave-bug-%%OCTAVE_VERSION%% bin/octave-config bin/octave-config-%%OCTAVE_VERSION%% share/applications/www.octave.org-octave.desktop -%%PORTDOCS%%%%DOCSDIR%%/Octave-FAQ.ps +%%PORTDOCS%%%%DOCSDIR%%/OctaveFAQ.ps %%PORTDOCS%%%%DOCSDIR%%/liboctave.ps %%PORTDOCS%%%%DOCSDIR%%/refcard-a4.ps %%PORTDOCS%%%%DOCSDIR%%/refcard-legal.ps %%PORTDOCS%%%%DOCSDIR%%/refcard-letter.ps +%%PORTDOCS%%%%DOCSDIR%%/octave.ps %%PORTDOCS%%@dirrm %%DOCSDIR%% -@comment octave diggs some empty directories -@exec mkdir -p %D/share/octave/site/m/startup/octaverc 2>/dev/null || true -@exec mkdir -p %D/share/octave/site/api-v37/m 2>/dev/null || true -@exec mkdir -p %D/share/octave/site/api-v37 2>/dev/null || true -@exec mkdir -p %D/share/octave/%%OCTAVE_VERSION%%/site/m 2>/dev/null || true -@exec mkdir -p %D/share/octave/%%OCTAVE_VERSION%%/site 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site/oct/%%GNU_HOST%% 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site/oct/api-v37/%%GNU_HOST%% 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site/oct/api-v37 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site/oct 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site/exec/%%GNU_HOST%% 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site/exec 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/site 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/api-v37/site/exec/%%GNU_HOST%% 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/api-v37/site/exec 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/api-v37/site 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/api-v37 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/%%OCTAVE_VERSION%%/site/oct/%%GNU_HOST%% 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/%%OCTAVE_VERSION%%/site/oct 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/%%OCTAVE_VERSION%%/site/exec/%%GNU_HOST%% 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/%%OCTAVE_VERSION%%/site/exec 2>/dev/null || true -@exec mkdir -p %D/libexec/octave/%%OCTAVE_VERSION%%/site 2>/dev/null || true @comment Insert PLIST here @dirrmtry share/applications