blob: dcbca9ba5e4316fe002ae455e75c371ce1f0ee92 (
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
52
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= yacas
PORTVERSION= 1.3.3
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION:R}/
MAINTAINER= gahr@FreeBSD.org
COMMENT= Yet Another Computer Algebra System
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= TESTS DOCS
OPTIONS_DEFAULT= TESTS
TESTS_DESC= Run bundled self-tests after build
USES= gmake perl5
USE_PERL5= build
#USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile with GCC 4.2
.endif
.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+= --enable-html-doc --with-html-dir=${DOCSDIR}
PORTDOCS= *
.else
CONFIGURE_ARGS+= --disable-html-doc
.endif
.if ${PORT_OPTIONS:MTESTS}
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
.endif
post-patch:
@${REINPLACE_CMD} -e \
's| /bin/bash| ${LOCALBASE}/bin/bash|' ${WRKSRC}/tests/test-yacas
post-build:
.if ${PORT_OPTIONS:MTESTS}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
${MAKEFILE} check ${MAKE_ARGS})
.endif
.include <bsd.port.mk>
|