aboutsummaryrefslogtreecommitdiffstats
path: root/math/yacas/Makefile
blob: 8b5b60db5dd0c73c960a8b2efbff6fdd965c73c8 (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

USE_PERL5_BUILD=yes
USE_GMAKE=  yes
#USE_AUTOTOOLS= libtool
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= 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>