pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CONFIGURE_ARGS - ways other than edit Makefile?

On Tue, 19 Jan 2010, Roland Illig replied to me:

I wonder if there's a way to change a package's CONFIGURE_ARGS
without editing the Makefile directly, that is, by using a
command-line flag or by editing mk.conf or pkg_install.conf.

No, there is no way. At least no universal, documented one.
you can hack around that goal if you really want and must. Just add the following lines to your mk.conf file:

.if ${PKGPATH} == "x11/xlockmore-lite"
CONFIGURE_ARGS+= --enable-syslog

That worked!  Thank you.

This works because the xlockmore package Makefile only appends its values to that variable. And remember, using this method, you can only prepend values to that variable. And you have no guarantee that this will work in the future.

I have left a warning comment to myself about that in mk.conf.

In the short term, though, the hack helps me in two ways:

  - It means I can replace /usr/pkgsrc with the latest stable,
    and rebuild at will without worrying about having to replicate
    my modifications in there, and

  - I have a nightly cronjob that does a CVS-update, and parses
    the output to report anything of interest (files updated in
    packages I have installed, packages disappearing as just
    happened with graphics/xpm in 2009Q4, and unexpected files);
    this job was whining about my Makefile change.  I could have
    coded an exception, of course.

Anyway, again, thank you.


Home | Main Index | Thread Index | Old Index