pkgsrc/math/cantor/Makefile

68 lines
2.6 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.58 2020/01/18 21:49:56 jperkin Exp $
DISTNAME= cantor-${KAPPSVER}
PKGREVISION= 3
CATEGORIES= math
HOMEPAGE= https://kde.org/applications/education/cantor/
COMMENT= KDE frontend to mathematical software
LICENSE= gnu-gpl-v2 AND gnu-fdl-v1.2
.include "../../meta-pkgs/kde/applications.mk"
BUILD_DEPENDS+= kdoctools>=${KF5VER}:../../devel/kdoctools
USE_TOOLS+= msgmerge pkg-config
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_R=TRUE
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_LuaJIT=TRUE
# 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}):'
SUBST_SED.py3+= -e 's:python3.6m python3.7m:python3.6m python3.6 python3.7m python3.7:'
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
CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_python3.knsrc \
${PKG_SYSCONFDIR}/xdg/cantor_python3.knsrc
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
.include "../../devel/kpty/buildlink3.mk"
.include "../../devel/ktexteditor/buildlink3.mk"
2014-11-13 20:19:06 +01:00
.include "../../lang/python/application.mk"
.include "../../math/analitza/buildlink3.mk"
2014-11-13 20:19:06 +01:00
.include "../../math/qalculate/buildlink3.mk"
.include "../../net/knewstuff/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../print/libspectre/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
2019-12-02 08:13:49 +01:00
.include "../../textproc/discount/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"