2012-09-26 14:40:12 +02:00
|
|
|
# Created by: ijliao
|
2001-06-21 18:57:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= yacas
|
2016-05-10 11:58:00 +02:00
|
|
|
PORTVERSION= 1.5.0
|
2016-03-04 12:30:12 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2016-03-04 16:13:16 +01:00
|
|
|
CATEGORIES= math
|
2001-06-21 18:57:55 +02:00
|
|
|
|
2016-03-04 12:30:12 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Yet Another Computer Algebra System
|
2001-06-21 18:57:55 +02:00
|
|
|
|
2011-11-25 17:45:13 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-04-08 13:10:10 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_CMAKE_ON= -DENABLE_DOCS:BOOL=ON -DDOCSDIR:STRING=${DOCSDIR_REL}
|
|
|
|
DOCS_BUILD_DEPENDS= sphinx-autogen:textproc/py-sphinx
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2016-05-10 11:58:00 +02:00
|
|
|
TEST_TARGET= test
|
2016-04-01 16:16:16 +02:00
|
|
|
TEST_DEPENDS= bash:shells/bash
|
2012-02-20 01:06:30 +01:00
|
|
|
|
2016-03-04 12:30:12 +01:00
|
|
|
USES= cmake:outsource compiler:c++11-lib
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= grzegorzmazur
|
2015-04-18 16:07:54 +02:00
|
|
|
|
2016-04-08 13:10:10 +02:00
|
|
|
PLIST_SUB= SHLIB_VERSION=${PORTVERSION:S/.//}.0
|
|
|
|
|
2015-04-18 16:07:54 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == "gcc"
|
2016-03-04 16:13:16 +01:00
|
|
|
CXXFLAGS+= -D_GLIBCXX_USE_C99
|
2010-01-17 06:29:56 +01:00
|
|
|
.endif
|
|
|
|
|
2012-02-20 01:06:30 +01:00
|
|
|
post-patch:
|
2014-02-03 16:04:21 +01:00
|
|
|
# Can't use USES=shebangfix here, cause the path appears several
|
|
|
|
# times in the file.
|
2016-05-10 11:58:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| /bin/bash| ${LOCALBASE}/bin/bash|g' \
|
2015-04-18 16:07:54 +02:00
|
|
|
${WRKSRC}/tests/test-yacas
|
2016-05-10 11:58:00 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^install/s|^|#|' \
|
|
|
|
${WRKSRC}/tests/CMakeLists.txt
|
2015-04-18 16:07:54 +02:00
|
|
|
.include <bsd.port.post.mk>
|