blob: a0ef1af76310f3ab9842441bcda973dea60a4b8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# $NetBSD: Makefile,v 1.75 2020/12/04 20:45:28 nia Exp $
DISTNAME= cantor-${KAPPSVER}
PKGREVISION= 6
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>=5.19.0:../../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
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_python.knsrc \
${PKG_SYSCONFDIR}/xdg/cantor_python.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
SUBST_CLASSES+= fix-moc
SUBST_STAGE.fix-moc= post-configure
SUBST_MESSAGE.fix-moc= Cleaning up MOC includes
SUBST_FILES.fix-moc= _KDE_build/src/*/*/CMakeFiles/cantor_*_autogen.dir/AutogenInfo.json
SUBST_NOOP_OK.fix-moc= yes
SUBST_SED.fix-moc= -e 's;"${PREFIX}/include",;;g'
.include "../../devel/kpty/buildlink3.mk"
.include "../../devel/ktexteditor/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../math/analitza/buildlink3.mk"
.include "../../math/qalculate/buildlink3.mk"
.include "../../net/knewstuff/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../print/libspectre/buildlink3.mk"
.include "../../print/poppler-qt5/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/discount/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|