Anton Shterenlikht wrote on 20.07.2011 17:44:
On Wed, Jul 20, 2011 at 04:55:59PM +0400, Ruslan Mahmatkhanov wrote:

As far i understand PYTHON_VERSION hold value like 'python2.7', so you
should correct this in your Makefile. Or just use USE_PYTHON = 2.6

No, PYTHON_VERSION seems to be overwritten by something else.
I removed all but the PYTHON parts from the Makefile,
and get this:


Yes, i see this in bsd.python.mk:
# Define PYTHON_VERSION to override the
# defaults that USE_PYTHON would give you.

But it seems not true. Here is my test Makefile:
mrk@smeshariki2$ cat Makefile
PORTNAME=       blah
DISTVERSION=    1.0
CATEGORIES=     misc
COMMENT=        Some dumb port for testing

USE_PYTHON=     yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
PYTHON_VERSION= "python2.6"
.endif

.include <bsd.port.post.mk>

mrk@smeshariki2$ make depends
===>   blah-1.0 depends on file: /usr/local/bin/python2.7 - found
===>   blah-1.0 depends on file: /usr/local/bin/python2.7 - found

mrk@smeshariki2$ uname -p
i386

I added python@ to cc, since it seems like bsd.python.mk bug to me (or documentation bug).

--
Regards,
Ruslan
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to