2016-07-10 09:42:55 +02:00
|
|
|
PORTNAME= cadabra2
|
2021-03-07 20:54:39 +01:00
|
|
|
DISTVERSION= 2.3.6.8
|
2016-07-10 09:42:55 +02:00
|
|
|
CATEGORIES= math
|
|
|
|
|
2017-11-04 19:50:45 +01:00
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
2016-07-10 09:42:55 +02:00
|
|
|
COMMENT= Computer algebra system for solving field theory problems
|
|
|
|
|
|
|
|
LICENSE= LGPL3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/doc/license.txt
|
|
|
|
|
2016-10-21 11:01:10 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/websocketpp/client.hpp:devel/websocketpp
|
2018-02-15 13:34:49 +01:00
|
|
|
LIB_DEPENDS= ${PY_BOOST} \
|
2016-07-10 09:42:55 +02:00
|
|
|
libboost_system.so:devel/boost-libs \
|
2016-10-21 11:01:10 +02:00
|
|
|
libpcrecpp.so:devel/pcre \
|
2016-07-10 09:42:55 +02:00
|
|
|
libjsoncpp.so:devel/jsoncpp \
|
|
|
|
libgmp.so:math/gmp \
|
|
|
|
libuuid.so:misc/e2fsprogs-libuuid
|
2017-11-30 16:50:30 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sympy/__init__.py:math/py-sympy@${PY_FLAVOR} \
|
|
|
|
${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR}
|
2016-07-10 09:42:55 +02:00
|
|
|
|
2021-05-10 22:06:35 +02:00
|
|
|
USES= compiler:c++14-lang cmake:noninja dos2unix gettext-runtime gnome localbase:ldflags pkgconfig python:3.7+ sqlite # USES=python picks random python versions
|
2017-08-09 11:11:20 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= kpeeters
|
2018-04-01 00:55:33 +02:00
|
|
|
DOS2UNIX_FILES= cmake/version.cmake
|
|
|
|
USE_GNOME= glib20 glibmm libsigc++20
|
2021-01-04 01:36:41 +01:00
|
|
|
USE_TEX= base latex texmf texhash
|
2016-07-10 09:42:55 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2019-11-23 07:25:07 +01:00
|
|
|
CMAKE_ON= ENABLE_SYSTEM_JSONCPP USE_PYTHON_3 # OFF doesn't work, still links to python3: https://github.com/kpeeters/cadabra2/issues/76
|
2018-04-01 00:55:33 +02:00
|
|
|
CMAKE_OFF= ENABLE_MATHEMATICA
|
2016-07-10 09:42:55 +02:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include/jsoncpp
|
2018-04-01 00:55:33 +02:00
|
|
|
LDFLAGS+= -ljsoncpp
|
2016-10-21 11:01:10 +02:00
|
|
|
|
2021-03-21 09:34:16 +01:00
|
|
|
PLIST_SUB= _PY_SONAME=${_PY_SONAME}
|
|
|
|
|
2018-04-01 00:55:33 +02:00
|
|
|
OPTIONS_DEFINE= GUI
|
|
|
|
OPTIONS_DEFAULT= GUI
|
2016-07-10 09:42:55 +02:00
|
|
|
|
2018-04-01 00:55:33 +02:00
|
|
|
GUI_USES= desktop-file-utils
|
|
|
|
GUI_USE= GNOME=gtkmm30,gdkpixbuf2
|
|
|
|
GUI_CMAKE_BOOL= ENABLE_FRONTEND
|
2019-05-25 20:05:25 +02:00
|
|
|
GUI_VARS= INSTALLS_ICONS=yes
|
2016-07-10 09:42:55 +02:00
|
|
|
|
2021-03-21 09:34:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2021-04-10 01:15:37 +02:00
|
|
|
.if ${PYTHON_REL} < 30800
|
2021-03-21 09:34:16 +01:00
|
|
|
_PY_SONAME= .cpython-${PYTHON_SUFFIX}m
|
|
|
|
.else
|
|
|
|
_PY_SONAME= ${PYTHON_EXT_SUFFIX}
|
|
|
|
.endif
|
|
|
|
|
2018-04-01 00:55:33 +02:00
|
|
|
post-extract: # unbundle
|
2019-03-17 20:25:57 +01:00
|
|
|
@${RM} -r ${WRKSRC}/libs/jsoncpp ${WRKSRC}/libs/websocketpp
|
2016-07-10 09:42:55 +02:00
|
|
|
|
2021-03-21 09:34:16 +01:00
|
|
|
.include <bsd.port.post.mk>
|