c5fc7a1558
- Take maintainership - Trim Makefile header
52 lines
1.1 KiB
Makefile
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>
|