ports/math/cadabra2/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

50 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= cadabra2
DISTVERSION= 2.2.5-5
DISTVERSIONSUFFIX= -gf10cac6b9a
PORTREVISION= 4
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Computer algebra system for solving field theory problems
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 \
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 dos2unix gettext-runtime gnome localbase:ldflags pkgconfig python:3.4+ sqlite # 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 texmf texhash
USE_LDCONFIG= yes
OPTIONS_SUB= yes
CMAKE_ON= ENABLE_SYSTEM_JSONCPP BUILD_SHARED_LIBS 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
OPTIONS_DEFINE= GUI
OPTIONS_DEFAULT= GUI
GUI_USES= desktop-file-utils
GUI_USE= GNOME=gtkmm30,gdkpixbuf2
GUI_CMAKE_BOOL= ENABLE_FRONTEND
GUI_VARS= INSTALLS_ICONS=yes
post-extract: # unbundle
@${RM} -r ${WRKSRC}/libs/jsoncpp ${WRKSRC}/libs/websocketpp
.include <bsd.port.mk>