aboutsummaryrefslogtreecommitdiffstats
path: root/math/rpcalc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/rpcalc/Makefile')
-rw-r--r--math/rpcalc/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/math/rpcalc/Makefile b/math/rpcalc/Makefile
index a34c4703d75e..15559323341f 100644
--- a/math/rpcalc/Makefile
+++ b/math/rpcalc/Makefile
@@ -40,4 +40,10 @@ do-install:
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${DATADIR} -f ${DATADIR_REL})
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(PACKAGE_BUILDING) && ${PYTHON_VER} != ${PYTHON_DEFAULT}
+IGNORE= you have python ${PYTHON_DEFAULT} set as the default, and this needs ${PYTHON_VER}
+.endif
+
+.include <bsd.port.post.mk>