summaryrefslogtreecommitdiff
path: root/textproc/expat
diff options
context:
space:
mode:
authortv <tv>2006-03-03 17:47:58 +0000
committertv <tv>2006-03-03 17:47:58 +0000
commitb9a2b2d39573c915c36438e30bc41524ee9996d0 (patch)
tree45f01b0be1173bd7c7e15f7b3aa668f3a02e2a66 /textproc/expat
parent3db5d7943bd076f819c89353400130520c84e585 (diff)
downloadpkgsrc-b9a2b2d39573c915c36438e30bc41524ee9996d0.tar.gz
Make it possible to use a builtin expat rooted at /usr (common to some
Linux distros). Still preferred to be pkgsrc by default in pkgsrc/mk, but allows PREFER.expat=native to work on such systems now.
Diffstat (limited to 'textproc/expat')
-rw-r--r--textproc/expat/builtin.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/textproc/expat/builtin.mk b/textproc/expat/builtin.mk
index 4f5677823c3..b523b2bd4ad 100644
--- a/textproc/expat/builtin.mk
+++ b/textproc/expat/builtin.mk
@@ -1,9 +1,9 @@
-# $NetBSD: builtin.mk,v 1.7 2005/06/03 19:12:49 jlam Exp $
+# $NetBSD: builtin.mk,v 1.8 2006/03/03 17:47:58 tv Exp $
BUILTIN_PKG:= expat
BUILTIN_FIND_FILES_VAR:= H_EXPAT
-BUILTIN_FIND_FILES.H_EXPAT= ${X11BASE}/include/expat.h
+BUILTIN_FIND_FILES.H_EXPAT= ${X11BASE}/include/expat.h /usr/include/expat.h
.include "../../mk/buildlink3/bsd.builtin.mk"
@@ -14,9 +14,13 @@ BUILTIN_FIND_FILES.H_EXPAT= ${X11BASE}/include/expat.h
.if !defined(IS_BUILTIN.expat)
IS_BUILTIN.expat= no
. if exists(${H_EXPAT})
+. if !empty(H_EXPAT:M${X11BASE}/)
BUILTIN_IMAKE_CHECK:= expat:BuildExpatLibrary
-. include "../../mk/buildlink3/imake-check.mk"
+. include "../../mk/buildlink3/imake-check.mk"
IS_BUILTIN.expat= ${BUILTIN_IMAKE_CHECK.expat}
+. else
+IS_BUILTIN.expat= yes
+. endif
. endif
.endif
MAKEVARS+= IS_BUILTIN.expat