landry 5c7640534e Update to pari 2.1.7, from Sebastien Marie (thanks!)
Fixes readline support, correct tests target, and dont pickup emacs if
installed. All tests pass and also Math::Pari tests.

We cant update to 2.3 branch for obscure breakage with other things
depending on it.
2014-09-15 15:11:35 +00:00

37 lines
866 B
Makefile

# $OpenBSD: Makefile,v 1.13 2014/09/15 15:11:35 landry Exp $
COMMENT= number theory-oriented computer algebra system
DISTNAME= pari-2.1.7
EXTRACT_SUFX= .tgz
CATEGORIES= math
HOMEPAGE= http://pari.math.u-bordeaux.fr/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= X11 c m ncurses readline
MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/2.1/
BUILD_DEPENDS= print/texlive/base
USE_GROFF = Yes
CONFIGURE_SCRIPT= Configure
CONFIGURE_STYLE= simple
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/pari \
--miscdir=${PREFIX}/share/pari \
--prefix=${PREFIX} \
--host=${ARCH}
TEST_TARGET= dobench
post-install:
mv ${PREFIX}/share/pari/doc ${PREFIX}/share/doc/pari
mv ${PREFIX}/share/pari/[A-Z]* ${PREFIX}/share/doc/pari
mv ${PREFIX}/share/pari/examples ${PREFIX}/share/examples/pari
.include <bsd.port.mk>