freebsd-ports/math/yacas/Makefile
Jan Beich fbea4307e8 devel/google{test,mock}: update to 1.10.0
- Drop static library
- Drop gtest-config and gmock-config
- Drop GTEST_LIB_CHECK autoconf macro
- Drop gmock_doctory.py as it's too old
- Expose tests via option

Changes:	https://github.com/google/googletest/compare/release-1.8.1...release-1.10.0
Reported by:	GitHub (watch releases)
PR:		239654
Differential Revision:	https://reviews.freebsd.org/D19430
2019-10-05 00:42:20 +00:00

45 lines
1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= yacas
PORTVERSION= 1.7.0
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= math
MAINTAINER= gahr@FreeBSD.org
COMMENT= Yet Another Computer Algebra System
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
TEST_DEPENDS= bash:shells/bash \
BUILD_DEPENDS= googletest>0:devel/googletest
CMAKE_ARGS= -DENABLE_DOCS:BOOL=OFF \
-DENABLE_CYACAS_CONSOLE:BOOL=ON \
-DENABLE_CYACAS_KERNEL:BOOL=OFF \
-DENABLE_CYACAS_GUI:BOOL=OFF \
-DENABLE_JYACAS:BOOL=OFF \
-DENABLE_CYACAS_UNIT_TESTS:BOOL=ON \
-DENABLE_CYACAS_BENCHMARKS:BOOL=OFF
TEST_TARGET= test
USES= cmake compiler:c++17-lang
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= grzegorzmazur
PLIST_SUB= SHLIB_VERSION=${PORTVERSION:S/.//}.0
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.mk>