Proposal for bsd.port.mk change to allow XFree86/XOrg coexistance in ports

Dejan Lesjak dejan.lesjak at ijs.si
Sat Jul 3 15:40:08 PDT 2004


On Saturday 03 of July 2004 18:10, Skip Ford wrote:
> Dejan Lesjak wrote:
> > Ahem, and here is the patch inline this time...
> >
> > --- bsd.port.mk.orig	Tue Jun 29 22:52:56 2004
> > +++ bsd.port.mk	Tue Jun 29 23:50:14 2004
> > @@ -1396,6 +1396,41 @@
> >  LIB_DEPENDS+=			ttf.4:${PORTSDIR}/print/freetype
> >  .endif
> >
> > +.if defined(XWINDOW_SYSTEM) && ${XWINDOW_SYSTEM:L} == xorg
>
> Why not use WITH_XORG?

No particular reason. I was thinking about also having -devel versions of 
ports, so make.conf could then have XWINDOW_SYSTEM=xorg-devel for example. 
But of course this can olso be done by defining WITH_XORG_DEVEL or some such. 
Perhaps I wanted to avoid introducing even more variables, when I saw how 
many there already would be :)

One another option with less variables would be perhaps possible with some 
sort of prefix variable. Something like this:
X_PORTS_PREFIX= xorg-
and then depending on libraries like so:
LIB_DEPENDS= X11.6:${PORTSDIR}/x11/${X_PORTS_PREFIX}libraries
Perhaps something like this would be more elegant. Some of ports would 
probably have to be renamed a bit for this though (eg. XFree86-4-fontScalable 
vs xorg-fonts-truetype and xorg-fonts-type1).

Dejan


More information about the freebsd-x11 mailing list