${PYTHON_CMD}/${PERL} in _CONFIGURE_WITH not working

Jason Unovitch junovitch at FreeBSD.org
Fri Nov 20 03:07:56 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,
I seem to be missing something simple found while converting
net-mgmt/collectd5 over to option helpers.  I've been using the
following Makefile entries.

PERL_USES=                      perl5
PERL_CONFIGURE_ENABLE=          perl
PERL_CONFIGURE_WITH=            perl=${PERL} perl-bindings
PYTHON_USES=                    python:2
PYTHON_CONFIGURE_ENABLE=        python
PYTHON_CONFIGURE_WITH=          python=${PYTHON_CMD}

Everything looks good for the _WITH variables.  The correct variable
expansion appears to be taking place:

% make -VPERL_CONFIGURE_WITH                                                             
perl=/usr/local/bin/perl perl-bindings
% make -VPYTHON_CONFIGURE_WITH                                                           
python=/usr/local/bin/python2.7

However, for CONFIGURE_ARGS the ${PERL} and ${PYTHON_CMD} variables are
getting swallowed up.  The port will fail to compile because of this.

% make -VCONFIGURE_ARGS
"--enable-python --with-python= "
"--enable-perl --with-perl= --with-perl-bindings"

Any ideas or suggestions on where to look for this?  Thanks!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJWTo6CXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0NURGNTQ1OTkzQkJFMzc3OTNDQUNERUU2
RkQ0OUMzMDE2MUNBQTZFAAoJEG/UnDAWHKpuUGkH/3Cl+zox7vdGnA382G+BjtdU
R7ChX/QM92Ml3LZsrmnJZO7rqGoK7V8hgd2LYxDJtlPF5f6lVpDFtFYfd0HSqnvR
aAxBkN0zX/qcS2J2f9sxtT9/H8DVQ0NIdVAYe3yypqXsPp3T25zO8i63nyy4v1UI
gdt5alEc+9CJAtyt7EQ41NDT6IUsQFoGF7k+0VPo7cppnnX1QxL4J2Vs1nZyGd2l
OXyL5Xclz5biAuYX8zVy7RbuTe5NEhm3twbo2/+TmcJyiNdhcXBTBcpPRWnEf9Ew
XncFKMJ0Og7RE6zRC9Cw6PbP4MB6zdRnQc7VKlx+fjsoy8rAXLSJFWcn+k4wasg=
=B+EW
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list