pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/inputproto Detect builtin "inputproto" e.g. under ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a72fbcd03bf5
branches: trunk
changeset: 537244:a72fbcd03bf5
user: tron <tron%pkgsrc.org@localhost>
date: Sat Jan 05 15:27:08 2008 +0000
description:
Detect builtin "inputproto" e.g. under Mac OS X Leopard.
diffstat:
x11/inputproto/builtin.mk | 49 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diffs (53 lines):
diff -r 49d0cabbc1f6 -r a72fbcd03bf5 x11/inputproto/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/inputproto/builtin.mk Sat Jan 05 15:27:08 2008 +0000
@@ -0,0 +1,49 @@
+# $NetBSD: builtin.mk,v 1.1 2008/01/05 15:27:08 tron Exp $
+
+BUILTIN_PKG:= inputproto
+
+BUILTIN_FIND_FILES_VAR:= H_XI
+BUILTIN_FIND_FILES.H_XI= ${X11BASE}/include/X11/extensions/XI.h
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+###
+### Determine if there is a built-in implementation of the package and
+### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
+###
+.if ${X11BASE} == ${LOCALBASE}
+IS_BUILTIN.inputproto= no
+.elif !defined(IS_BUILTIN.inputproto)
+IS_BUILTIN.inputproto= no
+. if empty(H_XI:M__nonexistent__)
+IS_BUILTIN.inputproto= yes
+. endif
+.endif
+MAKEVARS+= IS_BUILTIN.inputproto
+
+###
+### Determine whether we should use the built-in implementation if it
+### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
+###
+.if !defined(USE_BUILTIN.inputproto)
+. if ${PREFER.inputproto} == "pkgsrc"
+USE_BUILTIN.inputproto= no
+. else
+USE_BUILTIN.inputproto= ${IS_BUILTIN.inputproto}
+. if defined(BUILTIN_PKG.inputproto) && \
+ !empty(IS_BUILTIN.inputproto:M[yY][eE][sS])
+USE_BUILTIN.inputproto= yes
+. for _dep_ in ${BUILDLINK_API_DEPENDS.inputproto}
+. if !empty(USE_BUILTIN.inputproto:M[yY][eE][sS])
+USE_BUILTIN.inputproto!= \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.inputproto:Q}; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+. endif
+. endfor
+. endif
+. endif # PREFER.inputproto
+.endif
+MAKEVARS+= USE_BUILTIN.inputproto
Home |
Main Index |
Thread Index |
Old Index