check that FLAVORS is defined before using it in .if; problem with "make

plist" following prior commit reported by juanfra@ with devel/mercurial.
This commit is contained in:
sthen 2019-05-18 00:33:52 +00:00
parent c2cd37f535
commit cc56f40ff2

View File

@ -1,4 +1,4 @@
# $OpenBSD: python.port.mk,v 1.111 2019/05/17 13:27:03 espie Exp $
# $OpenBSD: python.port.mk,v 1.112 2019/05/18 00:33:52 sthen Exp $
#
# python.port.mk - Xavier Santolaria <xavier@santolaria.net>
# This file is in the public domain.
@ -239,7 +239,7 @@ do-test:
. endif
.if make(update-plist) || make(plist)
. if ${FLAVORS:Mpython3} && !${FLAVOR:Mpython3}
. if defined(FLAVORS) && ${FLAVORS:Mpython3} && !${FLAVOR:Mpython3}
ERRORS += "***\n*** WARNING: running update-plist without FLAVOR=python3\n***\n***"
. endif
.endif