aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-11-07 00:51:53 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-11-07 00:51:53 +0000
commitd1da4b5fb6468bdad40989ad2fc0403579902c51 (patch)
treea139b056c1ae9460782173eb67c686b95e537085
parentbccb3194668d6bd641f1d5f5b1b97ca06707fc38 (diff)
downloadports-d1da4b5fb6468bdad40989ad2fc0403579902c51.tar.gz
ports-d1da4b5fb6468bdad40989ad2fc0403579902c51.zip
Notes
-rw-r--r--Mk/bsd.java.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index a1a542aabfc2..b54c3644e9aa 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -291,6 +291,15 @@ check-makevars::
# From here, the port is using bsd.java.mk v2.0
+# Error checking: defined JAVA_{HOME,PORT,PORT_VERSION,PORT_VENDOR,PORT_OS}
+. for variable in JAVA_HOME JAVA_PORT JAVA_PORT_VERSION JAVA_PORT_VENDOR JAVA_PORT_OS
+. if defined(${variable})
+check-makevars::
+ @${ECHO_CMD} "${PKGNAME}: Environement error: \"${variable}\" should not be defined."
+ @${FALSE}
+. endif
+. endfor
+
# Error checking: JAVA_VERSION
_JAVA_VERSION_LIST_REGEXP!= ${ECHO_CMD} "${_JAVA_VERSION_LIST}" | ${SED} "s/ /\\\|/g"
_ERROR_CHECKING_JAVA_VERSION!= ${ECHO_CMD} "${JAVA_VERSION}" | ${TR} " " "\n" \