mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +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
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# New ports collection makefile for: JDOM
|
|
# Date created: June 1, 2001
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= jdom
|
|
PORTVERSION= 1.1.1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= java textproc
|
|
MASTER_SITES= http://www.jdom.org/dist/source/
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Java library for accessing and manipulating XML documents
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/jaxen-jdom.jar:${PORTSDIR}/java/jaxen
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
USE_ANT= yes
|
|
|
|
ALL_TARGET= package
|
|
.if !defined(NOPORTDOCS)
|
|
ALL_TARGET+= javadoc
|
|
OTHERDOCS= README.txt TODO.txt CHANGES.txt COMMITTERS.txt LICENSE.txt
|
|
PORTDOCS= apidocs ${OTHERDOCS}
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAKE_ENV+= CLASSPATH=${JAVALIBDIR}/jaxen-jdom.jar
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/jdom.jar
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/jdom.jar..."
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/build/jdom.jar ${JAVAJARDIR}/
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/build/samples/ && ${FIND} . \
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} > /dev/null 2>&1
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@${MKDIR} ${DOCSDIR}/apidocs
|
|
@cd ${WRKSRC}/build/ && ${FIND} apidocs \
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
|
@${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
@${FIND} -s ${WRKSRC}/build/samples -not -type d | \
|
|
${SED} -ne 's,^${WRKSRC}/build/samples,${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
@${FIND} -s -d ${WRKSRC}/build/samples -type d | \
|
|
${SED} -ne 's,^${WRKSRC}/build/samples,@dirrm ${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|