summaryrefslogtreecommitdiff
path: root/devel/gmp/builtin.mk
diff options
context:
space:
mode:
authorobache <obache>2014-03-07 11:30:49 +0000
committerobache <obache>2014-03-07 11:30:49 +0000
commit7b4503efd90d2c5ad427aa5d1b65ea9365f33ca2 (patch)
tree2c753f80498731a069eacaa2d37221e996d26bd8 /devel/gmp/builtin.mk
parent85c0bae86319bf10b0ce6be7dc889b2eef8f6a91 (diff)
downloadpkgsrc-7b4503efd90d2c5ad427aa5d1b65ea9365f33ca2.tar.gz
Change to support system prefixes other than "/usr".
Diffstat (limited to 'devel/gmp/builtin.mk')
-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; } \