blob: dcdd4cf4d584adbc704d8a1c6b415522040232f1 (
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
|
# New ports collection makefile for: JavaMail API Implementation
# Date created: 1999/08/08
# Whom: Jose Marques
#
# $FreeBSD$
#
PORTNAME= javamail
PORTVERSION= 1.3.1
#PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= #
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}
MAINTAINER= java@freebsd.org
COMMENT= A set of abstract Java classes that model a mail system
RUN_DEPENDS= ${LOCALBASE}/share/java/classes/activation.jar:${PORTSDIR}/java/jaf
USE_ZIP= YES
USE_JAVA= 1.1+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
NO_CDROM= "See the license"
TARGET_DIR= ${PREFIX}/share/java/${PKGNAME}
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
DOWNLOAD_URL= "http://java.sun.com/products/javamail/"
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= "You must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again"
.endif
do-install:
${MKDIR} ${TARGET_DIR}
${CP} -R ${WRKSRC}/* ${TARGET_DIR}
${LN} -sf ${TARGET_DIR}/lib/imap.jar ${PREFIX}/share/java/classes/imap.jar
${LN} -sf ${TARGET_DIR}/mail.jar ${PREFIX}/share/java/classes/mail.jar
${LN} -sf ${TARGET_DIR}/lib/mailapi.jar ${PREFIX}/share/java/classes/mailapi.jar
${LN} -sf ${TARGET_DIR}/lib/pop3.jar ${PREFIX}/share/java/classes/pop3.jar
${LN} -sf ${TARGET_DIR}/lib/smtp.jar ${PREFIX}/share/java/classes/smtp.jar
.include <bsd.port.post.mk>
|