1999-05-21 15:35:55 +00:00
|
|
|
# New ports collection makefile for: XML for Java
|
2000-02-22 14:46:33 +00:00
|
|
|
# Date created: 21 Feb 2000
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
1999-05-21 15:35:55 +00:00
|
|
|
#
|
1999-08-31 02:11:56 +00:00
|
|
|
# $FreeBSD$
|
1999-05-21 15:35:55 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 21:54:47 +00:00
|
|
|
PORTNAME= xml4j
|
2004-07-22 09:49:00 +00:00
|
|
|
PORTVERSION= 4.3.0
|
1999-05-21 15:35:55 +00:00
|
|
|
CATEGORIES= textproc
|
2004-07-22 09:49:00 +00:00
|
|
|
MASTER_SITES= http://dl.alphaworks.ibm.com/technologies/xml4j/
|
|
|
|
DISTNAME= XML4J-bin.${PORTVERSION}
|
1999-05-21 15:35:55 +00:00
|
|
|
|
2001-08-07 23:09:38 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= XML for Java parser
|
1999-05-21 15:35:55 +00:00
|
|
|
|
2004-07-22 09:49:00 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./_/g}
|
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.2+
|
1999-05-21 15:35:55 +00:00
|
|
|
NO_BUILD= YES
|
2004-07-22 09:49:00 +00:00
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
1999-05-21 15:35:55 +00:00
|
|
|
|
2004-07-22 09:49:00 +00:00
|
|
|
CONFLICTS= xerces-j-2.*
|
|
|
|
|
|
|
|
SAMPLES= dom sax simpletype socket ui xni xs
|
|
|
|
PORTDOCS= *.html graphics images javadocs resources
|
|
|
|
JARFILES= resolver.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xmlParserAPIs.jar
|
|
|
|
DATAFILES= personal-schema.xml personal.dtd personal.xml personal.xsd
|
|
|
|
|
|
|
|
PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} \
|
|
|
|
${DATAFILES:S,^,%%DATADIR%%/,}
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
1999-05-21 15:35:55 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-07-22 09:49:00 +00:00
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${ECHO_MSG} -n ">> Installing JAR in ${JAVAJARDIR}..."
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} ${JARFILES} ${JAVAJARDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing data in ${DATADIR}..."
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@cd ${WRKSRC}/data && \
|
|
|
|
${INSTALL_DATA} ${DATAFILES} ${DATADIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC}/docs && \
|
|
|
|
${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
|
|
|
|
@cd ${WRKSRC}/docs && \
|
|
|
|
${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@cd ${WRKSRC}/samples && \
|
|
|
|
${FIND} ${SAMPLES} -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
|
|
|
|
@cd ${WRKSRC}/samples && \
|
|
|
|
${FIND} ${SAMPLES} -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${FIND} -s ${WRKSRC}/samples -not -type d | \
|
|
|
|
${SED} -ne 's,^${WRKSRC}/samples,${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC}/samples -type d | \
|
|
|
|
${SED} -ne 's,^${WRKSRC}/samples,@dirrm ${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
.endif
|
1999-05-21 15:35:55 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|