2021-02-07 07:30:06 +01:00
|
|
|
# $NetBSD: Makefile,v 1.77 2021/02/07 06:30:29 ryoon Exp $
|
2012-03-20 08:30:13 +01:00
|
|
|
|
2019-11-20 23:30:05 +01:00
|
|
|
DISTNAME= cantor-${KAPPSVER}
|
2021-02-07 07:30:06 +01:00
|
|
|
PKGREVISION= 8
|
2012-03-20 08:30:13 +01:00
|
|
|
CATEGORIES= math
|
2019-11-20 23:30:05 +01:00
|
|
|
|
|
|
|
HOMEPAGE= https://kde.org/applications/education/cantor/
|
2012-03-20 08:30:13 +01:00
|
|
|
COMMENT= KDE frontend to mathematical software
|
2019-11-20 23:30:05 +01:00
|
|
|
LICENSE= gnu-gpl-v2 AND gnu-fdl-v1.2
|
|
|
|
|
|
|
|
.include "../../meta-pkgs/kde/applications.mk"
|
2012-03-20 08:30:13 +01:00
|
|
|
|
2020-02-02 03:53:52 +01:00
|
|
|
BUILD_DEPENDS+= kdoctools>=5.19.0:../../devel/kdoctools
|
2012-03-20 08:30:13 +01:00
|
|
|
|
2019-11-20 23:30:05 +01:00
|
|
|
USE_TOOLS+= msgmerge pkg-config
|
2019-11-02 15:41:09 +01:00
|
|
|
|
2019-11-20 23:30:05 +01:00
|
|
|
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_R=TRUE
|
|
|
|
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_LuaJIT=TRUE
|
2012-03-20 08:30:13 +01:00
|
|
|
|
2019-11-20 23:30:05 +01:00
|
|
|
# only try to build python3 support
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=TRUE
|
|
|
|
SUBST_CLASSES+= py3
|
|
|
|
SUBST_STAGE.py3= pre-configure
|
|
|
|
SUBST_FILES.py3= cmake/FindPythonLibs3.cmake
|
|
|
|
SUBST_SED.py3= -e 's:python3):python-${PYVERSSUFFIX}):'
|
2019-11-29 21:58:01 +01:00
|
|
|
SUBST_SED.py3+= -e 's:python3.6m python3.7m:python3.6m python3.6 python3.7m python3.7:'
|
2012-03-20 08:30:13 +01:00
|
|
|
|
2019-11-20 23:30:05 +01:00
|
|
|
REPLACE_SH+= src/backends/sage/cantor-execsage
|
|
|
|
|
2019-11-21 03:39:22 +01:00
|
|
|
SUBST_CLASSES+= xdg
|
|
|
|
SUBST_STAGE.xdg= pre-configure
|
|
|
|
SUBST_MESSAGE.xdg= Install via examples dir.
|
|
|
|
SUBST_FILES.xdg= src/CMakeLists.txt
|
|
|
|
SUBST_FILES.xdg+= src/backends/*/CMakeLists.txt
|
|
|
|
SUBST_SED.xdg= -e 's:{KDE_INSTALL_CONFDIR}:{KDE_INSTALL_XDG_EX_DIR}:'
|
|
|
|
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor.knsrc
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_kalgebra.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_kalgebra.knsrc
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_maxima.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_maxima.knsrc
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_octave.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_octave.knsrc
|
2020-06-09 13:56:05 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_python.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_python.knsrc
|
2019-11-21 03:39:22 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_qalculate.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_qalculate.knsrc
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_sage.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_sage.knsrc
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_scilab.knsrc \
|
|
|
|
${PKG_SYSCONFDIR}/xdg/cantor_scilab.knsrc
|
|
|
|
|
2020-02-02 03:53:52 +01:00
|
|
|
SUBST_CLASSES+= fix-moc
|
|
|
|
SUBST_STAGE.fix-moc= post-configure
|
|
|
|
SUBST_MESSAGE.fix-moc= Cleaning up MOC includes
|
2020-06-09 13:56:05 +02:00
|
|
|
SUBST_FILES.fix-moc= _KDE_build/src/*/*/CMakeFiles/cantor_*_autogen.dir/AutogenInfo.json
|
2020-05-24 03:24:22 +02:00
|
|
|
SUBST_NOOP_OK.fix-moc= yes
|
2020-02-02 03:53:52 +01:00
|
|
|
SUBST_SED.fix-moc= -e 's;"${PREFIX}/include",;;g'
|
|
|
|
|
2019-11-20 23:30:05 +01:00
|
|
|
.include "../../devel/kpty/buildlink3.mk"
|
|
|
|
.include "../../devel/ktexteditor/buildlink3.mk"
|
2020-02-02 03:53:52 +01:00
|
|
|
.include "../../devel/libidn/buildlink3.mk"
|
2014-11-13 20:19:06 +01:00
|
|
|
.include "../../lang/python/application.mk"
|
2012-03-20 08:30:13 +01:00
|
|
|
.include "../../math/analitza/buildlink3.mk"
|
2014-11-13 20:19:06 +01:00
|
|
|
.include "../../math/qalculate/buildlink3.mk"
|
2019-11-20 23:30:05 +01:00
|
|
|
.include "../../net/knewstuff/buildlink3.mk"
|
2012-03-20 08:30:13 +01:00
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
|
|
|
.include "../../print/libspectre/buildlink3.mk"
|
2020-02-02 03:53:52 +01:00
|
|
|
.include "../../print/poppler-qt5/buildlink3.mk"
|
2012-03-20 08:30:13 +01:00
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2019-12-02 08:13:49 +01:00
|
|
|
.include "../../textproc/discount/buildlink3.mk"
|
2019-11-20 23:30:05 +01:00
|
|
|
.include "../../x11/qt5-qtbase/buildlink3.mk"
|
2012-03-20 08:30:13 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|