summaryrefslogtreecommitdiff
path: root/x11/libXdmcp
diff options
context:
space:
mode:
authorobache <obache>2010-12-10 08:45:15 +0000
committerobache <obache>2010-12-10 08:45:15 +0000
commit43329ce562dad5b9404bd3427ee02c0da10b68db (patch)
tree72c7920861da0e77b62b880bd6b0f501eae9dbe4 /x11/libXdmcp
parent5ef67d39c837b7003b76d562e40c128036aaf182 (diff)
downloadpkgsrc-43329ce562dad5b9404bd3427ee02c0da10b68db.tar.gz
Create fake xau.pc and xdmcp.pc for x11/libxcb, PR#44122.
Diffstat (limited to 'x11/libXdmcp')
-rw-r--r--x11/libXdmcp/builtin.mk32
1 files changed, 31 insertions, 1 deletions
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