mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
06e6677793
remove support for them from bsd.java.mk. As Jikes is not available in Java 1.5 or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports which used it (only occurences were USE_JIKES=no). Support for the Blackdown VM is also removed, as it is not available in Java 1.5 and higher. Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5. While here, replace static values of JAVA_VERSION in files/*.in by %%JAVA_VERSION%% . PR: ports/158969 Submitted by: rene Tested on: pointyhat-west -exp
96 lines
2.9 KiB
Makefile
96 lines
2.9 KiB
Makefile
# Ports collection makefile for: Jaxup
|
|
# Date created: 17 November 2004
|
|
# Whom: Herve Quiroz <hq@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= jaxup
|
|
PORTVERSION= 1.01
|
|
PORTREVISION= 3
|
|
CATEGORIES= textproc java
|
|
MASTER_SITES= http://klomp.org/jaxup/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Java XUpdate engine
|
|
|
|
BUILD_DEPENDS= ${JAR_DEPENDS}
|
|
RUN_DEPENDS= ${JAR_DEPENDS} \
|
|
java:${PORTSDIR}/java/javavmwrapper
|
|
|
|
JAR_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \
|
|
${JAVALIBDIR}/jaxen-full.jar:${PORTSDIR}/java/jaxen \
|
|
${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j
|
|
|
|
USE_ZIP= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
USE_ANT= yes
|
|
ALL_TARGET= jar
|
|
.if !defined(NOPORTDOCS)
|
|
ALL_TARGET+= docs
|
|
.endif
|
|
|
|
PLIST_FILES+= %%DATADIR%%/jaxup-xupdater.jar bin/jaxup-xupdater \
|
|
%%JAVAJARDIR%%/${PORTNAME}.jar
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= LICENSE.txt api index.html jaxup_files xupdate-wd.html xupdate-wd_files
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
UTIL_CLASSPATH_JARS= jaxen-full saxpath xercesImpl
|
|
UTIL_CLASSPATH!= ${ECHO_CMD} ${UTIL_CLASSPATH_JARS:S,^,${JAVALIBDIR}/,:S,$,.jar,} | ${TR} " " ":"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.[4-5] -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
|
|
.if ${JDK_API} != ""
|
|
MAKE_ARGS+= -Dj2se.apidocs="${JDK_API}"
|
|
.endif
|
|
JAXEN_API!= (${FIND} -s ${LOCALBASE}/share/doc/jaxen -maxdepth 1 -name javadoc -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
|
|
.if ${JAXEN_API} != ""
|
|
MAKE_ARGS+= -Djaxen.apidocs="${JAXEN_API}"
|
|
.endif
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/build.xml ${WRKSRC}/
|
|
@${CP} ${FILESDIR}/DOMXUpdater.java ${WRKDIR}/
|
|
@${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g ; s,%%DATADIR%%,${DATADIR},g' \
|
|
${FILESDIR}/jaxup-xupdater.sh >${WRKDIR}/jaxup-xupdater
|
|
|
|
post-build:
|
|
@${ECHO_MSG} ">> Building utility classes..."
|
|
cd ${WRKDIR} && ${JAVAC} -classpath "${UTIL_CLASSPATH}:${WRKSRC}/build/lib/jaxup.jar" DOMXUpdater.java
|
|
${ECHO_CMD} "Main-Class: DOMXUpdater" >${WRKDIR}/MANIFEST
|
|
cd ${WRKDIR} && ${JAR} -cmf MANIFEST jaxup-xupdater.jar DOMXUpdater.class
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/build/lib/${PORTNAME}.jar ${JAVAJARDIR}/
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
@${ECHO_MSG} ">> Installing utility scripts and classes..."
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKDIR}/jaxup-xupdater.jar ${DATADIR}/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/jaxup-xupdater ${PREFIX}/bin/
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC}/build/docs \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|