summaryrefslogtreecommitdiff
path: root/x11/xextproto
diff options
context:
space:
mode:
authorreed <reed>2006-04-18 17:12:12 +0000
committerreed <reed>2006-04-18 17:12:12 +0000
commit9290d0c88903984083b48b8faf384edcb5328212 (patch)
tree8d35ab2ccfa6b723559f8924d9c8374ddb17fbce /x11/xextproto
parent0e6d7320c0d022190614eac1e7d50486a0a21c59 (diff)
downloadpkgsrc-9290d0c88903984083b48b8faf384edcb5328212.tar.gz
Import xextproto from pkgsrc-wip.
This provides the XExt extension headers from modular Xorg X11. This will replace the xextensions package.
Diffstat (limited to 'x11/xextproto')
-rw-r--r--x11/xextproto/DESCR1
-rw-r--r--x11/xextproto/Makefile20
-rw-r--r--x11/xextproto/PLIST40
-rw-r--r--x11/xextproto/buildlink3.mk20
-rw-r--r--x11/xextproto/builtin.mk89
-rw-r--r--x11/xextproto/distinfo5
6 files changed, 175 insertions, 0 deletions
diff --git a/x11/xextproto/DESCR b/x11/xextproto/DESCR
new file mode 100644
index 00000000000..425841c4a1e
--- /dev/null
+++ b/x11/xextproto/DESCR
@@ -0,0 +1 @@
+This provides the XExt extension headers from modular Xorg X11.
diff --git a/x11/xextproto/Makefile b/x11/xextproto/Makefile
new file mode 100644
index 00000000000..05195376d25
--- /dev/null
+++ b/x11/xextproto/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/18 17:12:12 reed Exp $
+#
+
+DISTNAME= xextproto-7.0.2
+CATEGORIES= x11
+MASTER_SITES= http://xorg.freedesktop.org/releases/individual/proto/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= lars.nordlund@hem.utfors.se
+HOMEPAGE= http://xorg.freedesktop.org/
+COMMENT= XExt extension headers from X.org
+
+CONFLICTS+= xextensions-[0-9]*
+#CONFLICTS+= xorg-libs-[0-9]*
+
+GNU_CONFIGURE= yes
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/xextproto.pc.in
+USE_LANGUAGES= # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xextproto/PLIST b/x11/xextproto/PLIST
new file mode 100644
index 00000000000..93b830575df
--- /dev/null
+++ b/x11/xextproto/PLIST
@@ -0,0 +1,40 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/18 17:12:12 reed Exp $
+include/X11/extensions/MITMisc.h
+include/X11/extensions/XEVI.h
+include/X11/extensions/XEVIstr.h
+include/X11/extensions/XLbx.h
+include/X11/extensions/XShm.h
+include/X11/extensions/XTest.h
+include/X11/extensions/Xag.h
+include/X11/extensions/Xagsrv.h
+include/X11/extensions/Xagstr.h
+include/X11/extensions/Xcup.h
+include/X11/extensions/Xcupstr.h
+include/X11/extensions/Xdbe.h
+include/X11/extensions/Xdbeproto.h
+include/X11/extensions/Xext.h
+include/X11/extensions/dpms.h
+include/X11/extensions/dpmsstr.h
+include/X11/extensions/extutil.h
+include/X11/extensions/lbxbuf.h
+include/X11/extensions/lbxbufstr.h
+include/X11/extensions/lbxdeltastr.h
+include/X11/extensions/lbximage.h
+include/X11/extensions/lbxopts.h
+include/X11/extensions/lbxstr.h
+include/X11/extensions/lbxzlib.h
+include/X11/extensions/mitmiscstr.h
+include/X11/extensions/multibuf.h
+include/X11/extensions/multibufst.h
+include/X11/extensions/security.h
+include/X11/extensions/securstr.h
+include/X11/extensions/shape.h
+include/X11/extensions/shapestr.h
+include/X11/extensions/shmstr.h
+include/X11/extensions/sync.h
+include/X11/extensions/syncstr.h
+include/X11/extensions/xtestext1.h
+include/X11/extensions/xteststr.h
+lib/pkgconfig/xextproto.pc
+@comment @dirrm include/X11/extensions
+@comment @dirrm include/X11
diff --git a/x11/xextproto/buildlink3.mk b/x11/xextproto/buildlink3.mk
new file mode 100644
index 00000000000..da02c2fb664
--- /dev/null
+++ b/x11/xextproto/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/04/18 17:12:12 reed Exp $
+
+BUILDLINK_DEPMETHOD.xextproto?= build
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+XEXTPROTO_BUILDLINK3_MK:= ${XEXTPROTO_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= xextproto
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nxextproto}
+BUILDLINK_PACKAGES+= xextproto
+
+.if !empty(XEXTPROTO_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.xextproto+= xextproto>=7.0
+BUILDLINK_PKGSRCDIR.xextproto?= ../../x11/xextproto
+.endif # XEXTPROTO_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/x11/xextproto/builtin.mk b/x11/xextproto/builtin.mk
new file mode 100644
index 00000000000..4a384924dd5
--- /dev/null
+++ b/x11/xextproto/builtin.mk
@@ -0,0 +1,89 @@
+# $NetBSD: builtin.mk,v 1.1.1.1 2006/04/18 17:12:12 reed Exp $
+
+BUILTIN_PKG:= xextproto
+
+BUILTIN_FIND_FILES_VAR:= H_XEXTPROTO
+BUILTIN_FIND_FILES.H_XEXTPROTO= \
+ ${X11BASE}/include/X11/extensions/extutil.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 !defined(IS_BUILTIN.xextproto)
+IS_BUILTIN.xextproto= no
+#
+# Here, we skip checking whether the files are under ${LOCALBASE} since
+# we'll consider this X11 package to be built-in even if it's a part
+# of one of the pkgsrc-installed X11 distributions.
+#
+. if empty(H_XEXTPROTO:M__nonexistent__)
+IS_BUILTIN.xextproto= yes
+. endif
+.endif
+MAKEVARS+= IS_BUILTIN.xextproto
+
+###
+### 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.xextproto)
+. if ${PREFER.xextproto} == "pkgsrc"
+USE_BUILTIN.xextproto= no
+. else
+USE_BUILTIN.xextproto= ${IS_BUILTIN.xextproto}
+. if defined(BUILTIN_PKG.xextproto) && \
+ !empty(IS_BUILTIN.xextproto:M[yY][eE][sS])
+USE_BUILTIN.xextproto= yes
+. for _dep_ in ${BUILDLINK_API_DEPENDS.xextproto}
+. if !empty(USE_BUILTIN.xextproto:M[yY][eE][sS])
+USE_BUILTIN.xextproto!= \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.xextproto:Q}; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+. endif
+. endfor
+. endif
+. endif # PREFER.xextproto
+.endif
+MAKEVARS+= USE_BUILTIN.xextproto
+
+###
+### The section below only applies if we are not including this file
+### solely to determine whether a built-in implementation exists.
+###
+CHECK_BUILTIN.xextproto?= no
+.if !empty(CHECK_BUILTIN.xextproto:M[nN][oO])
+
+. if !empty(USE_BUILTIN.xextproto:M[yY][eE][sS])
+BUILDLINK_PREFIX.xextproto= ${X11BASE}
+. include "../../mk/x11.buildlink3.mk"
+. include "../../mk/x11.builtin.mk"
+. endif
+
+# If we are using the builtin version, check whether it has a xextproto.pc
+# file or not. If the latter, generate a fake one.
+. if !empty(USE_BUILTIN.xextproto:M[Yy][Ee][Ss])
+BUILDLINK_TARGETS+= xextproto-fake-pc
+
+xextproto-fake-pc:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ src=${BUILDLINK_PREFIX.xextproto}/lib/pkgconfig/xextproto.pc \
+ dst=${BUILDLINK_DIR}/lib/pkgconfig/xextproto.pc; \
+ ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
+ if ${TEST} -f $${src}; then \
+ ${LN} -sf $${src} $${dst}; \
+ else \
+ { ${ECHO} "Name: XExtensions"; \
+ ${ECHO} "Description: Sundry X extension headers"; \
+ ${ECHO} "Version: 1.0.1"; \
+ ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.xextproto}/include"; \
+ } >$${dst}; \
+ fi
+. endif
+
+.endif # CHECK_BUILTIN.xextproto
diff --git a/x11/xextproto/distinfo b/x11/xextproto/distinfo
new file mode 100644
index 00000000000..008b9882c16
--- /dev/null
+++ b/x11/xextproto/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/04/18 17:12:12 reed Exp $
+
+SHA1 (xextproto-7.0.2.tar.bz2) = 724c82cb9f393ae3cf71a178c328608b17ccccac
+RMD160 (xextproto-7.0.2.tar.bz2) = d1f6132065cc41d622cbce967a087f2f8e4d2a0e
+Size (xextproto-7.0.2.tar.bz2) = 68323 bytes