pkgsrc/math/pari/Makefile
rillig 70ccd86fe7 math/pari: clean up REPLACE_PERL
Two of the files now use autoconf to insert the correct Perl interpreter.

The dependency "pre-install: replace-interpreter" was useless since then
replace-interpreter would be run once in a direct "bmake update" or
"bmake install", and twice in bulk builds since they first run "bmake
build" and then "bmake install".  And even in the latter case, replacing
the interpreter twice had no effect since it was already replaced in the
configure phase.
2020-05-22 17:45:24 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.79 2020/05/22 17:45:24 rillig Exp $
DISTNAME= pari-2.7.6
PKGREVISION= 5
CATEGORIES= math
MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pari.math.u-bordeaux.fr/
COMMENT= Software package for computer-aided number theory
LICENSE= gnu-gpl-v2
MAKE_JOBS_SAFE= no
USE_LIBTOOL= yes
USE_TOOLS+= gmake perl:run
USE_LANGUAGES+= c c++
HAS_CONFIGURE= yes
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
CONFIGURE_ENV+= PERL5=${PERL5:Q}
MAKE_ENV+= PERL_USE_UNSAFE_INC=1
CONFIGURE_SCRIPT= ${WRKSRC}/Configure
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}/man1
CONFIGURE_ARGS+= --share-prefix=${PREFIX}/share
REPLACE_PERL+= src/desc/PARI/822.pm
BUILD_TARGET= all
TEST_TARGET= test-compat bench
INSTALL_TARGET= install
SUBST_CLASSES+= fix-cfg
SUBST_STAGE.fix-cfg= pre-configure
SUBST_MESSAGE.fix-cfg= Adding CFLAGS to Configure scripts.
SUBST_FILES.fix-cfg= config/get_*
SUBST_SED.fix-cfg= -e 's,$$CC $$extraflag,$$CC $$CFLAGS $$extraflag,g'
.include "options.mk"
# rl_save_prompt()
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"