blob: ef66bb7484d7c9d87d45e1ffe4c721d9687b160c (
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
55
56
57
58
59
|
# Created by: Jose Marques
# $FreeBSD$
PORTNAME= javamail
PORTVERSION= 1.4.7
CATEGORIES= java mail
MASTER_SITES= https://kenai.com/downloads/javamail/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ale@FreeBSD.org
COMMENT= A Reference Implementation of JSR 919
LICENSE= GPLv2 CDDL
LICENSE_COMB= dual
BUILD_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf
RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf
USE_ZIP= YES
USE_JAVA= YES
JAVA_VERSION= 1.6+
USE_ANT= YES
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
WRKSRC= ${WRKDIR}
PLIST_FILES= %%JAVAJARDIR%%/mail.jar
PORTDOCS= *
PORTEXAMPLES= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET= all docs
.endif
do-install:
@${ECHO_MSG} -n ">> Install JAR files in ${JAVAJARDIR}..."
@${INSTALL_DATA} ${WRKSRC}/target/release/mail.jar ${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/target/release && ${FIND} *.txt \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
@cd ${WRKSRC}/target/release/docs && ${FIND} *.txt javadocs \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
@${ECHO_MSG} " [ DONE ]"
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC}/demo && ${FIND} src \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} > /dev/null 2>&1
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>
|