The package doesn't require GMP, turn it off, provide option instead.diff -r1.4 -r1.5 pkgsrc/lang/polyml/Makefile
(asau)
@@ -1,27 +1,26 @@ | @@ -1,27 +1,26 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2012/06/14 22:23:36 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2012/06/15 09:20:28 asau Exp $ | |
2 | 2 | |||
3 | DISTNAME= polyml.5.4.1 | 3 | DISTNAME= polyml.5.4.1 | |
4 | PKGNAME= polyml-5.4.1 | 4 | PKGNAME= polyml-5.4.1 | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 2 | |
6 | CATEGORIES= lang | 6 | CATEGORIES= lang | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=polyml/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=polyml/} | |
8 | 8 | |||
9 | MAINTAINER= asau@NetBSD.org | 9 | MAINTAINER= asau@NetBSD.org | |
10 | HOMEPAGE= http://polyml.org/ | 10 | HOMEPAGE= http://polyml.org/ | |
11 | COMMENT= Poly/ML is an implementation of Standard ML | 11 | COMMENT= Poly/ML is an implementation of Standard ML | |
12 | 12 | |||
13 | # ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-sparc *-*-powerpc | 13 | # ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-sparc *-*-powerpc | |
14 | # Dumps core on NetBSD/amd64 | 14 | # Dumps core on NetBSD/amd64 | |
15 | 15 | |||
16 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
17 | 17 | |||
18 | GNU_CONFIGURE= yes | 18 | GNU_CONFIGURE= yes | |
19 | USE_LIBTOOL= yes | 19 | USE_LIBTOOL= yes | |
20 | USE_LANGUAGES= c c++ | 20 | USE_LANGUAGES= c c++ | |
21 | TEST_TARGET= tests | 21 | TEST_TARGET= tests | |
22 | 22 | |||
23 | .include "options.mk" | 23 | .include "options.mk" | |
24 | 24 | |||
25 | .include "../../mk/pthread.buildlink3.mk" | 25 | .include "../../mk/pthread.buildlink3.mk" | |
26 | .include "../../devel/gmp/buildlink3.mk" | |||
27 | .include "../../mk/bsd.pkg.mk" | 26 | .include "../../mk/bsd.pkg.mk" |
@@ -1,20 +1,27 @@ | @@ -1,20 +1,27 @@ | |||
1 | # $NetBSD: options.mk,v 1.1.1.1 2009/03/20 21:12:51 asau Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2012/06/15 09:20:28 asau Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.polyml | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.polyml | |
4 | PKG_SUPPORTED_OPTIONS= motif x11 | 4 | PKG_SUPPORTED_OPTIONS= motif x11 gmp | |
5 | PKG_SUGGESTED_OPTIONS= motif x11 | 5 | PKG_SUGGESTED_OPTIONS= motif x11 | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | .if !empty(PKG_OPTIONS:Mx11) | 9 | .if !empty(PKG_OPTIONS:Mx11) | |
10 | CONFIGURE_ARGS+= --with-x | 10 | CONFIGURE_ARGS+= --with-x | |
11 | 11 | |||
12 | .include "../../x11/libXt/buildlink3.mk" | 12 | .include "../../x11/libXt/buildlink3.mk" | |
13 | .include "../../x11/libXmu/buildlink3.mk" | 13 | .include "../../x11/libXmu/buildlink3.mk" | |
14 | .include "../../x11/libXext/buildlink3.mk" | 14 | .include "../../x11/libXext/buildlink3.mk" | |
15 | .include "../../x11/libX11/buildlink3.mk" | 15 | .include "../../x11/libX11/buildlink3.mk" | |
16 | .endif | 16 | .endif | |
17 | 17 | |||
18 | .if !empty(PKG_OPTIONS:Mmotif) | 18 | .if !empty(PKG_OPTIONS:Mmotif) | |
19 | .include "../../mk/motif.buildlink3.mk" | 19 | .include "../../mk/motif.buildlink3.mk" | |
20 | .endif | 20 | .endif | |
21 | ||||
22 | .if !empty(PKG_OPTIONS:Mgmp) | |||
23 | CONFIGURE_ARGS+= --with-gmp=yes | |||
24 | .include "../../devel/gmp/buildlink3.mk" | |||
25 | .else | |||
26 | CONFIGURE_ARGS+= --with-gmp=no | |||
27 | .endif |