mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
74 lines
2.5 KiB
Makefile
74 lines
2.5 KiB
Makefile
# New ports collection makefile for: JavaMail API Implementation
|
|
# Date created: 1999/08/08
|
|
# Whom: Jose Marques
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= javamail
|
|
PORTVERSION= 1.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= java mail
|
|
MASTER_SITES= #
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}
|
|
|
|
MAINTAINER= nemoliu@FreeBSD.org
|
|
COMMENT= A Reference Implementation of JSR 919
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/activation.jar:${PORTSDIR}/java/jaf
|
|
|
|
USE_ZIP= YES
|
|
USE_JAVA= YES
|
|
JAVA_VERSION= 1.4+
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
NO_BUILD= yes
|
|
NO_CDROM= See the license
|
|
DOWNLOAD_URL= http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=javamail-1.4-oth-JPR&SiteId=JSC&TransactionId=noreg
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
DOCFILES1= JavaMail-1.1-changes.txt JavaMail-1.2-changes.txt \
|
|
JavaMail-1.4.pdf JavaMail-1.3-changes.txt \
|
|
JavaMail-1.4-changes.txt Providers.pdf javadocs
|
|
DOCFILES2= CHANGES.txt LICENSE.txt NOTES.txt README.txt SSLNOTES.txt \
|
|
distributionREADME.txt
|
|
PORTDOCS= ${DOCFILES1} ${DOCFILES2}
|
|
.endif
|
|
|
|
JARFILES= mail.jar imap.jar mailapi.jar pop3.jar smtp.jar
|
|
PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
|
|
IGNORE= you must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
|
|
.endif
|
|
|
|
do-install:
|
|
@${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}..."
|
|
@${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}
|
|
|
|
.include <bsd.port.post.mk>
|