summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreed <reed>2006-04-18 17:16:06 +0000
committerreed <reed>2006-04-18 17:16:06 +0000
commitaf4875b78362adad022546a7240e74412a108712 (patch)
tree934a5fb249077f981071bcdfe2e32f60120f823e
parent21ab40df72e132926a99617138705375a99ee82a (diff)
downloadpkgsrc-af4875b78362adad022546a7240e74412a108712.tar.gz
Import renderproto from pkgsrc-wip.
This provides the Render extension headers from modular X.org X11 project. This will replace the renderext package.
-rw-r--r--x11/renderproto/DESCR2
-rw-r--r--x11/renderproto/Makefile20
-rw-r--r--x11/renderproto/PLIST5
-rw-r--r--x11/renderproto/buildlink3.mk20
-rw-r--r--x11/renderproto/builtin.mk87
-rw-r--r--x11/renderproto/distinfo5
6 files changed, 139 insertions, 0 deletions
diff --git a/x11/renderproto/DESCR b/x11/renderproto/DESCR
new file mode 100644
index 00000000000..e3c762cd177
--- /dev/null
+++ b/x11/renderproto/DESCR
@@ -0,0 +1,2 @@
+This provides the Render extension headers from modular X.org X11
+project.
diff --git a/x11/renderproto/Makefile b/x11/renderproto/Makefile
new file mode 100644
index 00000000000..28b00ee7d80
--- /dev/null
+++ b/x11/renderproto/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/18 17:16:06 reed Exp $
+#
+
+DISTNAME= renderproto-0.9.1
+CATEGORIES= x11
+MASTER_SITES= http://xorg.freedesktop.org/releases/X11R7.0-RC1/proto/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://xorg.freedesktop.org/
+COMMENT= Render extension headers from modular X.org
+
+CONFLICTS+= renderext-[0-9]*
+#CONFLICTS+= xorg-libs-[0-9]* # not in same PREFIX
+
+GNU_CONFIGURE= yes
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/renderproto.pc.in
+USE_LANGUAGES= # empty
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/renderproto/PLIST b/x11/renderproto/PLIST
new file mode 100644
index 00000000000..c51e7f28b7c
--- /dev/null
+++ b/x11/renderproto/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/18 17:16:06 reed Exp $
+include/X11/extensions/render.h
+include/X11/extensions/renderproto.h
+lib/pkgconfig/renderproto.pc
+@comment @dirrm include/X11/extensions
diff --git a/x11/renderproto/buildlink3.mk b/x11/renderproto/buildlink3.mk
new file mode 100644
index 00000000000..0499398d314
--- /dev/null
+++ b/x11/renderproto/buildlink3.mk
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/04/18 17:16:06 reed Exp $
+
+BUILDLINK_DEPMETHOD.renderproto?= build
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+RENDERPROTO_BUILDLINK3_MK:= ${RENDERPROTO_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= renderproto
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nrenderproto}
+BUILDLINK_PACKAGES+= renderproto
+
+.if !empty(RENDERPROTO_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9.1
+BUILDLINK_PKGSRCDIR.renderproto?= ../../x11/renderproto
+.endif # RENDERPROTO_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/x11/renderproto/builtin.mk b/x11/renderproto/builtin.mk
new file mode 100644
index 00000000000..b1afc2fb16c
--- /dev/null
+++ b/x11/renderproto/builtin.mk
@@ -0,0 +1,87 @@
+# $NetBSD: builtin.mk,v 1.1.1.1 2006/04/18 17:16:06 reed Exp $
+
+BUILTIN_PKG:= renderproto
+
+BUILTIN_FIND_FILES_VAR:= H_RENDER
+BUILTIN_FIND_FILES.H_RENDER= ${X11BASE}/include/X11/extensions/render.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.renderproto)
+IS_BUILTIN.renderproto= 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_RENDER:M__nonexistent__)
+IS_BUILTIN.renderproto= yes
+. endif
+.endif
+MAKEVARS+= IS_BUILTIN.renderproto
+
+###
+### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
+### a package name to represent the built-in package.
+###
+.if !defined(BUILTIN_PKG.renderproto) && \
+ !empty(IS_BUILTIN.renderproto:M[yY][eE][sS]) && \
+ empty(H_RENDER:M__nonexistent__)
+BUILTIN_VERSION.renderproto!= \
+ ${AWK} '/\#define[ ]*RENDER_MAJOR/ { M = $$3 } \
+ /\#define[ ]*RENDER_MINOR/ { m = "."$$3 } \
+ END { printf "%s%s\n", M, m }' \
+ ${H_RENDER}
+BUILTIN_PKG.renderproto= renderproto-${BUILTIN_VERSION.renderproto}
+.endif
+MAKEVARS+= BUILTIN_PKG.renderproto
+
+###
+### 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.renderproto)
+. if ${PREFER.renderproto} == "pkgsrc"
+USE_BUILTIN.renderproto= no
+. else
+USE_BUILTIN.renderproto= ${IS_BUILTIN.renderproto}
+. if defined(BUILTIN_PKG.renderproto) && \
+ !empty(IS_BUILTIN.renderproto:M[yY][eE][sS])
+USE_BUILTIN.renderproto= yes
+. for _dep_ in ${BUILDLINK_API_DEPENDS.renderproto}
+. if !empty(USE_BUILTIN.renderproto:M[yY][eE][sS])
+USE_BUILTIN.renderproto!= \
+ if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.renderproto:Q}; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+. endif
+. endfor
+. endif
+. endif # PREFER.renderproto
+.endif
+MAKEVARS+= USE_BUILTIN.renderproto
+
+###
+### The section below only applies if we are not including this file
+### solely to determine whether a built-in implementation exists.
+###
+CHECK_BUILTIN.renderproto?= no
+.if !empty(CHECK_BUILTIN.renderproto:M[nN][oO])
+
+. if !empty(USE_BUILTIN.renderproto:M[nN][oO])
+BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9
+. endif
+
+. if !empty(USE_BUILTIN.renderproto:M[yY][eE][sS])
+BUILDLINK_PREFIX.renderproto= ${X11BASE}
+. include "../../mk/x11.buildlink3.mk"
+. include "../../mk/x11.builtin.mk"
+. endif
+
+.endif # CHECK_BUILTIN.renderproto
diff --git a/x11/renderproto/distinfo b/x11/renderproto/distinfo
new file mode 100644
index 00000000000..3f4be8a1386
--- /dev/null
+++ b/x11/renderproto/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/04/18 17:16:06 reed Exp $
+
+SHA1 (renderproto-0.9.1.tar.bz2) = 277bf58fbb8b94be211936a8d0ecb0d7c03c9c75
+RMD160 (renderproto-0.9.1.tar.bz2) = 5f0e0bca78bb9977af0b984f107903ae263eab25
+Size (renderproto-0.9.1.tar.bz2) = 39675 bytes