Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 May 2005 10:09:22 -0300
From:      Alejandro Pulver <alejandro@varnet.biz>
To:        =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Naming questions
Message-ID:  <20050501100922.3f9298d8@ale.varnet.bsd>
In-Reply-To: <42740E19.6050804@cs.tu-berlin.de>
References:  <20050430181439.678b4f85@ale.varnet.bsd> <42740E19.6050804@cs.tu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 01 May 2005 01:00:41 +0200
Bj=F6rn K=F6nig <bkoenig@cs.tu-berlin.de> wrote:

> Alejandro Pulver wrote:
>=20
> >I am making a port that only has a GTK interface, should it be
> >suffixed by "-gtk"?
> >
> If the program works only with gtk and not without, not even as an=20
> option, then don't use PKGNAMESUFFIX.
>=20
> If you want to give the user the chance to choose between a GUI or
> just a command line tool, then it depends on your default how you may
> want to use PKGNAMESUFFIX. Take the port 'editors/vim' as an example;
> the user has the opportunity to make a decision between the default
> and with GTK+2 support; and the final package is named just 'vim' or
> 'vim-gtk2'. Another example is 'net/cvsup'; if you compile it with
> WITHOUT_X11 you'll get 'cvsup-without-gui', otherwise just 'cvsup'.
>=20
> You can stick to other ports which might give some inspirations.
>=20
> >If not, the executable it installs has the suffix "-gtk",
> >should it be removed to match the port name?
> > =20
> >
> This is not necessary.
>=20
> >If there is a port that is splitted in components (like "foo-doc",
> >"foo-gtk", etc.). Should they use PKGNAMESUFFIX?
> >
> The suffix is primarily intended for compilation specific things, but=20
> 'databases/postgresql' shows that it is possible to use it for=20
> -server, -client, -doc, -odbc, i.e. components. See also
> http://www.freebsd.org/doc/en/books/porters-handbook/makefile-naming.html=
#AEN582
>=20
> Bj=F6rn
>=20

Hello,

Thank you for your reply.

But if I divide a port like pmars in pmars-x11, pmars-gtk and
pmars-no-gui it would be easier to use PKGNAMESUFFIX rather than
changing DISTNAME to pmars on each component, also the component
pmars-doc uses ${PREFIX}/share/doc/pmars as DOCSDIR (not pmars-doc). But
if I do this I have a problem:

.if defined(LATEST_LINK)
UNIQUENAME?=3D	${LATEST_LINK}
.else
UNIQUENAME?=3D	${PKGNAMEPREFIX}${PORTNAME}
.endif
OPTIONSFILE?=3D	${PORT_DBDIR}/${UNIQUENAME}/options

If I have PORTNAME=3Dpmars and PKGNAMESUFFIX=3D-x11, the options directory
will be pmars (like the other components). So I have to:

LATEST_LINK=3D	${PORTNAME}${PKGNAMESUFIX}

Is this the best way to do it?

Also I have anoter problem: I use a port pmars to choose the components
(pmars-x11, etc.). If I type "make" and then "make install" the
components prompt for options, but if I type "make install" directly the
components use the default options. What is happening?

Best Regards,
Ale



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