pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/x11-links builtin.mk file to hold information...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99a64255ac04
branches:  trunk
changeset: 470993:99a64255ac04
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Mar 15 01:07:59 2004 +0000

description:
builtin.mk file to hold information about the built-in X11R6
implementation.

diffstat:

 pkgtools/x11-links/builtin.mk |  32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diffs (36 lines):

diff -r 7a43a5e564cc -r 99a64255ac04 pkgtools/x11-links/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/x11-links/builtin.mk     Mon Mar 15 01:07:59 2004 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: builtin.mk,v 1.1 2004/03/15 01:07:59 jlam Exp $
+
+.if !defined(XF86_VERSION)
+_X11_CONFIG_VERSION_DEF=       ${X11BASE}/lib/X11/config/version.def
+_XF86_VERSION=  3.3
+.  if !exists(${_X11_CONFIG_VERSION_DEF})
+_XF86_VERSION= 0
+.  else
+_XF86_MAJOR!=  \
+       ${AWK} '/\#define[      ]*XF86_VERSION_MAJOR/ { print $$3 }'    \
+               ${_X11_CONFIG_VERSION_DEF}
+_XF86_MINOR!=  \
+       ${AWK} '/\#define[      ]*XF86_VERSION_MINOR/ { print $$3 }'    \
+               ${_X11_CONFIG_VERSION_DEF}
+_XF86_PATCH!=  \
+       ${AWK} '/\#define[      ]*XF86_VERSION_PATCH/ { print $$3 }'    \
+               ${_X11_CONFIG_VERSION_DEF}
+_XF86_SNAP!=   \
+       ${AWK} '/\#define[      ]*XF86_VERSION_SNAP/ { print $$3 }'     \
+               ${_X11_CONFIG_VERSION_DEF}
+_XF86_TEENY=   ${_XF86_PATCH}.${_XF86_SNAP}
+.    if !empty(_XF86_TEENY:M0.0)
+_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}
+.    else
+_XF86_VERSION= ${_XF86_MAJOR}.${_XF86_MINOR}.${_XF86_TEENY}
+XF86_VERSION=  ${XF86_VERSION}
+.    endif
+.  endif
+MAKEFLAGS+=    XF86_VERSION=${XF86_VERSION}
+.endif
+
+USE_BUILTIN.x11-links?=        no



Home | Main Index | Thread Index | Old Index