1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/math/yacas/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

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, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

52 lines
1.1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= yacas
PORTVERSION= 1.6.0
PORTREVISION= 4
DISTVERSIONPREFIX= v
CATEGORIES= math
MAINTAINER= gahr@FreeBSD.org
COMMENT= Yet Another Computer Algebra System
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
TEST_DEPENDS= bash:shells/bash
OPTIONS_DEFINE= DOCS
DOCS_CMAKE_ON= -DENABLE_DOCS:BOOL=ON \
-DDOCSDIR:STRING=${DOCSDIR_REL} \
-DENABLE_CYACAS_CONSOLE:BOOL=ON \
-DENABLE_CYACAS_KERNEL:BOOL=OFF \
-DENABLE_CYACAS_GUI:BOOL=OFF \
-DENABLE_JYACAS:BOOL=OFF
DOCS_BUILD_DEPENDS= sphinx-autogen:textproc/py-sphinx
PORTDOCS= *
TEST_TARGET= test
USES= cmake:outsource compiler:c++11-lib
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= grzegorzmazur
PLIST_SUB= SHLIB_VERSION=${PORTVERSION:S/.//}.0
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == "gcc"
CXXFLAGS+= -D_GLIBCXX_USE_C99
.endif
post-patch:
# Can't use USES=shebangfix here, cause the path appears several
# times in the file.
@${REINPLACE_CMD} -e 's| /bin/bash| ${LOCALBASE}/bin/bash|g' \
${WRKSRC}/tests/test-yacas
@${REINPLACE_CMD} -e '/^install/s|^|#|' \
${WRKSRC}/tests/CMakeLists.txt
.include <bsd.port.post.mk>