2012-09-26 14:40:12 +02:00
|
|
|
# Created by: ijliao
|
2001-06-21 18:57:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= yacas
|
2012-09-26 14:40:12 +02:00
|
|
|
PORTVERSION= 1.3.3
|
2001-06-21 18:57:55 +02:00
|
|
|
CATEGORIES= math
|
2012-09-26 14:40:12 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION:R}/
|
2001-06-21 18:57:55 +02:00
|
|
|
|
2012-09-26 14:40:12 +02:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Yet Another Computer Algebra System
|
2001-06-21 18:57:55 +02:00
|
|
|
|
2011-11-25 17:45:13 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
OPTIONS_DEFINE= TESTS DOCS
|
2013-10-24 12:18:31 +02:00
|
|
|
OPTIONS_DEFAULT=TESTS
|
2012-06-29 14:42:04 +02:00
|
|
|
TESTS_DESC= Run bundled self-tests after build
|
2012-02-20 01:06:30 +01:00
|
|
|
|
2013-10-24 12:18:31 +02:00
|
|
|
USES= gmake
|
2012-09-26 14:40:12 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-06-11 21:49:09 +02:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2001-10-05 08:43:01 +02:00
|
|
|
|
2012-02-20 01:06:30 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile with GCC 4.2
|
|
|
|
.endif
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-10-29 09:15:05 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-html-doc --with-html-dir=${DOCSDIR}
|
2012-09-26 14:40:12 +02:00
|
|
|
PORTDOCS= *
|
2013-10-29 09:15:05 +01:00
|
|
|
USES+= perl5
|
|
|
|
USE_PERL5= build
|
2010-01-17 06:29:56 +01:00
|
|
|
.else
|
2013-10-29 09:15:05 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-html-doc
|
2010-01-17 06:29:56 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.if ${PORT_OPTIONS:MTESTS}
|
2012-02-20 01:06:30 +01:00
|
|
|
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
2007-10-01 11:25:49 +02:00
|
|
|
.endif
|
|
|
|
|
2012-02-20 01:06:30 +01:00
|
|
|
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}
|
2012-02-20 01:06:30 +01:00
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} check ${MAKE_ARGS})
|
|
|
|
.endif
|
2004-08-11 22:47:39 +02:00
|
|
|
|
2012-06-29 14:42:04 +02:00
|
|
|
.include <bsd.port.mk>
|