Subject: Re: packages needing X11 clients
To: Jeremy C. Reed <reed@reedmedia.net>
From: Juan RP <juan@xtrarom.org>
List: tech-pkg
Date: 05/06/2005 02:06:46
On Thu, 5 May 2005 15:42:58 -0700 (PDT)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:

> I noticed that lyx-qt didn't install share/lyx/xfonts/PSres.upr.
> 
> I see in work/lyx-1.3.5/lib/configure it is created with makepsres.
> 
> I don't have makepsres on my "build" system.
> 
> I do see it is part of X11 clients though.
> 
> What would be the correct way to detect and BUILD_DEPENDS for this?
> 
> .include "../../mk/bsd.prefs.mk"
> .if !exists(${X11BASE}/bin/makepsres)
> .  if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
> BUILD_DEPENDS+=	XFree86-clients-[0-9]*:../../x11/XFree86-
> clients .  elif defined(X11_TYPE) && !empty(X11_TYPE:Mxorg)
> BUILD_DEPENDS+=	xorg-clients-[0-9]*:../../x11/xorg-clients
> .  else
> PKG_FAIL_REASON=	"${PKGNAME} requires makepsres"
> .  endif
> .endif

I suggested something like this months ago:

http://mail-index.netbsd.org/tech-pkg/2004/12/28/0013.html