From owner-freebsd-ports Tue Oct 16 10: 7:19 2001 Delivered-To: freebsd-ports@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id F1CB737B40C; Tue, 16 Oct 2001 10:07:13 -0700 (PDT) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.6/8.11.5) with ESMTP id f9GH4eN16202; Tue, 16 Oct 2001 13:04:42 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Message-Id: <200110161704.f9GH4eN16202@aldan.algebra.com> Date: Tue, 16 Oct 2001 13:04:37 -0400 (EDT) From: Mikhail Teterin Subject: Re: xpm WITHOUT_X11 To: sobomax@FreeBSD.org Cc: mi@corbulon.video-collage.com, ports@FreeBSD.org, jseger@FreeBSD.org, torstenb@FreeBSD.org In-Reply-To: <3BCC3E5F.3B15F6B3@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=koi8-r Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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