I think this should work: in /etc/make.conf: either DEFAULT_VERSIONS=python=2.7 python2=2.7 python3=3.4 or .if ${.CURDIR:M*/ports/devel/llvm*} USE_PYTHON=2.7 .endif should work.