# Created by: Herve Quiroz # $FreeBSD: head/dns/dnsjava/Makefile 518482 2019-11-26 21:46:12Z jkim $ PORTNAME= dnsjava PORTVERSION= 2.1.9 DISTVERSIONPREFIX= v CATEGORIES= dns java MAINTAINER= danilo@FreeBSD.org COMMENT= Implementation of DNS in Java LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes USE_JAVA= yes USE_ANT= yes ALL_TARGET= jar NO_ARCH= yes OPTIONS_DEFINE= DOCS EXAMPLES SAMPLE_FILES= EXAMPLES.md USAGE dig.java jnamed.java lookup.java update.java OTHERDOCS= README.md Changelog DOCS_ALL_TARGET= docs post-patch: @${REINPLACE_CMD} "s/2\.1\.8/${PORTVERSION}/" ${WRKSRC}/build.xml do-install: @${MKDIR} ${STAGEDIR}${JAVAJARDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${TAR} -C ${WRKSRC}/doc -cf - . | ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf - ${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${SAMPLE_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}/ .include