2012-12-10 13:18:28 +00:00
|
|
|
# Created by: Jose Marques
|
1999-11-01 04:27:07 +00:00
|
|
|
# $FreeBSD$
|
1999-11-01 04:22:56 +00:00
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= javamail
|
2013-03-12 10:42:07 +00:00
|
|
|
PORTVERSION= 1.4.7
|
2004-09-03 03:34:29 +00:00
|
|
|
CATEGORIES= java mail
|
2013-04-02 04:42:52 +00:00
|
|
|
MASTER_SITES= https://kenai.com/downloads/javamail/
|
2011-02-16 11:07:51 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
1999-11-01 04:22:56 +00:00
|
|
|
|
2011-02-17 08:31:22 +00:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2007-02-21 17:43:33 +00:00
|
|
|
COMMENT= A Reference Implementation of JSR 919
|
1999-11-01 04:22:56 +00:00
|
|
|
|
2011-02-17 08:31:22 +00:00
|
|
|
LICENSE= GPLv2 CDDL
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2013-02-11 09:19:41 +00:00
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf
|
|
|
|
|
1999-11-01 04:22:56 +00:00
|
|
|
USE_ZIP= YES
|
2004-09-03 03:34:29 +00:00
|
|
|
USE_JAVA= YES
|
2012-12-10 13:18:28 +00:00
|
|
|
JAVA_VERSION= 1.6+
|
2011-02-16 11:07:51 +00:00
|
|
|
USE_ANT= YES
|
2011-02-18 10:11:12 +00:00
|
|
|
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES
|
1999-11-01 04:22:56 +00:00
|
|
|
|
2011-02-16 11:07:51 +00:00
|
|
|
WRKSRC= ${WRKDIR}
|
2004-09-03 03:34:29 +00:00
|
|
|
|
2011-02-16 11:07:51 +00:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/mail.jar
|
2000-04-25 15:22:51 +00:00
|
|
|
|
2011-02-16 11:07:51 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
1999-11-01 04:22:56 +00:00
|
|
|
|
2013-02-11 09:19:41 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
ALL_TARGET= all docs
|
|
|
|
.endif
|
|
|
|
|
1999-11-01 04:22:56 +00:00
|
|
|
do-install:
|
2004-09-03 03:34:29 +00:00
|
|
|
@${ECHO_MSG} -n ">> Install JAR files in ${JAVAJARDIR}..."
|
2011-02-16 11:07:51 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/target/release/mail.jar ${JAVAJARDIR}/
|
2004-09-03 03:34:29 +00:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2013-02-11 09:19:41 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-09-03 03:34:29 +00:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2011-02-16 11:07:51 +00:00
|
|
|
@cd ${WRKSRC}/target/release && ${FIND} *.txt \
|
2004-09-03 03:34:29 +00:00
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
2011-02-16 11:07:51 +00:00
|
|
|
@cd ${WRKSRC}/target/release/docs && ${FIND} *.txt javadocs \
|
2004-09-03 03:34:29 +00:00
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.endif
|
2013-02-11 09:19:41 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2011-02-16 11:07:51 +00:00
|
|
|
@${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
|
2004-09-03 03:34:29 +00:00
|
|
|
|
2011-02-16 11:07:51 +00:00
|
|
|
.include <bsd.port.mk>
|