aboutsummaryrefslogtreecommitdiff
path: root/math/yacas/Makefile
blob: d7e1da614d36313772a9519fc7ec78ee4d4a49e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: ijliao
# $FreeBSD$

PORTNAME=	yacas
PORTVERSION=	1.6.0
PORTREVISION=	1
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>