freebsd-ports/math/yacas/Makefile
Pietro Cerutti c5fc7a1558 - Update to 1.3.3
- Take maintainership
- Trim Makefile header
2012-09-26 12:40:12 +00:00

52 lines
1.1 KiB
Makefile

# 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>