2001-09-03 20:36:33 +02:00
|
|
|
# New ports collection makefile for: JavaMail API Implementation
|
1999-11-01 05:22:56 +01:00
|
|
|
# Date created: 1999/08/08
|
|
|
|
# Whom: Jose Marques
|
|
|
|
#
|
1999-11-01 05:27:07 +01:00
|
|
|
# $FreeBSD$
|
1999-11-01 05:22:56 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= javamail
|
2003-07-09 07:22:22 +02:00
|
|
|
PORTVERSION= 1.3.1
|
2004-09-03 05:34:29 +02:00
|
|
|
PORTREVISION= 1
|
|
|
|
CATEGORIES= java mail
|
2002-05-08 00:30:54 +02:00
|
|
|
MASTER_SITES= #
|
2004-09-03 05:34:29 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}-upd
|
1999-11-01 05:22:56 +01:00
|
|
|
|
2002-11-07 14:54:08 +01:00
|
|
|
MAINTAINER= java@freebsd.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A set of abstract Java classes that model a mail system
|
1999-11-01 05:22:56 +01:00
|
|
|
|
2004-09-03 05:34:29 +02:00
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf
|
1999-11-01 05:22:56 +01:00
|
|
|
|
|
|
|
USE_ZIP= YES
|
2004-09-03 05:34:29 +02:00
|
|
|
USE_JAVA= YES
|
1999-11-01 05:22:56 +01:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-11-01 05:22:56 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_CDROM= "See the license"
|
2004-09-09 20:38:25 +02:00
|
|
|
DOWNLOAD_URL= http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=7515-java_mail-1.3.1-oth-JPR&SiteId=JSC&TransactionId=noreg
|
2004-09-03 05:34:29 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCFILES1= JavaMail-1.1-changes.txt JavaMail-1.2-changes.txt \
|
|
|
|
JavaMail-1.2.pdf JavaMail-1.2.ps JavaMail-1.3-changes.txt \
|
|
|
|
Providers.pdf Providers.ps javadocs
|
|
|
|
DOCFILES2= CHANGES.txt LICENSE.txt NOTES.txt README.txt
|
|
|
|
PORTDOCS= ${DOCFILES1} ${DOCFILES2}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
JARFILES= mail.jar imap.jar mailapi.jar pop3.jar smtp.jar
|
|
|
|
PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,}
|
2000-04-25 17:22:51 +02:00
|
|
|
|
1999-11-01 05:22:56 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
2004-09-09 20:38:25 +02:00
|
|
|
IGNORE= You must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
|
1999-11-01 05:22:56 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2004-09-03 05:34:29 +02:00
|
|
|
@${ECHO_MSG} -n ">> Installing demo in ${EXAMPLESDIR}..."
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@cd ${WRKSRC} && ${FIND} demo \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} > /dev/null 2>&1
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Install JAR files in ${JAVAJARDIR}..."
|
|
|
|
@${MKDIR} ${JAVAJARDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/mail.jar ${JAVAJARDIR}/
|
|
|
|
@cd ${WRKSRC}/lib && ${INSTALL_DATA} imap.jar mailapi.jar pop3.jar smtp.jar ${JAVAJARDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC}/docs && ${FIND} ${DOCFILES1} \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
|
|
|
@cd ${WRKSRC} && ${FIND} ${DOCFILES2} \
|
|
|
|
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${FIND} -s ${WRKSRC}/demo -not -type d 2>/dev/null \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC},${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${FIND} -s -d ${WRKSRC}/demo -type d 2>/dev/null \
|
|
|
|
| ${SED} -ne 's,^${WRKSRC},@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} '@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,}' >> ${TMPPLIST}
|
1999-11-01 05:22:56 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|