1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Update to bsd.java.mk 2.0

- Use JAVALIBDIR
- CP -> INSTALL_DATA
- Merge do-install and post-install
This commit is contained in:
Herve Quiroz 2005-02-03 22:05:25 +00:00
parent f64515e7a9
commit f0173c9ed6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127999

View File

@ -17,28 +17,30 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= An implementation of BEEP core and BEEP mapping for TCP in Java
RUN_DEPENDS= ${LOCALBASE}/share/java/classes/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j
RUN_DEPENDS= ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j
USE_JAVA= 1.3+
USE_JAVA= yes
JAVA_VERSION= 1.3+
NO_BUILD= yes
NO_BUILD_DEPENDS_JAVA= yes
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/beep*.jar ${JAVAJARDIR}
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/example \
&& ${FIND} -s . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
&& ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
${INSTALL_DATA} ${WRKSRC}/lib/example.jar ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/example/* ${EXAMPLESDIR}
post-install:
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${WRKSRC}/*.htm ${DOCSDIR}
.if !defined(NOPORTDOCS)
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
cd ${WRKSRC}/doc \
&& ${FIND} -s . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
&& ${FIND} -s . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif
.include <bsd.port.mk>