Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.java.mk
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Lines | |||||
# | # | ||||
# Ant Support: USE_ANT --> JAVA_BUILD=jdk | # Ant Support: USE_ANT --> JAVA_BUILD=jdk | ||||
. if defined(USE_ANT) | . if defined(USE_ANT) | ||||
JAVA_BUILD= jdk | JAVA_BUILD= jdk | ||||
. endif | . endif | ||||
# Add the JDK port to the dependencies | # Add the JDK port to the dependencies | ||||
DEPEND_JAVA= ${JAVA}:${PORTSDIR}/${JAVA_PORT} | DEPEND_JAVA= ${JAVA}:${JAVA_PORT} | ||||
. if defined(JAVA_EXTRACT) | . if defined(JAVA_EXTRACT) | ||||
EXTRACT_DEPENDS+= ${DEPEND_JAVA} | EXTRACT_DEPENDS+= ${DEPEND_JAVA} | ||||
. endif | . endif | ||||
. if defined(JAVA_BUILD) | . if defined(JAVA_BUILD) | ||||
. if defined(NO_BUILD) | . if defined(NO_BUILD) | ||||
check-makevars:: | check-makevars:: | ||||
@${ECHO_CMD} "${PKGNAME}: Makefile error: JAVA_BUILD and NO_BUILD cannot be set at the same time."; | @${ECHO_CMD} "${PKGNAME}: Makefile error: JAVA_BUILD and NO_BUILD cannot be set at the same time."; | ||||
@${FALSE} | @${FALSE} | ||||
. endif | . endif | ||||
BUILD_DEPENDS+= ${DEPEND_JAVA} | BUILD_DEPENDS+= ${DEPEND_JAVA} | ||||
. endif | . endif | ||||
. if defined(JAVA_RUN) | . if defined(JAVA_RUN) | ||||
RUN_DEPENDS+= ${DEPEND_JAVA} | RUN_DEPENDS+= ${DEPEND_JAVA} | ||||
. endif | . endif | ||||
# Ant support: default do-build target | # Ant support: default do-build target | ||||
. if defined(USE_ANT) | . if defined(USE_ANT) | ||||
DESTDIRNAME?= -Dfreebsd.ports.destdir | DESTDIRNAME?= -Dfreebsd.ports.destdir | ||||
ANT?= ${LOCALBASE}/bin/ant | ANT?= ${LOCALBASE}/bin/ant | ||||
MAKE_ENV+= JAVA_HOME=${JAVA_HOME} | MAKE_ENV+= JAVA_HOME=${JAVA_HOME} | ||||
BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant | BUILD_DEPENDS+= ${ANT}:devel/apache-ant | ||||
ALL_TARGET?= | ALL_TARGET?= | ||||
. if !target(do-build) | . if !target(do-build) | ||||
do-build: | do-build: | ||||
@(cd ${BUILD_WRKSRC}; \ | @(cd ${BUILD_WRKSRC}; \ | ||||
${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET}) | ${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${ALL_TARGET}) | ||||
. endif | . endif | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |