summaryrefslogtreecommitdiff
path: root/dns/dnsjava/Makefile
blob: 009da17074d0d572784c4a450fb633f514085e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	dnsjava
PORTVERSION=	2.1.9
DISTVERSIONPREFIX=	v
CATEGORIES=	dns java

MAINTAINER=	ports@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 <bsd.port.mk>