721e5776c9
- Update all the consumers to use USES=tex - USE_TEX=yes is the old way of writing USES=tex which has been removed and replaced in all ports - Almost all of the USE_TEX features remains unchanged - Some consumers had the same variables defined both in the mk infrastructure and also in the ports which have been removed from the ports as those are redundant. In case any of the consumers are failing to build please make sure that the nexessary USES=tex is there. Unlike previous USE_TEX=yes will no longer load the required VARS for tex and related dependencies. Reviewed by: portmgr Approved by: portmgr (blanket)
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
PORTNAME= cadabra2
|
|
DISTVERSION= 2.4.2.4
|
|
CATEGORIES= math
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Computer algebra system for solving field theory problems
|
|
WWW= https://cadabra.science/
|
|
|
|
LICENSE= LGPL3
|
|
LICENSE_FILE= ${WRKSRC}/doc/license.txt
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/websocketpp/client.hpp:devel/websocketpp
|
|
LIB_DEPENDS= ${PY_BOOST} \
|
|
libboost_system.so:devel/boost-libs \
|
|
libharfbuzz.so:print/harfbuzz \
|
|
libpcrecpp.so:devel/pcre \
|
|
libjsoncpp.so:devel/jsoncpp \
|
|
libgmp.so:math/gmp \
|
|
libuuid.so:misc/e2fsprogs-libuuid
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sympy/__init__.py:math/py-sympy@${PY_FLAVOR} \
|
|
${PYTHON_SITELIBDIR}/matplotlib/__init__.py:math/py-matplotlib@${PY_FLAVOR}
|
|
|
|
USES= compiler:c++14-lang cmake:noninja dos2unix gettext-runtime gnome localbase:ldflags pkgconfig python:3.7+ sqlite tex # USES=python picks random python versions
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= kpeeters
|
|
DOS2UNIX_FILES= cmake/version.cmake
|
|
USE_GNOME= glib20 glibmm libsigc++20
|
|
USE_TEX= base latex texmf texhash
|
|
OPTIONS_SUB= yes
|
|
|
|
CMAKE_ON= ENABLE_SYSTEM_JSONCPP USE_PYTHON_3 # OFF doesn't work, still links to python3: https://github.com/kpeeters/cadabra2/issues/76
|
|
CMAKE_OFF= ENABLE_MATHEMATICA
|
|
CXXFLAGS+= -I${LOCALBASE}/include/jsoncpp
|
|
LDFLAGS+= -ljsoncpp
|
|
|
|
PLIST_SUB= _PY_SONAME=${_PY_SONAME}
|
|
|
|
OPTIONS_DEFINE= GUI
|
|
OPTIONS_DEFAULT= GUI
|
|
|
|
GUI_USES= desktop-file-utils
|
|
GUI_USE= GNOME=gtkmm30,gdkpixbuf2
|
|
GUI_CMAKE_BOOL= ENABLE_FRONTEND
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 30800
|
|
_PY_SONAME= .cpython-${PYTHON_SUFFIX}m
|
|
.else
|
|
_PY_SONAME= ${PYTHON_EXT_SUFFIX}
|
|
.endif
|
|
|
|
post-extract: # unbundle
|
|
@${RM} -r ${WRKSRC}/libs/jsoncpp ${WRKSRC}/libs/websocketpp
|
|
|
|
.include <bsd.port.post.mk>
|