summaryrefslogtreecommitdiff
path: root/devel/gmp
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-03-07 11:30:49 +0000
committerobache <obache@pkgsrc.org>2014-03-07 11:30:49 +0000
commitcf186a13528ddbd18f2cf2e2351f36174b8b4c5c (patch)
tree2c753f80498731a069eacaa2d37221e996d26bd8 /devel/gmp
parent0dc5ce2ee87e6a9d6b63932c072471d24b838708 (diff)
downloadpkgsrc-cf186a13528ddbd18f2cf2e2351f36174b8b4c5c.tar.gz
Change to support system prefixes other than "/usr".
Diffstat (limited to 'devel/gmp')
-rw-r--r--devel/gmp/builtin.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/gmp/builtin.mk b/devel/gmp/builtin.mk
index aa2437243be..3e9b4d50674 100644
--- a/devel/gmp/builtin.mk
+++ b/devel/gmp/builtin.mk
@@ -1,9 +1,11 @@
-# $NetBSD: builtin.mk,v 1.4 2014/03/02 08:00:00 obache Exp $
+# $NetBSD: builtin.mk,v 1.5 2014/03/07 11:30:49 obache Exp $
BUILTIN_PKG:= gmp
-PKGCONFIG_FILE.gmp= /usr/include/gmp.h /usr/include/gmp/gmp.h
-PKGCONFIG_BASE.gmp= /usr
+BUILTIN_FIND_HEADERS_VAR:= H_GMP
+BUILTIN_FIND_HEADERS.H_GMP= gmp.h gmp/gmp.h
+PKGCONFIG_FILE.gmp= H_GMP
+PKGCONFIG_BASE.gmp= ${H_GMP:H:S/\gmp$//:H}
BUILTIN_VERSION_SCRIPT.gmp= ${AWK} \
'/\#define[ \t]*__GNU_MP_VERSION[ \t]/ { major = $$3; } \