summaryrefslogtreecommitdiff
path: root/math/cadabra2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/cadabra2/Makefile')
-rw-r--r--math/cadabra2/Makefile45
1 files changed, 36 insertions, 9 deletions
diff --git a/math/cadabra2/Makefile b/math/cadabra2/Makefile
index 62c335ef42a0..9b6813d9b079 100644
--- a/math/cadabra2/Makefile
+++ b/math/cadabra2/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= cadabra2
-PORTVERSION= 2.0.816
-PORTREVISION= 2
+PORTVERSION= 2.0.930
CATEGORIES= math
MAINTAINER= yuri@rawbw.com
@@ -12,9 +11,12 @@ COMMENT= Computer algebra system for solving field theory problems
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/doc/license.txt
+PATCH_DEPENDS= ${NONEXISTENT}:devel/boost-libs:extract \
+ ${NONEXISTENT}:devel/websocketpp:extract
+BUILD_DEPENDS= ${LOCALBASE}/include/websocketpp/client.hpp:devel/websocketpp
LIB_DEPENDS= libboost_python.so:devel/boost-python-libs \
- libpcrecpp.so:devel/pcre \
libboost_system.so:devel/boost-libs \
+ libpcrecpp.so:devel/pcre \
libjsoncpp.so:devel/jsoncpp \
libgmp.so:math/gmp \
libuuid.so:misc/e2fsprogs-libuuid
@@ -23,23 +25,23 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/sympy/__init__.py:math/py-sympy \
USE_GITHUB= yes
GH_ACCOUNT= kpeeters
-GH_TAGNAME= 8258bfc
+GH_TAGNAME= 85ac041
BROKEN_FreeBSD_9= does not build: fatal error: 'type_traits' file not found
-GUI_BROKEN= Builds but has a WebSockets communication problem in the runtime
-GUI_CONFLICTS_BUILD= websocketpp-*
OPTIONS_DEFINE= GUI
+OPTIONS_DEFAULT=GUI
-USES= compiler:c++14-lang cmake gettext gmake pkgconfig python:2 sqlite
+USES= compiler:c++14-lang cmake gettext-runtime gmake pkgconfig python:2 sqlite
GUI_USE= GNOME=gtkmm30,gdkpixbuf2
-USE_TEX= base
+USE_TEX= base texmf texhash
USE_LDCONFIG= yes
OPTIONS_SUB= yes
GUI_INSTALLS_ICONS= yes
CMAKE_ARGS+= -DBOOST_ROOT=${LOCALBASE}
CMAKE_ARGS+= -DUSE_PYTHON_3:BOOL=OFF
+GUI_CMAKE_OFF+= -DENABLE_FRONTEND:BOOL=OFF
GUI_CMAKE_ON+= -DENABLE_FRONTEND:BOOL=ON
CXXFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include/jsoncpp
@@ -48,7 +50,23 @@ CMAKE_CXX_FLAGS=${CXXFLAGS}
CMAKE_INSTALL_PREFIX=${PREFIX}
post-extract:
- ${RM} -r ${WRKSRC}/client_server/jsoncpp
+ @${RM} -r ${WRKSRC}/client_server/jsoncpp ${WRKSRC}/client_server/websocketpp
+
+pre-patch:
+ # workaround for https://github.com/zaphoyd/websocketpp/issues/563, so that the local patch can be applied
+ @${MKDIR} ${WRKSRC}/override/include/boost/asio/detail/impl
+ @${CP} `${MAKE} -C ${PORTSDIR}/devel/boost-libs -V WRKSRC`/boost/asio/detail/impl/socket_ops.ipp \
+ ${WRKSRC}/override/include/boost/asio/detail/impl/
+ # workaround for https://github.com/zaphoyd/websocketpp/issues/587, so that the local patch can be applied
+ @${MKDIR} ${WRKSRC}/override/include/websocketpp/transport/asio
+ @${CP} `${MAKE} -C ${PORTSDIR}/devel/websocketpp -V WRKSRC`/websocketpp/transport/asio/endpoint.hpp \
+ ${WRKSRC}/override/include/websocketpp/transport/asio/
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|"$${GIT_COMMIT_SERIAL}.$${GIT_SHORT_SHA}"|"FreeBSD port version=${PORTVERSION} tag=${GH_TAGNAME}"|' \
+ ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e 's|include_directories(|include_directories($${PROJECT_SOURCE_DIR}/override/include |' \
+ ${WRKSRC}/CMakeLists.txt
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cadabra2html
@@ -57,5 +75,14 @@ post-install:
post-install-GUI-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cadabra-gtk
+ @${GZIP_CMD} ${GZIP} < ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2.svg \
+ > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2.svgz
+ @${RM} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2.svg
+ @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/cadabra2.png \
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/cadabra-gtk.png
+ @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/cadabra2.png \
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/cadabra-gtk.png
+ @${LN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra2.svgz \
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/cadabra-gtk.svgz
.include <bsd.port.mk>