Annotation of pkgsrc/math/octave/Makefile, Revision 1.231
1.231 ! gutterid 1: # $NetBSD: Makefile,v 1.230 2022/07/02 16:53:26 ryoon Exp $
1.1 tron 2:
1.226 adam 3: DISTNAME= octave-6.4.0
1.231 ! gutterid 4: PKGREVISION= 5
1.1 tron 5: CATEGORIES= math
1.120 rodent 6: MASTER_SITES= ${MASTER_SITE_GNU:=octave/}
1.202 adam 7: EXTRACT_SUFX= .tar.xz
1.2 tron 8:
1.52 adam 9: MAINTAINER= adam@NetBSD.org
1.202 adam 10: HOMEPAGE= https://www.gnu.org/software/octave/
1.52 adam 11: COMMENT= High-level language, intended for numerical computations
1.121 rodent 12: LICENSE= gnu-gpl-v3
1.2 tron 13:
1.132 dbj 14: # These BUILD_DEPENDS are only needed if we need to rebuild the documentation
15: #BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
16: #BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
17: #BUILD_DEPENDS+= tex-epsf-[0-9]*:../../print/tex-epsf
18: #BUILD_DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex
19: #BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
1.184 adam 20: #TOOL_DEPENDS+= gtexinfo>=5.1:../../devel/gtexinfo
1.132 dbj 21:
1.52 adam 22: DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
1.23 wennmach 23:
1.202 adam 24: USE_LANGUAGES= c c++ fortran77
1.94 asau 25: USE_LIBTOOL= yes
1.221 nros 26: USE_TOOLS+= autoconf gsed gmake:run perl pkg-config bison bsdtar:run
1.199 plunky 27: USE_TOOLS+= makeinfo:test
1.3 tron 28: GNU_CONFIGURE= yes
1.52 adam 29:
30: # needed for loading of shared objects such as those in the
1.72 adam 31: # octave-forge package or user written ones compiled with mkoctfile
32: CONFIGURE_ARGS+= --enable-static
1.93 drochner 33: CONFIGURE_ARGS+= --enable-shared
1.132 dbj 34: CONFIGURE_ARGS+= --disable-java
1.221 nros 35: CONFIGURE_ARGS+= --disable-docs
1.220 thor 36: CONFIGURE_ARGS+= --with-blas=${BLAS_LIBS:Q}
37: CONFIGURE_ARGS+= --with-lapack=${LAPACK_LIBS:Q}
1.226 adam 38: TEST_TARGET= check
1.220 thor 39:
1.154 maya 40: # Provide a full path gfortran in MKOCTFILE for octave-forge
41: CONFIGURE_ENV+= MKOCTFILE_F77=${FCPATH}
42:
1.132 dbj 43: .include "../../mk/bsd.prefs.mk"
44:
45: # When __APPLE__ is defined, fltk headers typedef an alternate version of Window
46: # which conflicts with the one in the X11 headers, so avoid pulling in X11.
1.133 jperkin 47: CONFIGURE_ARGS.Darwin+= --without-x
1.132 dbj 48:
1.196 dbj 49: # This is needed on Darwin or we get link failures on modules.
50: CONFIGURE_ARGS.Darwin+= --enable-link-all-dependencies
1.107 prlw1 51:
1.124 dbj 52: # We use this to install .oct files so it doesn't strip them.
53: CONFIGURE_ENV+= INSTALL_LIB=${INSTALL_LIB:Q}
54:
1.52 adam 55: .include "options.mk"
56:
1.202 adam 57: INFO_FILES= yes
58: OCTAVE_DOC= doc/interpreter/octave.pdf doc/liboctave/liboctave.pdf \
1.132 dbj 59: doc/refcard/refcard-a4.pdf doc/refcard/refcard-legal.pdf \
60: doc/refcard/refcard-letter.pdf
1.221 nros 61: OCTAVE_INFO= doc/interpreter/octave.info doc/liboctave/liboctave.info
62: OCTAVE_MAN= doc/interpreter/mkoctfile.1 doc/interpreter/octave.1 \
63: doc/interpreter/octave-cli.1 doc/interpreter/octave-config.1
64:
1.202 adam 65:
1.132 dbj 66: INSTALLATION_DIRS+= share/octave/${PKGVERSION_NOREV}/doc
1.221 nros 67: INSTALLATION_DIRS+= ${PKGMANDIR}/man1
68: INSTALLATION_DIRS+= ${PKGINFODIR}
1.52 adam 69:
1.176 maya 70: PRINT_PLIST_AWK+= { gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); }
1.178 minskim 71: CHECK_WRKREF_SKIP+= lib/octave/${PKGVERSION_NOREV}/liboctinterp*.${SHLIB_TYPE}* \
72: lib/octave/${PKGVERSION_NOREV}/liboctinterp.a
1.175 maya 73:
1.105 asau 74: SUBST_CLASSES+= fix-make
1.132 dbj 75: SUBST_STAGE.fix-make= pre-configure
1.105 asau 76: SUBST_MESSAGE.fix-make= Fixing path to gmake.
1.132 dbj 77: SUBST_FILES.fix-make= scripts/pkg/private/configure_make.m
1.188 rillig 78: SUBST_VARS.fix-make= GMAKE
1.105 asau 79:
1.220 thor 80: SUBST_CLASSES+= qtchooser
81: SUBST_STAGE.qtchooser= pre-configure
82: SUBST_MESSAGE.qtchooser= Avoiding qtchooser assumption (-qt=x argument)
83: SUBST_FILES.qtchooser= configure
84: SUBST_SED.qtchooser= -e 's,-qt=\$$qt_version,,'
1.132 dbj 85:
1.135 joerg 86: # Matches reduce-relocations logic in x11/qt5-qtbase
87: .if ${OPSYS} != "Darwin" && ${OPSYS} != "SunOS" && \
1.184 adam 88: ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == x86_64
1.135 joerg 89: CFLAGS+= -fPIC
90: .endif
91:
1.202 adam 92: PREPEND_PATH+= ${QTDIR}/bin
1.132 dbj 93:
1.202 adam 94: CHECK_WRKREF_SKIP+= lib/octave/${PKGVERSION_NOREV}/liboctinterp.so*
1.185 ryoon 95:
1.221 nros 96: pre-configure:
97: cd ${WRKSRC} && autoconf
98:
1.132 dbj 99: post-install:
100: .for f in ${OCTAVE_DOC}
101: ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/octave/${PKGVERSION_NOREV}/doc
102: .endfor
1.221 nros 103: .for f in ${OCTAVE_MAN}
104: ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
105: .endfor
106: .for f in ${OCTAVE_INFO}
107: ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${PKGINFODIR}
108: .endfor
1.152 maya 109: ${RM} -f ${DESTDIR}/${PREFIX}/lib/charset.alias
1.11 agc 110:
1.226 adam 111: .if ${OPSYS} != "Darwin"
112: # Also can use osmesa for plotting.
113: .include "../../graphics/MesaLib/buildlink3.mk"
114: .include "../../x11/libX11/buildlink3.mk"
115: .endif
1.52 adam 116: .include "../../audio/libsndfile/buildlink3.mk"
1.202 adam 117: .include "../../devel/gperf/buildlink3.mk"
1.72 adam 118: .include "../../devel/ncurses/buildlink3.mk"
1.100 asau 119: .include "../../devel/pcre/buildlink3.mk"
1.52 adam 120: .include "../../devel/readline/buildlink3.mk"
1.72 adam 121: .include "../../devel/zlib/buildlink3.mk"
1.139 prlw1 122: .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
1.220 thor 123: .include "../../graphics/gl2ps/buildlink3.mk"
1.199 plunky 124: .include "../../math/arpack-ng/buildlink3.mk"
1.52 adam 125: .include "../../math/fftw/buildlink3.mk"
1.220 thor 126: .include "../../math/qrupdate/buildlink3.mk"
1.202 adam 127: .include "../../sysutils/desktop-file-utils/desktopdb.mk"
1.78 adam 128: .include "../../www/curl/buildlink3.mk"
1.202 adam 129: .include "../../x11/fltk13/buildlink3.mk"
1.132 dbj 130: .include "../../x11/qt5-qtbase/buildlink3.mk"
131: .include "../../x11/qt5-qttools/buildlink3.mk"
1.220 thor 132: .include "../../x11/qt5-qscintilla/buildlink3.mk"
1.226 adam 133: .include "../../mk/blas.buildlink3.mk"
1.18 veego 134: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>