pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/libXinerama Detect builtin "libXinerama" e.g. unde...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e593ff1a65cc
branches: trunk
changeset: 536554:e593ff1a65cc
user: tron <tron%pkgsrc.org@localhost>
date: Sun Dec 16 23:08:05 2007 +0000
description:
Detect builtin "libXinerama" e.g. under Mac OS X Leopard.
diffstat:
x11/libXinerama/buildlink3.mk | 4 +-
x11/libXinerama/builtin.mk | 49 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 2 deletions(-)
diffs (67 lines):
diff -r 7768ddeeebc2 -r e593ff1a65cc x11/libXinerama/buildlink3.mk
--- a/x11/libXinerama/buildlink3.mk Sun Dec 16 22:19:43 2007 +0000
+++ b/x11/libXinerama/buildlink3.mk Sun Dec 16 23:08:05 2007 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: buildlink3.mk,v 1.2 2006/11/05 16:55:28 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2007/12/16 23:08:05 tron Exp $
.include "../../mk/bsd.fast.prefs.mk"
-.if ${X11_TYPE} != "modular"
+.if ${X11_TYPE} != "modular" && !exists(${X11BASE}/lib/pkgconfig/xinerama.pc)
.include "../../mk/x11.buildlink3.mk"
.else
diff -r 7768ddeeebc2 -r e593ff1a65cc x11/libXinerama/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/libXinerama/builtin.mk Sun Dec 16 23:08:05 2007 +0000
@@ -0,0 +1,49 @@
+# $NetBSD: builtin.mk,v 1.1 2007/12/16 23:08:05 tron Exp $
+
+BUILTIN_PKG:= libXinerama
+
+BUILTIN_FIND_FILES_VAR:= LIB_XINERAMA
+BUILTIN_FIND_FILES.LIB_XINERAMA=${X11BASE}/lib/libXinerama.la
+
+.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.libXinerama= no
+.elif !defined(IS_BUILTIN.libXinerama)
+IS_BUILTIN.libXinerama= no
+. if empty(LIB_XINERAMA:M__nonexistent__)
+IS_BUILTIN.libXinerama= yes
+. endif
+.endif
+MAKEVARS+= IS_BUILTIN.libXinerama
+
+###
+### 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.libXinerama)
+. if ${PREFER.libXinerama} == "pkgsrc"
+USE_BUILTIN.libXinerama= no
+. else
+USE_BUILTIN.libXinerama= ${IS_BUILTIN.libXinerama}
+. if defined(BUILTIN_PKG.libXinerama) && \
+ !empty(IS_BUILTIN.libXinerama:M[yY][eE][sS])
+USE_BUILTIN.libXinerama= yes
+. for _dep_ in ${BUILDLINK_API_DEPENDS.libXinerama}
+. if !empty(USE_BUILTIN.libXinerama:M[yY][eE][sS])
+USE_BUILTIN.libXinerama!= \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libXinerama:Q}; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+. endif
+. endfor
+. endif
+. endif # PREFER.libXinerama
+.endif
+MAKEVARS+= USE_BUILTIN.libXinerama
Home |
Main Index |
Thread Index |
Old Index