Wed Dec 26 10:45:46 2018 UTC ()
octave: fix building with recent Qt5

Do not look for qcollectiongenerator, it has been incorporared into qhelpgenerator.


(adam)
diff -r1.183 -r1.184 pkgsrc/math/octave/Makefile
diff -r1.54 -r1.55 pkgsrc/math/octave/distinfo
diff -r1.7 -r1.8 pkgsrc/math/octave/patches/patch-configure
diff -r0 -r1.1 pkgsrc/math/octave/patches/patch-doc_interpreter_module.mk
diff -r1.1 -r1.2 pkgsrc/math/octave/patches/patch-m4_acinclude.m4

cvs diff -r1.183 -r1.184 pkgsrc/math/octave/Makefile (expand / switch to unified diff)

--- pkgsrc/math/octave/Makefile 2018/12/13 19:52:09 1.183
+++ pkgsrc/math/octave/Makefile 2018/12/26 10:45:46 1.184
@@ -1,32 +1,32 @@ @@ -1,32 +1,32 @@
1# $NetBSD: Makefile,v 1.183 2018/12/13 19:52:09 adam Exp $ 1# $NetBSD: Makefile,v 1.184 2018/12/26 10:45:46 adam Exp $
2 2
3DISTNAME= octave-4.4.1 3DISTNAME= octave-4.4.1
4PKGREVISION= 6 4PKGREVISION= 6
5CATEGORIES= math 5CATEGORIES= math
6MASTER_SITES= ${MASTER_SITE_GNU:=octave/} 6MASTER_SITES= ${MASTER_SITE_GNU:=octave/}
7 7
8MAINTAINER= adam@NetBSD.org 8MAINTAINER= adam@NetBSD.org
9HOMEPAGE= http://www.octave.org/ 9HOMEPAGE= http://www.octave.org/
10COMMENT= High-level language, intended for numerical computations 10COMMENT= High-level language, intended for numerical computations
11LICENSE= gnu-gpl-v3 11LICENSE= gnu-gpl-v3
12 12
13# These BUILD_DEPENDS are only needed if we need to rebuild the documentation 13# These BUILD_DEPENDS are only needed if we need to rebuild the documentation
14#BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts 14#BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
15#BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk 15#BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
16#BUILD_DEPENDS+= tex-epsf-[0-9]*:../../print/tex-epsf 16#BUILD_DEPENDS+= tex-epsf-[0-9]*:../../print/tex-epsf
17#BUILD_DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex 17#BUILD_DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex
18#BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex 18#BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
19#TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo 19#TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo
20 20
21DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot 21DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
22 22
23USE_LIBTOOL= yes 23USE_LIBTOOL= yes
24USE_TOOLS+= autoconf gsed gmake:run perl pkg-config bison bsdtar:run 24USE_TOOLS+= autoconf gsed gmake:run perl pkg-config bison bsdtar:run
25GNU_CONFIGURE= yes 25GNU_CONFIGURE= yes
26 26
27USE_LANGUAGES= c c++ fortran77 27USE_LANGUAGES= c c++ fortran77
28 28
29# needed for loading of shared objects such as those in the 29# needed for loading of shared objects such as those in the
30# octave-forge package or user written ones compiled with mkoctfile 30# octave-forge package or user written ones compiled with mkoctfile
31CONFIGURE_ARGS+= --enable-dl 31CONFIGURE_ARGS+= --enable-dl
32CONFIGURE_ARGS+= --enable-static 32CONFIGURE_ARGS+= --enable-static
@@ -55,61 +55,51 @@ CONFIGURE_ENV+= INSTALL_LIB=${INSTALL_L @@ -55,61 +55,51 @@ CONFIGURE_ENV+= INSTALL_LIB=${INSTALL_L
55 55
56.include "options.mk" 56.include "options.mk"
57 57
58INFO_FILES= yes 58INFO_FILES= yes
59OCTAVE_DOC= doc/interpreter/octave.pdf doc/liboctave/liboctave.pdf \ 59OCTAVE_DOC= doc/interpreter/octave.pdf doc/liboctave/liboctave.pdf \
60 doc/refcard/refcard-a4.pdf doc/refcard/refcard-legal.pdf \ 60 doc/refcard/refcard-a4.pdf doc/refcard/refcard-legal.pdf \
61 doc/refcard/refcard-letter.pdf 61 doc/refcard/refcard-letter.pdf
62INSTALLATION_DIRS+= share/octave/${PKGVERSION_NOREV}/doc 62INSTALLATION_DIRS+= share/octave/${PKGVERSION_NOREV}/doc
63 63
64PRINT_PLIST_AWK+= { gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); } 64PRINT_PLIST_AWK+= { gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); }
65CHECK_WRKREF_SKIP+= lib/octave/${PKGVERSION_NOREV}/liboctinterp*.${SHLIB_TYPE}* \ 65CHECK_WRKREF_SKIP+= lib/octave/${PKGVERSION_NOREV}/liboctinterp*.${SHLIB_TYPE}* \
66 lib/octave/${PKGVERSION_NOREV}/liboctinterp.a 66 lib/octave/${PKGVERSION_NOREV}/liboctinterp.a
67 67
68 
69TEST_TARGET= check 68TEST_TARGET= check
70 69
71#pre-configure: 
72# cd ${WRKSRC} && autoconf 
73 
74SUBST_CLASSES+= fix-make 70SUBST_CLASSES+= fix-make
75SUBST_STAGE.fix-make= pre-configure 71SUBST_STAGE.fix-make= pre-configure
76SUBST_MESSAGE.fix-make= Fixing path to gmake. 72SUBST_MESSAGE.fix-make= Fixing path to gmake.
77SUBST_FILES.fix-make= scripts/pkg/private/configure_make.m 73SUBST_FILES.fix-make= scripts/pkg/private/configure_make.m
78SUBST_SED.fix-make= -e 's:@GMAKE@:${GMAKE}:g' 74SUBST_SED.fix-make= -e 's:@GMAKE@:${GMAKE}:g'
79 75
80SUBST_CLASSES+= qt5-pkg-config 76SUBST_CLASSES+= qt5-pkg-config
81SUBST_STAGE.qt5-pkg-config= pre-configure 77SUBST_STAGE.qt5-pkg-config= pre-configure
82SUBST_MESSAGE.qt5-pkg-config= Updating pkg-config calls for Qt5 78SUBST_MESSAGE.qt5-pkg-config= Updating pkg-config calls for Qt5
83SUBST_FILES.qt5-pkg-config= configure.ac configure 79SUBST_FILES.qt5-pkg-config= configure.ac configure
84SUBST_SED.qt5-pkg-config= -e 's,QtCore,Qt5Core,g' 80SUBST_SED.qt5-pkg-config= -e 's,QtCore,Qt5Core,g'
85SUBST_SED.qt5-pkg-config+= -e 's,QtGui,Qt5Widgets,g' 81SUBST_SED.qt5-pkg-config+= -e 's,QtGui,Qt5Widgets,g'
86SUBST_SED.qt5-pkg-config+= -e 's,QtNetwork,Qt5Network,g' 82SUBST_SED.qt5-pkg-config+= -e 's,QtNetwork,Qt5Network,g'
87SUBST_SED.qt5-pkg-config+= -e 's,QtOpenGL,Qt5OpenGL,g' 83SUBST_SED.qt5-pkg-config+= -e 's,QtOpenGL,Qt5OpenGL,g'
88 84
89# Matches reduce-relocations logic in x11/qt5-qtbase 85# Matches reduce-relocations logic in x11/qt5-qtbase
90.if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" && \ 86.if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" && \
91 (!empty(MACHINE_ARCH:Mi386) || !empty(MACHINE_ARCH:Mx86_64)) 87 ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == x86_64
92CFLAGS+= -fPIC 88CFLAGS+= -fPIC
93.endif 89.endif
94 90
95PREPEND_PATH+= ${QTDIR}/bin 91PREPEND_PATH+= ${QTDIR}/bin
96 92
97MAKE_ENV+= V=1 
98 
99#post-extract: 
100# find ${WRKSRC}/doc -type f -name '*.info*' -print | xargs rm -f 
101# mkdir ${WRKSRC}/src/pic 
102 
103post-install: 93post-install:
104.for f in ${OCTAVE_DOC} 94.for f in ${OCTAVE_DOC}
105 ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/octave/${PKGVERSION_NOREV}/doc 95 ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/octave/${PKGVERSION_NOREV}/doc
106.endfor 96.endfor
107 ${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias 97 ${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
108 98
109.include "../../audio/libsndfile/buildlink3.mk" 99.include "../../audio/libsndfile/buildlink3.mk"
110.include "../../devel/ncurses/buildlink3.mk" 100.include "../../devel/ncurses/buildlink3.mk"
111.include "../../devel/pcre/buildlink3.mk" 101.include "../../devel/pcre/buildlink3.mk"
112.include "../../devel/readline/buildlink3.mk" 102.include "../../devel/readline/buildlink3.mk"
113.include "../../devel/zlib/buildlink3.mk" 103.include "../../devel/zlib/buildlink3.mk"
114.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 104.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
115.include "../../math/arpack/buildlink3.mk" 105.include "../../math/arpack/buildlink3.mk"

cvs diff -r1.54 -r1.55 pkgsrc/math/octave/distinfo (expand / switch to unified diff)

--- pkgsrc/math/octave/distinfo 2018/08/12 08:33:55 1.54
+++ pkgsrc/math/octave/distinfo 2018/12/26 10:45:46 1.55
@@ -1,19 +1,20 @@ @@ -1,19 +1,20 @@
1$NetBSD: distinfo,v 1.54 2018/08/12 08:33:55 maya Exp $ 1$NetBSD: distinfo,v 1.55 2018/12/26 10:45:46 adam Exp $
2 2
3SHA1 (octave-4.4.1.tar.gz) = 693fe46fdf49c62dec9f81100050ba2d2c1e4067 3SHA1 (octave-4.4.1.tar.gz) = 693fe46fdf49c62dec9f81100050ba2d2c1e4067
4RMD160 (octave-4.4.1.tar.gz) = 45d1efbd217308ff9a7b3354ccc004f37785a270 4RMD160 (octave-4.4.1.tar.gz) = 45d1efbd217308ff9a7b3354ccc004f37785a270
5SHA512 (octave-4.4.1.tar.gz) = 21a1f13e2145fa530f2169254d19442b572745d65b91453ba1f552f6eda6aecfead57dbe0260b3293a29db0aa0f27cfd4f26df332e6d640848a822b20c1232f8 5SHA512 (octave-4.4.1.tar.gz) = 21a1f13e2145fa530f2169254d19442b572745d65b91453ba1f552f6eda6aecfead57dbe0260b3293a29db0aa0f27cfd4f26df332e6d640848a822b20c1232f8
6Size (octave-4.4.1.tar.gz) = 28626462 bytes 6Size (octave-4.4.1.tar.gz) = 28626462 bytes
7SHA1 (patch-configure) = 4226f9c717ff13bff8508f14c229704388193057 7SHA1 (patch-configure) = f10abb7c15d7181da775fd8ccc824ef616cc2a32
8SHA1 (patch-configure.ac) = df35493bc99f8b133865d96f079f603a33ef5cc4 8SHA1 (patch-configure.ac) = df35493bc99f8b133865d96f079f603a33ef5cc4
 9SHA1 (patch-doc_interpreter_module.mk) = 66389cceddbe71fca0c8197275a839170d64ad5b
9SHA1 (patch-fseeko-fpos_t.c) = b38e7a38be2e0b323cd7f168f1d22d3df998691c 10SHA1 (patch-fseeko-fpos_t.c) = b38e7a38be2e0b323cd7f168f1d22d3df998691c
10SHA1 (patch-libgnu_stdio.in.h) = 112a424655d46c75fb68531fe7a84d9a0e97a984 11SHA1 (patch-libgnu_stdio.in.h) = 112a424655d46c75fb68531fe7a84d9a0e97a984
11SHA1 (patch-libgui_src_settings-dialog.h) = 5bf82e5d313e06ec470a1da1a615c39f74bb880f 12SHA1 (patch-libgui_src_settings-dialog.h) = 5bf82e5d313e06ec470a1da1a615c39f74bb880f
12SHA1 (patch-libinterp_dldfcn_config-module.awk) = 4a6c7ee86a626a43b1c0c3514a5909cb6b663719 13SHA1 (patch-libinterp_dldfcn_config-module.awk) = 4a6c7ee86a626a43b1c0c3514a5909cb6b663719
13SHA1 (patch-libinterp_dldfcn_module.mk) = 1ec48eb2115da9095a8d8fe9497b25c2bc41bd91 14SHA1 (patch-libinterp_dldfcn_module.mk) = 1ec48eb2115da9095a8d8fe9497b25c2bc41bd91
14SHA1 (patch-libinterp_module.mk) = 26889c064497eb2bcbd77199e96925f61359c128 15SHA1 (patch-libinterp_module.mk) = 26889c064497eb2bcbd77199e96925f61359c128
15SHA1 (patch-liboctave_operators_mx-inlines.cc) = 67e9c8e9a3afe0339343087d68967ac6d9159bd5 16SHA1 (patch-liboctave_operators_mx-inlines.cc) = 67e9c8e9a3afe0339343087d68967ac6d9159bd5
16SHA1 (patch-m4_acinclude.m4) = 194b8c3cf6f5e45a0251b229af9b3a47c12aa608 17SHA1 (patch-m4_acinclude.m4) = 16dfa3a47403b0c6bc5935fdb5f1162a393b3f25
17SHA1 (patch-scripts_miscellaneous_unpack.m) = 82c9ca170762e223c8e5a6f88a7dd9fe2a2a33d0 18SHA1 (patch-scripts_miscellaneous_unpack.m) = 82c9ca170762e223c8e5a6f88a7dd9fe2a2a33d0
18SHA1 (patch-scripts_pkg_private_configure__make.m) = 7d4b620f889faa66c4c9c581ef8a7e7692b68c94 19SHA1 (patch-scripts_pkg_private_configure__make.m) = 7d4b620f889faa66c4c9c581ef8a7e7692b68c94
19SHA1 (patch-scripts_plot_util_____gnuplot__drawnow____.m) = 449b178aefd78c5c1b03ffd960f2e8be3874efc2 20SHA1 (patch-scripts_plot_util_____gnuplot__drawnow____.m) = 449b178aefd78c5c1b03ffd960f2e8be3874efc2

cvs diff -r1.7 -r1.8 pkgsrc/math/octave/patches/Attic/patch-configure (expand / switch to unified diff)

--- pkgsrc/math/octave/patches/Attic/patch-configure 2018/08/12 08:33:55 1.7
+++ pkgsrc/math/octave/patches/Attic/patch-configure 2018/12/26 10:45:46 1.8
@@ -1,138 +1,389 @@ @@ -1,138 +1,389 @@
1$NetBSD: patch-configure,v 1.7 2018/08/12 08:33:55 maya Exp $ 1$NetBSD: patch-configure,v 1.8 2018/12/26 10:45:46 adam Exp $
2 2
3Regen. 3Regen.
4 4
5install .oct loadable modules with INSTALL_LIB to avoid stripping them 5install .oct loadable modules with INSTALL_LIB to avoid stripping them
6 6
7we pass and assume a given MACHINE_GNU_PLATFORM, but this package did not 7we pass and assume a given MACHINE_GNU_PLATFORM, but this package did not
8use this value due to an error. 8use this value due to an error.
9the guess it had for linux (x86_64-unknown-linux-gnu), seems to trample 9the guess it had for linux (x86_64-unknown-linux-gnu), seems to trample
10over our own tools: 10over our own tools:
11https://mail-index.netbsd.org/pkgsrc-users/2014/03/26/msg019464.html 11https://mail-index.netbsd.org/pkgsrc-users/2014/03/26/msg019464.html
12 12
13Allow overriding MKOCTFILE_F77 so we can provide the full path to gfortran 13Allow overriding MKOCTFILE_F77 so we can provide the full path to gfortran
14(for building octave-forge packages like control) 14(for building octave-forge packages like control)
15 15
16Additional changes are due to autoconf changes. 16Additional changes are due to autoconf changes.
17 17
18--- configure.orig 2018-08-09 18:20:32.000000000 +0000 18--- configure.orig 2018-08-09 18:20:32.000000000 +0000
19+++ configure 19+++ configure
20@@ -1733,6 +1733,7 @@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE 20@@ -761,10 +761,6 @@ ac_ct_QHELPGENERATOR
 21 QHELPGENERATOR
 22 ac_ct_QHELPGENERATOR_QTVER
 23 QHELPGENERATOR_QTVER
 24-ac_ct_QCOLLECTIONGENERATOR
 25-QCOLLECTIONGENERATOR
 26-ac_ct_QCOLLECTIONGENERATOR_QTVER
 27-QCOLLECTIONGENERATOR_QTVER
 28 ac_ct_LRELEASE
 29 LRELEASE
 30 ac_ct_LRELEASE_QTVER
 31@@ -1733,6 +1729,7 @@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE
21 INCLUDE_NEXT 32 INCLUDE_NEXT
22 LIB_CRYPTO 33 LIB_CRYPTO
23 pkglibexecdir 34 pkglibexecdir
24+runstatedir 35+runstatedir
25 lispdir 36 lispdir
26 REPLACE_FDOPENDIR 37 REPLACE_FDOPENDIR
27 REPLACE_DIRFD 38 REPLACE_DIRFD
28@@ -2092,6 +2093,7 @@ PYTHON 39@@ -2092,6 +2089,7 @@ PYTHON
29 DEFAULT_PAGER 40 DEFAULT_PAGER
30 GNUPLOT 41 GNUPLOT
31 GHOSTSCRIPT 42 GHOSTSCRIPT
32+INSTALL_LIB 43+INSTALL_LIB
33 LN_S 44 LN_S
34 REPRODUCIBLE_TAR_FLAGS 45 REPRODUCIBLE_TAR_FLAGS
35 TEXI2PDF 46 TEXI2PDF
36@@ -2221,7 +2223,6 @@ infodir 47@@ -2221,7 +2219,6 @@ infodir
37 docdir 48 docdir
38 oldincludedir 49 oldincludedir
39 includedir 50 includedir
40-runstatedir 51-runstatedir
41 localstatedir 52 localstatedir
42 sharedstatedir 53 sharedstatedir
43 sysconfdir 54 sysconfdir
44@@ -2446,7 +2447,6 @@ datadir='${datarootdir}' 55@@ -2446,7 +2443,6 @@ datadir='${datarootdir}'
45 sysconfdir='${prefix}/etc' 56 sysconfdir='${prefix}/etc'
46 sharedstatedir='${prefix}/com' 57 sharedstatedir='${prefix}/com'
47 localstatedir='${prefix}/var' 58 localstatedir='${prefix}/var'
48-runstatedir='${localstatedir}/run' 59-runstatedir='${localstatedir}/run'
49 includedir='${prefix}/include' 60 includedir='${prefix}/include'
50 oldincludedir='/usr/include' 61 oldincludedir='/usr/include'
51 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 62 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
52@@ -2699,15 +2699,6 @@ do 63@@ -2699,15 +2695,6 @@ do
53 | -silent | --silent | --silen | --sile | --sil) 64 | -silent | --silent | --silen | --sile | --sil)
54 silent=yes ;; 65 silent=yes ;;
55  66
56- -runstatedir | --runstatedir | --runstatedi | --runstated \ 67- -runstatedir | --runstatedir | --runstatedi | --runstated \
57- | --runstate | --runstat | --runsta | --runst | --runs \ 68- | --runstate | --runstat | --runsta | --runst | --runs \
58- | --run | --ru | --r) 69- | --run | --ru | --r)
59- ac_prev=runstatedir ;; 70- ac_prev=runstatedir ;;
60- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 71- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
61- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 72- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
62- | --run=* | --ru=* | --r=*) 73- | --run=* | --ru=* | --r=*)
63- runstatedir=$ac_optarg ;; 74- runstatedir=$ac_optarg ;;
64- 75-
65 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 76 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
66 ac_prev=sbindir ;; 77 ac_prev=sbindir ;;
67 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 78 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
68@@ -2845,7 +2836,7 @@ fi 79@@ -2845,7 +2832,7 @@ fi
69 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 80 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
70 datadir sysconfdir sharedstatedir localstatedir includedir \ 81 datadir sysconfdir sharedstatedir localstatedir includedir \
71 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 82 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
72- libdir localedir mandir runstatedir 83- libdir localedir mandir runstatedir
73+ libdir localedir mandir 84+ libdir localedir mandir
74 do 85 do
75 eval ac_val=\$$ac_var 86 eval ac_val=\$$ac_var
76 # Remove trailing slashes. 87 # Remove trailing slashes.
77@@ -2998,7 +2989,6 @@ Fine tuning of the installation director 88@@ -2998,7 +2985,6 @@ Fine tuning of the installation director
78 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 89 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
79 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 90 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
80 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 91 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
81- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 92- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
82 --libdir=DIR object code libraries [EPREFIX/lib] 93 --libdir=DIR object code libraries [EPREFIX/lib]
83 --includedir=DIR C header files [PREFIX/include] 94 --includedir=DIR C header files [PREFIX/include]
84 --oldincludedir=DIR C header files for non-gcc [/usr/include] 95 --oldincludedir=DIR C header files for non-gcc [/usr/include]
85@@ -9414,7 +9404,10 @@ fi 96@@ -6043,7 +6029,7 @@ case $host_os in *\ *) host_os=`echo "$h
 97 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring Octave for unknown system type" >&5
 98 $as_echo "$as_me: WARNING: configuring Octave for unknown system type" >&2;}
 99 fi
 100- canonical_host_type=$host
 101+ canonical_host_type=$host_alias
 102
 103 if test -z "$host_cpu"; then
 104 host_cpu=unknown
 105@@ -9414,7 +9400,10 @@ fi
86  106
87  107
88  108
89-INSTALL_SCRIPT="${INSTALL}" 109-INSTALL_SCRIPT="${INSTALL}"
90+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 110+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
91+ 111+
92+test -z "$INSTALL_LIB" && INSTALL_LIB='${INSTALL_SCRIPT}' 112+test -z "$INSTALL_LIB" && INSTALL_LIB='${INSTALL_SCRIPT}'
93+ 113+
94  114
95  115
96 ## Programs used when running Octave. 116 ## Programs used when running Octave.
97@@ -12974,6 +12967,11 @@ fi 117@@ -12974,6 +12963,11 @@ fi
98 done 118 done
99 ;; 119 ;;
100 -[lLR]*) 120 -[lLR]*)
101+ case $ac_arg in 121+ case $ac_arg in
102+ -R*) 122+ -R*)
103+ ac_arg="-Wl,$ac_arg" 123+ ac_arg="-Wl,$ac_arg"
104+ ;; 124+ ;;
105+ esac 125+ esac
106 ac_exists=false 126 ac_exists=false
107 for ac_i in $ac_cv_f77_libs; do 127 for ac_i in $ac_cv_f77_libs; do
108 if test x"$ac_arg" = x"$ac_i"; then 128 if test x"$ac_arg" = x"$ac_i"; then
109@@ -34971,13 +34969,13 @@ if test "$cross_compiling" = yes && test 129@@ -34971,13 +34965,13 @@ if test "$cross_compiling" = yes && test
110 MKOCTFILE_LD_CXX=`echo "$LD_CXX" | $SED "s,$CROSS_TOOL_PREFIX,,"` 130 MKOCTFILE_LD_CXX=`echo "$LD_CXX" | $SED "s,$CROSS_TOOL_PREFIX,,"`
111 MKOCTFILE_RANLIB=`echo "$RANLIB" | $SED "s,$CROSS_TOOL_PREFIX,,"` 131 MKOCTFILE_RANLIB=`echo "$RANLIB" | $SED "s,$CROSS_TOOL_PREFIX,,"`
112 else 132 else
113- MKOCTFILE_AR="$AR" 133- MKOCTFILE_AR="$AR"
114- MKOCTFILE_CC="$CC" 134- MKOCTFILE_CC="$CC"
115- MKOCTFILE_CXX="$CXX" 135- MKOCTFILE_CXX="$CXX"
116- MKOCTFILE_DL_LD="$DL_LD" 136- MKOCTFILE_DL_LD="$DL_LD"
117- MKOCTFILE_F77="$F77" 137- MKOCTFILE_F77="$F77"
118- MKOCTFILE_LD_CXX="$LD_CXX" 138- MKOCTFILE_LD_CXX="$LD_CXX"
119- MKOCTFILE_RANLIB="$RANLIB" 139- MKOCTFILE_RANLIB="$RANLIB"
120+ MKOCTFILE_AR="${MKOCTFILE_AR-$AR}" 140+ MKOCTFILE_AR="${MKOCTFILE_AR-$AR}"
121+ MKOCTFILE_CC="${MKOCTFILE_CC-$CC}" 141+ MKOCTFILE_CC="${MKOCTFILE_CC-$CC}"
122+ MKOCTFILE_CXX="${MKOCTFILE_CXX-$CXX}" 142+ MKOCTFILE_CXX="${MKOCTFILE_CXX-$CXX}"
123+ MKOCTFILE_DL_LD="${MKOCTFILE_DL_LD-$DL_LD}" 143+ MKOCTFILE_DL_LD="${MKOCTFILE_DL_LD-$DL_LD}"
124+ MKOCTFILE_F77="${MKOCTFILE_F77-$F77}" 144+ MKOCTFILE_F77="${MKOCTFILE_F77-$F77}"
125+ MKOCTFILE_LD_CXX="${MKOCTFILE_LD_CXX-$LD_CXX}" 145+ MKOCTFILE_LD_CXX="${MKOCTFILE_LD_CXX-$LD_CXX}"
126+ MKOCTFILE_RANLIB="${MKOCTFILE_RANLIB-$RANLIB}" 146+ MKOCTFILE_RANLIB="${MKOCTFILE_RANLIB-$RANLIB}"
127 fi 147 fi
128 { $as_echo "$as_me:${as_lineno-$LINENO}: defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX" >&5 148 { $as_echo "$as_me:${as_lineno-$LINENO}: defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX" >&5
129 $as_echo "$as_me: defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX" >&6;} 149 $as_echo "$as_me: defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX" >&6;}
130@@ -36091,6 +36089,8 @@ else 150@@ -36091,6 +36085,8 @@ else
131 # ifdef _MSC_VER 151 # ifdef _MSC_VER
132 # include <malloc.h> 152 # include <malloc.h>
133 # define alloca _alloca 153 # define alloca _alloca
134+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) 154+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
135+# include <stdlib.h> 155+# include <stdlib.h>
136 # else 156 # else
137 # ifdef HAVE_ALLOCA_H 157 # ifdef HAVE_ALLOCA_H
138 # include <alloca.h> 158 # include <alloca.h>
 159@@ -71654,221 +71650,6 @@ fi
 160
 161
 162 if test -n "$ac_tool_prefix"; then
 163- for ac_prog in qcollectiongenerator-qt$qt_version
 164- do
 165- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 166-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 167-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 168-$as_echo_n "checking for $ac_word... " >&6; }
 169-if ${ac_cv_prog_QCOLLECTIONGENERATOR_QTVER+:} false; then :
 170- $as_echo_n "(cached) " >&6
 171-else
 172- if test -n "$QCOLLECTIONGENERATOR_QTVER"; then
 173- ac_cv_prog_QCOLLECTIONGENERATOR_QTVER="$QCOLLECTIONGENERATOR_QTVER" # Let the user override the test.
 174-else
 175-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 176-for as_dir in $PATH
 177-do
 178- IFS=$as_save_IFS
 179- test -z "$as_dir" && as_dir=.
 180- for ac_exec_ext in '' $ac_executable_extensions; do
 181- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 182- ac_cv_prog_QCOLLECTIONGENERATOR_QTVER="$ac_tool_prefix$ac_prog"
 183- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 184- break 2
 185- fi
 186-done
 187- done
 188-IFS=$as_save_IFS
 189-
 190-fi
 191-fi
 192-QCOLLECTIONGENERATOR_QTVER=$ac_cv_prog_QCOLLECTIONGENERATOR_QTVER
 193-if test -n "$QCOLLECTIONGENERATOR_QTVER"; then
 194- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QCOLLECTIONGENERATOR_QTVER" >&5
 195-$as_echo "$QCOLLECTIONGENERATOR_QTVER" >&6; }
 196-else
 197- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 198-$as_echo "no" >&6; }
 199-fi
 200-
 201-
 202- test -n "$QCOLLECTIONGENERATOR_QTVER" && break
 203- done
 204-fi
 205-if test -z "$QCOLLECTIONGENERATOR_QTVER"; then
 206- ac_ct_QCOLLECTIONGENERATOR_QTVER=$QCOLLECTIONGENERATOR_QTVER
 207- for ac_prog in qcollectiongenerator-qt$qt_version
 208-do
 209- # Extract the first word of "$ac_prog", so it can be a program name with args.
 210-set dummy $ac_prog; ac_word=$2
 211-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 212-$as_echo_n "checking for $ac_word... " >&6; }
 213-if ${ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR_QTVER+:} false; then :
 214- $as_echo_n "(cached) " >&6
 215-else
 216- if test -n "$ac_ct_QCOLLECTIONGENERATOR_QTVER"; then
 217- ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR_QTVER="$ac_ct_QCOLLECTIONGENERATOR_QTVER" # Let the user override the test.
 218-else
 219-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 220-for as_dir in $PATH
 221-do
 222- IFS=$as_save_IFS
 223- test -z "$as_dir" && as_dir=.
 224- for ac_exec_ext in '' $ac_executable_extensions; do
 225- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 226- ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR_QTVER="$ac_prog"
 227- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 228- break 2
 229- fi
 230-done
 231- done
 232-IFS=$as_save_IFS
 233-
 234-fi
 235-fi
 236-ac_ct_QCOLLECTIONGENERATOR_QTVER=$ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR_QTVER
 237-if test -n "$ac_ct_QCOLLECTIONGENERATOR_QTVER"; then
 238- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QCOLLECTIONGENERATOR_QTVER" >&5
 239-$as_echo "$ac_ct_QCOLLECTIONGENERATOR_QTVER" >&6; }
 240-else
 241- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 242-$as_echo "no" >&6; }
 243-fi
 244-
 245-
 246- test -n "$ac_ct_QCOLLECTIONGENERATOR_QTVER" && break
 247-done
 248-
 249- if test "x$ac_ct_QCOLLECTIONGENERATOR_QTVER" = x; then
 250- QCOLLECTIONGENERATOR_QTVER=""
 251- else
 252- case $cross_compiling:$ac_tool_warned in
 253-yes:)
 254-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 255-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 256-ac_tool_warned=yes ;;
 257-esac
 258- QCOLLECTIONGENERATOR_QTVER=$ac_ct_QCOLLECTIONGENERATOR_QTVER
 259- fi
 260-fi
 261-
 262- if test -z "$QCOLLECTIONGENERATOR_QTVER"; then
 263- if test -n "$ac_tool_prefix"; then
 264- for ac_prog in qcollectiongenerator
 265- do
 266- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 267-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 268-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 269-$as_echo_n "checking for $ac_word... " >&6; }
 270-if ${ac_cv_prog_QCOLLECTIONGENERATOR+:} false; then :
 271- $as_echo_n "(cached) " >&6
 272-else
 273- if test -n "$QCOLLECTIONGENERATOR"; then
 274- ac_cv_prog_QCOLLECTIONGENERATOR="$QCOLLECTIONGENERATOR" # Let the user override the test.
 275-else
 276-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 277-for as_dir in $PATH
 278-do
 279- IFS=$as_save_IFS
 280- test -z "$as_dir" && as_dir=.
 281- for ac_exec_ext in '' $ac_executable_extensions; do
 282- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 283- ac_cv_prog_QCOLLECTIONGENERATOR="$ac_tool_prefix$ac_prog"
 284- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 285- break 2
 286- fi
 287-done
 288- done
 289-IFS=$as_save_IFS
 290-
 291-fi
 292-fi
 293-QCOLLECTIONGENERATOR=$ac_cv_prog_QCOLLECTIONGENERATOR
 294-if test -n "$QCOLLECTIONGENERATOR"; then
 295- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QCOLLECTIONGENERATOR" >&5
 296-$as_echo "$QCOLLECTIONGENERATOR" >&6; }
 297-else
 298- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 299-$as_echo "no" >&6; }
 300-fi
 301-
 302-
 303- test -n "$QCOLLECTIONGENERATOR" && break
 304- done
 305-fi
 306-if test -z "$QCOLLECTIONGENERATOR"; then
 307- ac_ct_QCOLLECTIONGENERATOR=$QCOLLECTIONGENERATOR
 308- for ac_prog in qcollectiongenerator
 309-do
 310- # Extract the first word of "$ac_prog", so it can be a program name with args.
 311-set dummy $ac_prog; ac_word=$2
 312-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 313-$as_echo_n "checking for $ac_word... " >&6; }
 314-if ${ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR+:} false; then :
 315- $as_echo_n "(cached) " >&6
 316-else
 317- if test -n "$ac_ct_QCOLLECTIONGENERATOR"; then
 318- ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR="$ac_ct_QCOLLECTIONGENERATOR" # Let the user override the test.
 319-else
 320-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 321-for as_dir in $PATH
 322-do
 323- IFS=$as_save_IFS
 324- test -z "$as_dir" && as_dir=.
 325- for ac_exec_ext in '' $ac_executable_extensions; do
 326- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 327- ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR="$ac_prog"
 328- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 329- break 2
 330- fi
 331-done
 332- done
 333-IFS=$as_save_IFS
 334-
 335-fi
 336-fi
 337-ac_ct_QCOLLECTIONGENERATOR=$ac_cv_prog_ac_ct_QCOLLECTIONGENERATOR
 338-if test -n "$ac_ct_QCOLLECTIONGENERATOR"; then
 339- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QCOLLECTIONGENERATOR" >&5
 340-$as_echo "$ac_ct_QCOLLECTIONGENERATOR" >&6; }
 341-else
 342- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 343-$as_echo "no" >&6; }
 344-fi
 345-
 346-
 347- test -n "$ac_ct_QCOLLECTIONGENERATOR" && break
 348-done
 349-
 350- if test "x$ac_ct_QCOLLECTIONGENERATOR" = x; then
 351- QCOLLECTIONGENERATOR=""
 352- else
 353- case $cross_compiling:$ac_tool_warned in
 354-yes:)
 355-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 356-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 357-ac_tool_warned=yes ;;
 358-esac
 359- QCOLLECTIONGENERATOR=$ac_ct_QCOLLECTIONGENERATOR
 360- fi
 361-fi
 362-
 363- if test -n "$QCOLLECTIONGENERATOR"; then
 364- if test -n "$QTCHOOSER"; then
 365- QCOLLECTIONGENERATORFLAGS="-qt$qt_version"
 366- fi
 367- QT_TOOLS_AVAILABLE="$QT_TOOLS_AVAILABLE qcollectiongenerator"
 368- else
 369- QT_TOOLS_MISSING="$QT_TOOLS_MISSING qcollectiongenerator"
 370- fi
 371- else
 372- QCOLLECTIONGENERATOR="$QCOLLECTIONGENERATOR_QTVER"
 373- QT_TOOLS_AVAILABLE="$QT_TOOLS_AVAILABLE qcollectiongenerator"
 374- fi
 375-
 376-
 377- if test -n "$ac_tool_prefix"; then
 378 for ac_prog in qhelpgenerator-qt$qt_version
 379 do
 380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 381@@ -72084,7 +71865,7 @@ fi
 382
 383
 384 if test -n "$QT_TOOLS_MISSING"; then
 385- warn_qt_tools="one or more of the Qt utilities moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator not found; disabling Qt GUI"
 386+ warn_qt_tools="one or more of the Qt utilities moc, uic, rcc, lrelease, and qhelpgenerator not found; disabling Qt GUI"
 387 build_qt_gui=no
 388 MOC_QTVER=
 389 UIC_QTVER=

File Added: pkgsrc/math/octave/patches/patch-doc_interpreter_module.mk
$NetBSD: patch-doc_interpreter_module.mk,v 1.1 2018/12/26 10:45:46 adam Exp $

Use QHELPGENERATOR instead of QCOLLECTIONGENERATOR.

--- doc/interpreter/module.mk.orig	2018-12-25 23:35:44.000000000 +0000
+++ doc/interpreter/module.mk
@@ -252,7 +252,7 @@ if AMCOND_BUILD_QT_DOCS
 %.qhc %.qch : $(OCTAVE_HTML_STAMP) $(HTMLDIR_CSS) %reldir%/mk-qthelp.pl
 	$(AM_V_GEN)rm -f $(OCTAVE_QTHELP_FILES) && \
 	$(PERL) $(srcdir)/%reldir%/mk-qthelp.pl octave.html %reldir%/octave_interpreter && \
-	$(QCOLLECTIONGENERATOR) $(QCOLLECTIONGENERATORFLAGS) %reldir%/octave_interpreter.qhcp -o %reldir%/octave_interpreter.qhc >/dev/null && \
+	$(QHELPGENERATOR) $(QHELPGENERATORFLAGS) %reldir%/octave_interpreter.qhcp -o %reldir%/octave_interpreter.qhc >/dev/null && \
 	rm -f %reldir%/octave_interpreter.qhcp %reldir%/octave_interpreter.qhp
 
 endif

cvs diff -r1.1 -r1.2 pkgsrc/math/octave/patches/patch-m4_acinclude.m4 (expand / switch to unified diff)

--- pkgsrc/math/octave/patches/patch-m4_acinclude.m4 2016/09/28 02:54:15 1.1
+++ pkgsrc/math/octave/patches/patch-m4_acinclude.m4 2018/12/26 10:45:46 1.2
@@ -1,19 +1,34 @@ @@ -1,19 +1,34 @@
1$NetBSD: patch-m4_acinclude.m4,v 1.1 2016/09/28 02:54:15 maya Exp $ 1$NetBSD: patch-m4_acinclude.m4,v 1.2 2018/12/26 10:45:46 adam Exp $
2 2
3we pass and assume a given MACHINE_GNU_PLATFORM, but this package did not 3we pass and assume a given MACHINE_GNU_PLATFORM, but this package did not
4use this value due to an error. 4use this value due to an error.
5the guess it had for linux (x86_64-unknown-linux-gnu), seems to trample 5the guess it had for linux (x86_64-unknown-linux-gnu), seems to trample
6over our own tools: 6over our own tools:
7https://mail-index.netbsd.org/pkgsrc-users/2014/03/26/msg019464.html 7https://mail-index.netbsd.org/pkgsrc-users/2014/03/26/msg019464.html
8 8
9--- m4/acinclude.m4.orig 2016-04-20 18:23:56.000000000 +0000 9Do not look for qcollectiongenerator; it is now part of qhelpgenerator.
 10
 11--- m4/acinclude.m4.orig 2018-08-09 18:20:32.000000000 +0000
10+++ m4/acinclude.m4 12+++ m4/acinclude.m4
11@@ -1651,7 +1651,7 @@ AC_DEFUN([OCTAVE_CANONICAL_HOST], [ 13@@ -31,7 +31,7 @@ AC_DEFUN([OCTAVE_CANONICAL_HOST], [
12 host=unknown-unknown-unknown 14 host=unknown-unknown-unknown
13 AC_MSG_WARN([configuring Octave for unknown system type]) 15 AC_MSG_WARN([configuring Octave for unknown system type])
14 fi 16 fi
15- canonical_host_type=$host 17- canonical_host_type=$host
16+ canonical_host_type=$host_alias 18+ canonical_host_type=$host_alias
17 AC_SUBST(canonical_host_type) 19 AC_SUBST(canonical_host_type)
18 if test -z "$host_cpu"; then 20 if test -z "$host_cpu"; then
19 host_cpu=unknown 21 host_cpu=unknown
 22@@ -2011,11 +2011,10 @@ AC_DEFUN([OCTAVE_CHECK_QT_VERSION], [AC_
 23 OCTAVE_CHECK_QT_TOOL([uic])
 24 OCTAVE_CHECK_QT_TOOL([rcc])
 25 OCTAVE_CHECK_QT_TOOL([lrelease])
 26- OCTAVE_CHECK_QT_TOOL([qcollectiongenerator])
 27 OCTAVE_CHECK_QT_TOOL([qhelpgenerator])
 28
 29 if test -n "$QT_TOOLS_MISSING"; then
 30- warn_qt_tools="one or more of the Qt utilities moc, uic, rcc, lrelease, qcollectiongenerator, and qhelpgenerator not found; disabling Qt GUI"
 31+ warn_qt_tools="one or more of the Qt utilities moc, uic, rcc, lrelease, and qhelpgenerator not found; disabling Qt GUI"
 32 build_qt_gui=no
 33 MOC_QTVER=
 34 UIC_QTVER=