blob: 7ddfd21006ad9653970dca4bc10c0924237ad5df (
plain) (
blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Herve Quiroz <hq@FreeBSD.org>
# $FreeBSD$
PORTNAME= dnsjava
PORTVERSION= 2.1.6
CATEGORIES= dns java
MASTER_SITES= http://www.dnsjava.org/download/
MAINTAINER= danilo@FreeBSD.org
COMMENT= Implementation of DNS in Java
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= jar
OPTIONS_DEFINE= DOCS EXAMPLES
SAMPLE_FILES= examples.html USAGE dig.java jnamed.java lookup.java update.java
OTHERDOCS= README Changelog
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= docs
.endif
.include <bsd.port.pre.mk>
.if ${JAVA_PORT_VERSION} == "1.6.0"
PLIST_SUB= JDK6=""
.else
PLIST_SUB= JDK6="@comment "
.endif
.if ${JAVA_PORT_VERSION} == "1.8.0"
PLIST_SUB+= JDK8=""
.else
PLIST_SUB+= JDK8="@comment "
.endif
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${TAR} -C ${WRKSRC}/doc -cf - . | ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${SAMPLE_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}/
.endif
.include <bsd.port.post.mk>
|