Tweak math/qtiplot version 0.9.8.9_8
[dports.git] / math / yacas / Makefile
1 # Created by: ijliao
2 # $FreeBSD$
3
4 PORTNAME=       yacas
5 PORTVERSION=    1.3.4
6 CATEGORIES=     math
7 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION:R}/
8
9 MAINTAINER=     gahr@FreeBSD.org
10 COMMENT=        Yet Another Computer Algebra System
11
12 LICENSE=        GPLv2
13 LICENSE_FILE=   ${WRKSRC}/COPYING
14
15 OPTIONS_DEFINE= DOCS
16
17 #USES=          gmake
18 GNU_CONFIGURE=  yes
19
20 .include <bsd.port.options.mk>
21
22 .if ${ARCH} == "sparc64"
23 BROKEN=         Does not compile with GCC 4.2
24 .endif
25
26 .if ${PORT_OPTIONS:MDOCS}
27 CONFIGURE_ARGS+=--enable-html-doc --with-html-dir=${DOCSDIR}
28 PORTDOCS=       *
29 USES+=          perl5
30 USE_PERL5=      build
31 .else
32 CONFIGURE_ARGS+=--disable-html-doc
33 .endif
34
35 post-patch:
36 #       Can't use USES=shebangfix here, cause the path appears several
37 #       times in the file.
38         @${REINPLACE_CMD} -e 's| /bin/bash| ${LOCALBASE}/bin/bash|g' \
39             ${WRKSRC}/tests/test-yacas
40
41 regression-test: build
42 #       This requires bash. I don't add it as a dependency to the port, as it's
43 #       not needed for the general use.
44         @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
45             ${MAKEFILE} check ${MAKE_ARGS})
46
47 .include <bsd.port.mk>