. bsd.java.mk 2.0 compliant

. Fix build:
  . Enforce USE_JIKES=no as jikes won't let import statements contain no
    package name
  . Enforce JAVA_VERSION=1.3 as JDK 1.4 won't let import statements
    contain no package name
. Re-enabled error statements while compiling

PR:		66349
Submitted by:	Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
This commit is contained in:
Greg Lewis 2004-06-09 18:19:58 +00:00
parent b3464483eb
commit faea2dea36
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111171
2 changed files with 8 additions and 6 deletions

View file

@ -14,8 +14,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Open source Java DirectConnect (TM) command-line client
USE_JAVA= 1.2+
NEED_JAVAC= YES
USE_JAVA= yes
JAVA_VERSION= 1.3
USE_JIKES= no
WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION}
BUILD_WRKSRC= ${WRKDIR}/classes
PLIST_SUB= JAR_DIR=${JAR_DIR} \
@ -36,7 +37,7 @@ post-patch:
# as far as build goes... ;)
do-build:
@${MKDIR} ${BUILD_WRKSRC}
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} ${CLASS_SRCDIR}/*.java 2>/dev/null
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} ${CLASS_SRCDIR}/*.java
@${CP} ${CLASS_SRCDIR}/*.txt ${BUILD_WRKSRC}
@cd ${BUILD_WRKSRC} && ${JAR} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} *

View file

@ -14,8 +14,9 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Open source Java DirectConnect (TM) command-line client
USE_JAVA= 1.2+
NEED_JAVAC= YES
USE_JAVA= yes
JAVA_VERSION= 1.3
USE_JIKES= no
WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION}
BUILD_WRKSRC= ${WRKDIR}/classes
PLIST_SUB= JAR_DIR=${JAR_DIR} \
@ -36,7 +37,7 @@ post-patch:
# as far as build goes... ;)
do-build:
@${MKDIR} ${BUILD_WRKSRC}
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} ${CLASS_SRCDIR}/*.java 2>/dev/null
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} ${CLASS_SRCDIR}/*.java
@${CP} ${CLASS_SRCDIR}/*.txt ${BUILD_WRKSRC}
@cd ${BUILD_WRKSRC} && ${JAR} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} *