freebsd-ports/math/yacas/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: ijliao
# $FreeBSD$
PORTNAME= yacas
PORTVERSION= 1.3.3
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION:R}/
MAINTAINER= gahr@FreeBSD.org
2003-02-20 20:00:52 +01:00
COMMENT= Yet Another Computer Algebra System
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
2012-06-29 14:42:04 +02:00
OPTIONS_DEFINE= TESTS DOCS
OPTIONS_DEFAULT=TESTS
2012-06-29 14:42:04 +02:00
TESTS_DESC= Run bundled self-tests after build
USES= gmake
GNU_CONFIGURE= yes
2012-06-29 14:42:04 +02:00
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile with GCC 4.2
.endif
2012-06-29 14:42:04 +02:00
.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--enable-html-doc --with-html-dir=${DOCSDIR}
PORTDOCS= *
USES+= perl5
USE_PERL5= build
.else
CONFIGURE_ARGS+=--disable-html-doc
.endif
2012-06-29 14:42:04 +02:00
.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:
2012-06-29 14:42:04 +02:00
.if ${PORT_OPTIONS:MTESTS}
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
${MAKEFILE} check ${MAKE_ARGS})
.endif
2012-06-29 14:42:04 +02:00
.include <bsd.port.mk>