summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2018-05-06 00:24:00 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2018-05-06 00:24:00 +0000
commit3b33ecf6b7c0f7efa4531d5206875826ec96c51f (patch)
tree334ea0c87194163938df13bd313bac557b0a0a88
parentFix NLS option (diff)
- Fixed error in which -qt4 is passed to QT tools. It should be -qt=qt4.
- Set MKINFO in configure_args so that makeinfo works. - Since plist changed, bump portrevision. PR: ports/228004 Submitted by: Robert Cina <transitive@gmail.com>
-rw-r--r--math/octave/Makefile9
-rw-r--r--math/octave/files/patch-configure48
-rw-r--r--math/octave/files/patch-libgnu-math.in.h4
-rw-r--r--math/octave/pkg-plist4
4 files changed, 17 insertions, 48 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index f200083d90b2..3fd98c91fa21 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -3,6 +3,7 @@
PORTNAME= octave
PORTVERSION= ${OCTAVE_VERSION}
+PORTREVISION= 1
CATEGORIES= math java
MASTER_SITES= GNU
@@ -47,7 +48,7 @@ USE_TEX= dvipsk:build formats:build
GNU_CONFIGURE= yes
USE_JAVA= yes
JAVA_VERSION= 1.7+
-USE_QT4= corelib gui network opengl moc_build qmake_build rcc_build uic_build linguist_build
+USE_QT4= corelib gui network opengl moc_build qmake_build rcc_build uic_build linguist_build help help-tools
USE_XORG= x11 xext xfixes xft
USE_GL= gl glu
@@ -59,12 +60,15 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= GPERF="${LOCALBASE}/bin/gperf" \
JAVA_HOME=${JAVA_HOME} \
MAKEINFO=${LOCALBASE}/bin/makeinfo \
+ MKINFO=${LOCALBASE}/bin/makeinfo \
+ MOC_QTVER=${LOCALBASE}/bin/moc \
+ UIC_QTVER=${LOCALBASE}/bin/uic \
+ RCC_QTVER=${LOCALBASE}/bin/rcc \
ac_cv_type_max_align_t=yes
CONFIGURE_ARGS= --host=${GNU_HOST} \
--with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \
--with-lapack="${LAPACKLIB}" \
--enable-shared \
- --disable-docs \
--disable-jit \
--disable-openmp \
--with-qt=4 \
@@ -88,6 +92,7 @@ post-patch:
${REINPLACE_CMD} 's+lapack lapack_rs6k+${LAPACKLIB:C/-l//}+' ${WRKSRC}/configure
${REINPLACE_CMD} 's+-lumfpack+-lumfpack -lsuitesparseconfig -lamd -lcholmod -lcolamd ${LAPACKLIB}+' ${WRKSRC}/configure
${REINPLACE_CMD} 's+-lcholmod+-lumfpack -lsuitesparseconfig -lamd -lcholmod -lcolamd ${LAPACKLIB}+' ${WRKSRC}/configure
+ ${REINPLACE_CMD} 's/"-qt$$qt_version"/"-qt=qt$$qt_version"/' ${WRKSRC}/configure
post-install:
(cd ${STAGEDIR}${DATADIR} && ${LN} -s ${PORTVERSION}/imagelib .)
diff --git a/math/octave/files/patch-configure b/math/octave/files/patch-configure
index 882fd47485f6..74ebaebf4ca1 100644
--- a/math/octave/files/patch-configure
+++ b/math/octave/files/patch-configure
@@ -234,47 +234,7 @@
if test $ax_lapack_ok = no; then
save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh`
-@@ -70670,9 +70670,6 @@ esac
- fi
-
- if test -n "$MOC"; then
-- if test -n "$QTCHOOSER"; then
-- MOCFLAGS="-qt$qt_version"
-- fi
- QT_TOOLS_AVAILABLE="$QT_TOOLS_AVAILABLE moc"
- else
- QT_TOOLS_MISSING="$QT_TOOLS_MISSING moc"
-@@ -70885,9 +70882,6 @@ esac
- fi
-
- if test -n "$UIC"; then
-- if test -n "$QTCHOOSER"; then
-- UICFLAGS="-qt$qt_version"
-- fi
- QT_TOOLS_AVAILABLE="$QT_TOOLS_AVAILABLE uic"
- else
- QT_TOOLS_MISSING="$QT_TOOLS_MISSING uic"
-@@ -71100,9 +71094,6 @@ esac
- fi
-
- if test -n "$RCC"; then
-- if test -n "$QTCHOOSER"; then
-- RCCFLAGS="-qt$qt_version"
-- fi
- QT_TOOLS_AVAILABLE="$QT_TOOLS_AVAILABLE rcc"
- else
- QT_TOOLS_MISSING="$QT_TOOLS_MISSING rcc"
-@@ -71315,9 +71306,6 @@ esac
- fi
-
- if test -n "$LRELEASE"; then
-- if test -n "$QTCHOOSER"; then
-- LRELEASEFLAGS="-qt$qt_version"
-- fi
- QT_TOOLS_AVAILABLE="$QT_TOOLS_AVAILABLE lrelease"
- else
- QT_TOOLS_MISSING="$QT_TOOLS_MISSING lrelease"
-@@ -73640,7 +73628,7 @@ if test $use_osmesa = yes; then
+@@ -73640,7 +73640,7 @@ if test $use_osmesa = yes; then
warn_osmesa="OSMesa library not found. Offscreen rendering with FLTK will be disabled."
fi
@@ -283,7 +243,7 @@
save_CPPFLAGS="$CPPFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
-@@ -75018,7 +75006,7 @@ fi
+@@ -75018,7 +75018,7 @@ fi
;;
yes | "")
ac_octave_cholmod_pkg_check=yes
@@ -292,7 +252,7 @@
;;
-* | */* | *.a | *.so | *.so.* | *.o)
CHOLMOD_LIBS="$with_cholmod"
-@@ -75598,7 +75586,7 @@ fi
+@@ -75598,7 +75598,7 @@ fi
;;
yes | "")
ac_octave_umfpack_pkg_check=yes
@@ -301,7 +261,7 @@
;;
-* | */* | *.a | *.so | *.so.* | *.o)
UMFPACK_LIBS="$with_umfpack"
-@@ -77450,6 +77438,13 @@ $as_echo_n "checking for include file <j
+@@ -77450,6 +77450,13 @@ $as_echo_n "checking for include file <j
JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin"
fi
;;
diff --git a/math/octave/files/patch-libgnu-math.in.h b/math/octave/files/patch-libgnu-math.in.h
index 0a1794f1f8ee..0dc2058589ae 100644
--- a/math/octave/files/patch-libgnu-math.in.h
+++ b/math/octave/files/patch-libgnu-math.in.h
@@ -1,8 +1,8 @@
---- libgnu/math.in.h.orig 2017-02-22 18:17:36 UTC
+--- libgnu/math.in.h.orig 2018-04-30 17:03:56 UTC
+++ libgnu/math.in.h
@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
-#ifndef _@GUARD_PREFIX@_MATH_H
+#if 1
diff --git a/math/octave/pkg-plist b/math/octave/pkg-plist
index e696b29c8b6a..e214d045173e 100644
--- a/math/octave/pkg-plist
+++ b/math/octave/pkg-plist
@@ -782,6 +782,10 @@ lib/octave/%%OCTAVE_VERSION%%/oct/%%GNU_HOST%%/qr.oct
lib/octave/%%OCTAVE_VERSION%%/oct/%%GNU_HOST%%/symbfact.oct
lib/octave/%%OCTAVE_VERSION%%/oct/%%GNU_HOST%%/symrcm.oct
libexec/octave/%%OCTAVE_VERSION%%/exec/%%GNU_HOST%%/octave-gui
+man/man1/mkoctfile.1.gz
+man/man1/octave-cli.1.gz
+man/man1/octave-config.1.gz
+man/man1/octave.1.gz
share/applications/org.octave.Octave.desktop
%%PORTDOCS%%%%DOCSDIR%%/liboctave.ps
%%PORTDOCS%%%%DOCSDIR%%/octave.ps