freebsd-ports/math/yacas/Makefile
2016-05-10 09:58:00 +00:00

44 lines
989 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= yacas
PORTVERSION= 1.5.0
DISTVERSIONPREFIX= v
CATEGORIES= math
MAINTAINER= gahr@FreeBSD.org
COMMENT= Yet Another Computer Algebra System
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= DOCS
DOCS_CMAKE_ON= -DENABLE_DOCS:BOOL=ON -DDOCSDIR:STRING=${DOCSDIR_REL}
DOCS_BUILD_DEPENDS= sphinx-autogen:textproc/py-sphinx
PORTDOCS= *
TEST_TARGET= test
TEST_DEPENDS= bash:shells/bash
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>