Subject: Re: x11-links for native
To: Johnny C. Lam <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 07/07/2005 13:57:04
On Thu, 7 Jul 2005, Johnny C. Lam wrote:

> Please create a separate x11-links/ file and include the bits for 

Okay. I have new files:


The xorg file is a copy of xfree with various /extensions/ (but not all) 
entries removed, plus it adds around 20 extra entries as saw on my 

My diff for Makefile is:

--- pkgtools/x11-links/Makefile	10 Jun 2005 03:44:07 -0000	1.71
+++ pkgtools/x11-links/Makefile	7 Jul 2005 20:44:27 -0000
@@ -4,7 +4,7 @@
  #	the x11-links dependency in to the correct version,
  #	usually the most recent.

-DISTNAME=	x11-links-0.25
+DISTNAME=	x11-links-0.26
  CATEGORIES=	pkgtools x11
  MASTER_SITES=	# empty
  DISTFILES=	# empty
@@ -37,6 +37,8 @@
  .  include ""
  .elif !empty(X11BASE:M*openwin)
  .  include ""
+.elif exists(${X11BASE}/lib/X11/config/xorgversion.def)
+.  include ""
  .  include ""

Is that okay?

And my follows. Notice how it uses some xfree.* files. Also I have 
a few questions in there.

# $NetBSD$
# This is for, but use "xfree" files also.


# libXdamage and damageext only in pkgsrc-wip so not used here
# XXX: what about xaw?

.include "../../fonts/Xft2/"
.include "../../fonts/fontconfig/"
.include "../../graphics/MesaLib/"
.include "../../graphics/freetype2/"
.include "../../graphics/glu/"
.include "../../graphics/xpm/"
.include "../../textproc/expat/"
.include "../../x11/compositeext/"
.include "../../x11/fixesext/"
.include "../../x11/xextensions/"
.include "../../x11/Xcomposite/"
.include "../../x11/Xfixes/"
.include "../../x11/Xrandr/"
.include "../../x11/Xrender/"
.include "../../x11/render/"
.include "../../x11/randrext/"
.include "../../x11/xcursor/"

# XXX  what is ${X11_MODULES} ?

# Check if any headers and libraries for ${X11_MODULES} found in
# ${X11BASE} actually belong to the base Xorg or not.
# XXX: maybe skip iconv and zlib too?
.for _pkg_ in ${BUILDLINK_PACKAGES:Nx11-links}
CHECK_BUILTIN.${_pkg_}:=	yes
USE_BUILTIN.${_pkg_}=		yes
.  sinclude "${BUILDLINK_PKGSRCDIR.${_pkg_}}/"
CHECK_BUILTIN.${_pkg_}:=	no

.for _pkg_ in ${BUILDLINK_PACKAGES:Nx11-links}
IGNORE_PKG.${_pkg_}=	yes
.  if !empty(IS_BUILTIN.${_pkg_}:M[yY][eE][sS])
.    if exists(${FILESDIR}/xorg.${_pkg_})
FILES_LIST+=	${FILESDIR}/xorg.${_pkg_}
.    elif exists(${FILESDIR}/xfree.${_pkg_})
FILES_LIST+=	${FILESDIR}/xfree.${_pkg_}
.    endif
.  endif

I have not tested this with XFree86, only native Xorg.

> In any case, all of this should just be trashed, and native XFree86 and 
> installations should eventually be made to use the files from 
> XFree86-libs and xorg-libs.

pkgtools/x11-links/files/xfree says "The files listed below are the union 
of the sets of files installed by the supported XFree distributions ...".

Does this mean that this list includes some files from older XFree 
distributions? (I didn't notice though.)

If that is the case, maybe using files from XFree86-libs may 
be too strict for native XFree86. But probably those old files would not 
matter anyways.

  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links