diff options
author | tron <tron@pkgsrc.org> | 2007-12-16 23:08:05 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2007-12-16 23:08:05 +0000 |
commit | c659f8e6395d5e963c4be0e8603cc0ce10cec79a (patch) | |
tree | 4f56a8474358771b19b9dc8cc77f76d716ff6fdd /x11/libXinerama | |
parent | 810b15adce4956e79daf0b51d265f54d5cd9abf7 (diff) | |
download | pkgsrc-c659f8e6395d5e963c4be0e8603cc0ce10cec79a.tar.gz |
Detect builtin "libXinerama" e.g. under Mac OS X Leopard.
Diffstat (limited to 'x11/libXinerama')
-rw-r--r-- | x11/libXinerama/buildlink3.mk | 4 | ||||
-rw-r--r-- | x11/libXinerama/builtin.mk | 49 |
2 files changed, 51 insertions, 2 deletions
diff --git a/x11/libXinerama/buildlink3.mk b/x11/libXinerama/buildlink3.mk index 428f393be99..684a3522575 100644 --- a/x11/libXinerama/buildlink3.mk +++ b/x11/libXinerama/buildlink3.mk @@ -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 --git a/x11/libXinerama/builtin.mk b/x11/libXinerama/builtin.mk new file mode 100644 index 00000000000..f988d3f5d63 --- /dev/null +++ b/x11/libXinerama/builtin.mk @@ -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 |