Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2001 13:04:37 -0400 (EDT)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        sobomax@FreeBSD.org
Cc:        mi@corbulon.video-collage.com, ports@FreeBSD.org, jseger@FreeBSD.org, torstenb@FreeBSD.org
Subject:   Re: xpm WITHOUT_X11
Message-ID:  <200110161704.f9GH4eN16202@aldan.algebra.com>
In-Reply-To: <3BCC3E5F.3B15F6B3@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 Oct, Maxim Sobolev wrote:
> Mikhail Teterin wrote:
> 
>> I'm  about to  commit  the  following patch  to  graphics/xpm. It  is
>> intended  to  allow to  build  the  (limited)  version of  libXpm  on
>> X11-less machines.
> 
> Where it is  necessary? I certainly don't like change  for the sake of
> change.

Nobody does.  The first place where  this will be needed  is graphics/gd
(and gd2). Currently, if you want  the ability to read/generate files in
xpm format, you need X11 libraries.  ImageMagick used to need -lxpm too,
I think, but, apparently, it has its own xpm-handling now.

> Also please  don't mix variables' declaration with rules  in Makefile,
> particularly  move  INSTALLS_SHLIB upwards  and  insert  a blank  line
> between MAN1 and post-install: target.

Mmm, Ok... I tried to place all of the code, that depends on WITHOUT_X11
into  one place.  I'll  try to  accomodate this  request,  but you  (and
anyone) are welcome to fix, what you believe is wrong...
 
>> It deliberately uses  X11BASE as a prefix in either  case -- not sure
>> if this is a good idea, I did this to help other things link with it.

I'm less sure  about this part... May be, the  X-less xpm should, indeed
be installed under LOCALBASE -- to remind, that it is, indeed, X-less?

Thanks,

	-mi

>> sxpm is not  built without X11 --  there are uses for  it in X11-less
>> case, but too  much needs to be  ripped out. Perhaps, it  can be done
>> later.
>>
>> It installs my home-cooked xpm-nox.h  next to the standard xpm.h. All
>> one  needs to  compile and  link xpm  clients without  X11 is  define
>> XPM_NOX prior  to including xpm.h.  In particular graphics/gd  can be
>> built to generate xpm-images without requiring X11.
>>
>> Rather  than patching  the  long-forsaken  Makefile.noX, home  cooked
>> bsd.*.* based Makefiles are used.
>>
>> Unless there are loud objections, I'll  commit it some time next week
>> -- the poor thing has no maintainer :)
>>
>> Thanks!



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110161704.f9GH4eN16202>