| @@ -1,50 +1,44 @@ | | | @@ -1,50 +1,44 @@ |
1 | # $NetBSD: Makefile,v 1.7 2020/01/26 17:31:39 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2020/05/13 04:19:42 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= pari-2.3.5 | | 3 | DISTNAME= pari-2.3.5 |
4 | PKGREVISION= 23 | | 4 | PKGREVISION= 23 |
5 | CATEGORIES= math | | 5 | CATEGORIES= math |
6 | MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/ | | 6 | MASTER_SITES= http://pari.math.u-bordeaux.fr/pub/pari/unix/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://pari.math.u-bordeaux.fr/ | | 9 | HOMEPAGE= https://pari.math.u-bordeaux.fr/ |
10 | COMMENT= Software package for computer-aided number theory (2.3 version) | | 10 | COMMENT= Software package for computer-aided number theory (2.3 version) |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | MAKE_JOBS_SAFE= no | | 13 | MAKE_JOBS_SAFE= no |
14 | | | 14 | |
15 | USE_LIBTOOL= yes | | 15 | USE_LIBTOOL= yes |
16 | USE_TOOLS+= perl | | 16 | USE_TOOLS+= perl |
17 | USE_LANGUAGES+= c c++ | | 17 | USE_LANGUAGES+= c c++ |
18 | HAS_CONFIGURE= yes | | 18 | HAS_CONFIGURE= yes |
19 | CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} | | 19 | CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} |
20 | CONFIGURE_ENV+= PERL5=${PERL5:Q} | | 20 | CONFIGURE_ENV+= PERL5=${PERL5:Q} |
21 | | | 21 | |
22 | CONFIGURE_SCRIPT= ${WRKSRC}/Configure | | 22 | CONFIGURE_SCRIPT= ${WRKSRC}/Configure |
23 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 23 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
24 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}/man1 | | 24 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}/man1 |
25 | CONFIGURE_ARGS+= --share-prefix=${PREFIX}/share | | 25 | CONFIGURE_ARGS+= --share-prefix=${PREFIX}/share |
26 | | | 26 | |
27 | REPLACE_PERL+= src/desc/PARI/822.pm | | 27 | REPLACE_PERL+= src/desc/PARI/822.pm |
28 | | | 28 | |
29 | BUILD_TARGET= all | | 29 | BUILD_TARGET= all |
30 | TEST_TARGET= test-compat bench | | 30 | TEST_TARGET= test-compat bench |
31 | INSTALL_TARGET= install | | 31 | INSTALL_TARGET= install |
32 | | | 32 | |
33 | SUBST_CLASSES+= fix-cfg | | 33 | SUBST_CLASSES+= fix-cfg |
34 | SUBST_STAGE.fix-cfg= pre-configure | | 34 | SUBST_STAGE.fix-cfg= pre-configure |
35 | SUBST_MESSAGE.fix-cfg= Adding CFLAGS to Configure scripts. | | 35 | SUBST_MESSAGE.fix-cfg= Adding CFLAGS to Configure scripts. |
36 | SUBST_FILES.fix-cfg= config/get_* | | 36 | SUBST_FILES.fix-cfg= config/get_* |
37 | SUBST_SED.fix-cfg= -e 's,$$CC $$extraflag,$$CC $$CFLAGS $$extraflag,g' | | 37 | SUBST_SED.fix-cfg= -e 's,$$CC $$extraflag,$$CC $$CFLAGS $$extraflag,g' |
38 | | | 38 | |
39 | SUBST_CLASSES+= fix-wrap | | | |
40 | SUBST_STAGE.fix-wrap= post-build | | | |
41 | SUBST_MESSAGE.fix-wrap= Removing TOOLS_DIR references | | | |
42 | SUBST_FILES.fix-wrap= */pari.cfg | | | |
43 | SUBST_SED.fix-wrap= -e "s,${TOOLS_DIR}/bin/,,g" | | | |
44 | | | | |
45 | .include "options.mk" | | 39 | .include "options.mk" |
46 | | | 40 | |
47 | .include "../../devel/ncurses/buildlink3.mk" | | 41 | .include "../../devel/ncurses/buildlink3.mk" |
48 | # rl_save_prompt() | | 42 | # rl_save_prompt() |
49 | .include "../../devel/readline/buildlink3.mk" | | 43 | .include "../../devel/readline/buildlink3.mk" |
50 | .include "../../mk/bsd.pkg.mk" | | 44 | .include "../../mk/bsd.pkg.mk" |