1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/java/xdoclet/Makefile
Herve Quiroz 7a4dc0b2ba - Update to bsd.java.mk 2.0
- Use ${JAVAJARDIR} and %%JAVAJARDIR%%
- Use %%EXAMPLESDIR%%
- Use PORTDOCS (and honor NOPORTDOCS)
- Add $FreeBSD$ tag in pkg-plist
2005-04-05 00:28:07 +00:00

56 lines
1.4 KiB
Makefile

# New ports collection makefile for: xdoclet
# Date created: Feb 25 2003
# Whom: Sheldon Hearn <sheldonh@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xdoclet
PORTVERSION= 1.2b3
CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}
DISTFILES= ${DISTNAME}.zip xjavadoc-${XJAVADOC_VER}.zip
MAINTAINER= ports@FreeBSD.org
COMMENT= Java attribute-oriented code generation engine
RUN_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
USE_JAVA= yes
JAVA_VERSION= 1.2+
USE_ZIP= yes
NO_WRKSUBDIR= yes
NO_BUILD= yes
XJAVADOC_VER= 1.0
PLIST_SUB+= XJAVADOC_VER="${XJAVADOC_VER}"
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-extract:
${RMDIR} ${WRKSRC}/docs/stylesheets
do-install:
cd ${WRKSRC} && ${FIND} lib -name '*xdoclet*' -exec \
${INSTALL_DATA} \{} ${JAVAJARDIR} \;
cd ${WRKSRC}/samples && ${FIND} . -type d -exec \
${MKDIR} ${EXAMPLESDIR}/\{} \;
cd ${WRKSRC}/samples && ${FIND} . -type f -exec \
${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
${INSTALL_DATA} \
${WRKSRC}/xjavadoc-${XJAVADOC_VER}/xjavadoc-${XJAVADOC_VER}.jar \
${JAVAJARDIR}
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/docs && ${FIND} . -type d -exec \
${MKDIR} ${DOCSDIR}/\{} \;
cd ${WRKSRC}/docs && ${FIND} . -type f -exec \
${INSTALL_DATA} \{} ${DOCSDIR}/\{} \;
.endif
.include <bsd.port.mk>