diff options
author | hans <hans@pkgsrc.org> | 2011-09-14 16:10:12 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2011-09-14 16:10:12 +0000 |
commit | 71fd2d1eddc649d80f9c403e2bc0e08538faa356 (patch) | |
tree | 7e4d8132c89f18642f1922f883bfe341d60adf9a /devel/gmp | |
parent | 7a7fba7f8f115b1642fb7786b536020b347ae362 (diff) | |
download | pkgsrc-71fd2d1eddc649d80f9c403e2bc0e08538faa356.tar.gz |
Fix detection of builtin gmp on SunOS.
Diffstat (limited to 'devel/gmp')
-rw-r--r-- | devel/gmp/builtin.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/gmp/builtin.mk b/devel/gmp/builtin.mk index c0e08913890..b392919284d 100644 --- a/devel/gmp/builtin.mk +++ b/devel/gmp/builtin.mk @@ -1,8 +1,8 @@ -# $NetBSD: builtin.mk,v 1.1 2011/07/08 09:40:57 drochner Exp $ +# $NetBSD: builtin.mk,v 1.2 2011/09/14 16:10:12 hans Exp $ BUILTIN_PKG:= gmp -PKGCONFIG_FILE.gmp= /usr/include/gmp.h +PKGCONFIG_FILE.gmp= /usr/include/gmp.h /usr/include/gmp/gmp.h PKGCONFIG_BASE.gmp= /usr BUILTIN_VERSION_SCRIPT.gmp= ${AWK} \ @@ -13,3 +13,9 @@ BUILTIN_VERSION_SCRIPT.gmp= ${AWK} \ print major "." minor "." patch; else print ""; }' .include "../../mk/buildlink3/pkgconfig-builtin.mk" + +.if !empty(USE_BUILTIN.gmp:M[Yy][Ee][Ss]) +GMP_INCLUDE= ${FIND_FILES_gmp:S/\/gmp.h//} +CONFIGURE_ARGS+= --with-gmp-include=${GMP_INCLUDE} +CPPFLAGS+= -I${GMP_INCLUDE} +.endif |