GNU_CONFIGURE + DATADIR => CONFIGURE_ARGS+=--datadir=${DATADIR} ?

Pav Lucistnik pav at FreeBSD.org
Tue Nov 22 22:38:03 GMT 2005


Gerald Pfeifer píše v út 22. 11. 2005 v 23:30 +0100:
> I just introduced the use of %%DATADIR%% to the pkg-plist of one
> of my ports, only to learn that it doesn't work as I had expected.
> 
> When a port has GNU_CONFIGURE set, and DATADIR is set, shouldn't
> the ports machinery automatically set the following as well?
> 
>   CONFIGURE_ARGS+=--datadir=${DATADIR}
> 
> 
> That is, shouldn't we add something like
> 
>   .if defined(GNU_CONFIGURE)
>   .if defined(DATADIR)
>   CONFIGURE_ARGS+=        --datadir=${DATADIR}
>   .endif
>   .endif
> 
> to Mk/bsd.ports.mk?

No! That would break lot of things, I'm afraid.

I think you should not be using %%DATADIR%% in your plist.
Portlint is getting very overzealous with this message, often.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

See file. Click file. Get file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20051122/2b714c31/attachment.bin


More information about the freebsd-ports mailing list