diff options
author | obache <obache> | 2010-12-10 08:45:15 +0000 |
---|---|---|
committer | obache <obache> | 2010-12-10 08:45:15 +0000 |
commit | 87699aeaa74921c2302fdbe0a9f3029dae1ffa55 (patch) | |
tree | 72c7920861da0e77b62b880bd6b0f501eae9dbe4 | |
parent | bacc02385c55015f9c27535b60cb8075b870077c (diff) | |
download | pkgsrc-87699aeaa74921c2302fdbe0a9f3029dae1ffa55.tar.gz |
Create fake xau.pc and xdmcp.pc for x11/libxcb, PR#44122.
-rw-r--r-- | x11/libXau/builtin.mk | 32 | ||||
-rw-r--r-- | x11/libXdmcp/builtin.mk | 32 |
2 files changed, 62 insertions, 2 deletions
diff --git a/x11/libXau/builtin.mk b/x11/libXau/builtin.mk index c5b7248497f..3b9b354be3e 100644 --- a/x11/libXau/builtin.mk +++ b/x11/libXau/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.2 2008/10/05 21:36:33 cube Exp $ +# $NetBSD: builtin.mk,v 1.3 2010/12/10 08:45:15 obache Exp $ BUILTIN_PKG:= libXau @@ -49,3 +49,33 @@ USE_BUILTIN.libXau!= \ MAKEVARS+= USE_BUILTIN.libXau .include "../../mk/x11.builtin.mk" + +CHECK_BUILTIN.libXau?= no +.if !empty(CHECK_BUILTIN.libXau:M[nN][oO]) + +# If we are using the builtin version, check whether it has a xau.pc +# file or not. If the latter, generate a fake one. +. if !empty(USE_BUILTIN.libXau:M[Yy][Ee][Ss]) +BUILDLINK_TARGETS+= xau-fake-pc + +xau-fake-pc: + ${RUN} \ + src=${BUILDLINK_PREFIX.libXau}/lib/pkgconfig/xau.pc; \ + dst=${BUILDLINK_DIR}/lib/pkgconfig/xau.pc; \ + ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \ + if ${TEST} -f $${src}; then \ + ${LN} -sf $${src} $${dst}; \ + else \ + { ${ECHO} "Name: Xau"; \ + ${ECHO} "Description: X authorization file management library"; \ + ${ECHO} "Version: 1.0.1"; \ + ${ECHO} "Requires: xproto"; \ + ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.libXau}/include"; \ + ${ECHO} "Libs: -L${BUILDLINK_PREFIX.libXau}/lib" \ + "${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libXau}/lib" \ + "-lXau"; \ + } >$${dst}; \ + fi +. endif + +.endif # CHECK_BUILTIN.libXau diff --git a/x11/libXdmcp/builtin.mk b/x11/libXdmcp/builtin.mk index f98afdc44c9..0fee67142ef 100644 --- a/x11/libXdmcp/builtin.mk +++ b/x11/libXdmcp/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.2 2008/10/05 21:36:33 cube Exp $ +# $NetBSD: builtin.mk,v 1.3 2010/12/10 08:45:16 obache Exp $ BUILTIN_PKG:= libXdmcp @@ -49,3 +49,33 @@ USE_BUILTIN.libXdmcp!= \ MAKEVARS+= USE_BUILTIN.libXdmcp .include "../../mk/x11.builtin.mk" + +CHECK_BUILTIN.libXdmcp?= no +.if !empty(CHECK_BUILTIN.libXdmcp:M[nN][oO]) + +# If we are using the builtin version, check whether it has a xdmcp.pc +# file or not. If the latter, generate a fake one. +. if !empty(USE_BUILTIN.libXdmcp:M[Yy][Ee][Ss]) +BUILDLINK_TARGETS+= xdmcp-fake-pc + +xdmcp-fake-pc: + ${RUN} \ + src=${BUILDLINK_PREFIX.libXdmcp}/lib/pkgconfig/xdmcp.pc; \ + dst=${BUILDLINK_DIR}/lib/pkgconfig/xdmcp.pc; \ + ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \ + if ${TEST} -f $${src}; then \ + ${LN} -sf $${src} $${dst}; \ + else \ + { ${ECHO} "Name: Xdmcp"; \ + ${ECHO} "Description: X Display Manager Control Protocol library"; \ + ${ECHO} "Version: 0.99"; \ + ${ECHO} "Requires: xproto"; \ + ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.libXdmcp}/include"; \ + ${ECHO} "Libs: -L${BUILDLINK_PREFIX.libXdmcp}/lib" \ + "${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libXdmcp}/lib" \ + "-lXdmcp"; \ + } >$${dst}; \ + fi +. endif + +.endif # CHECK_BUILTIN.libXdmcp |