Only set SHARED_ONLY if python is needed at build and/or run time and

not just when we use the python MODULE.

ok rpointel@ fgsch@
This commit is contained in:
ajacoutot 2012-03-31 08:53:57 +00:00
parent 4ec9334745
commit 258288151f

View File

@ -1,10 +1,8 @@
# $OpenBSD: python.port.mk,v 1.50 2011/12/20 13:08:06 fgsch Exp $
# $OpenBSD: python.port.mk,v 1.51 2012/03/31 08:53:57 ajacoutot Exp $
#
# python.port.mk - Xavier Santolaria <xavier@santolaria.net>
# This file is in the public domain.
SHARED_ONLY= Yes
CATEGORIES+= lang/python
# define the default versions
@ -74,6 +72,10 @@ BUILD_DEPENDS+= ${_MODPY_BUILD_DEPENDS}
RUN_DEPENDS+= ${MODPY_RUN_DEPENDS}
.endif
.if ${MODPY_BUILDDEP:L} == "yes" || ${MODPY_RUNDEP:L} == "yes"
SHARED_ONLY= Yes
.endif
MODPY_PRE_BUILD_STEPS = @:
.if (defined(MODPY_SETUPTOOLS) && ${MODPY_SETUPTOOLS:U} == YES)
# The setuptools module provides a package locator (site.py) that is