summaryrefslogtreecommitdiff
path: root/java/javamail/Makefile
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-05-07 22:30:54 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-05-07 22:30:54 +0000
commit385ed6e06eaa9ac80f4b51a6e380dd9676bc2d2d (patch)
tree01b0db8096b4eae99277739420de9c95dba9d985 /java/javamail/Makefile
parentCleaned things up here and there. (diff)
Cleaned things up here and there.
Switched to USE_JAVA. This fixes PR 35080. Improved download URL. Changed do-install target a little. Installing links to the actual JAR files in ${PREFIX}/share/java/classes. The actual JAR files are now in ${PREFIX}/share/java/${PKGNAME}. Bumped PORTREVISION. PR: 35080
Notes
Notes: svn path=/head/; revision=58681
Diffstat (limited to 'java/javamail/Makefile')
-rw-r--r--java/javamail/Makefile28
1 files changed, 15 insertions, 13 deletions
diff --git a/java/javamail/Makefile b/java/javamail/Makefile
index 4739ed9d6c87..4f3d32a862d3 100644
--- a/java/javamail/Makefile
+++ b/java/javamail/Makefile
@@ -7,35 +7,37 @@
PORTNAME= javamail
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= java
+MASTER_SITES= #
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}
MAINTAINER= noway@nohow.demon.co.uk
-RUN_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk \
- ${LOCALBASE}/share/java/classes/activation.jar:${PORTSDIR}/java/jaf
+RUN_DEPENDS= ${LOCALBASE}/share/java/classes/activation.jar:${PORTSDIR}/java/jaf
USE_ZIP= YES
+USE_JAVA= 1.1+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-JDK_VERSION= 1.1.8
NO_BUILD= yes
NO_CDROM= "See the license"
-
-PLIST_SUB= PORTVERSION="${PORTVERSION}"
+TARGET_DIR= ${PREFIX}/share/java/${PKGNAME}
+PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
+DOWNLOAD_URL= "http://java.sun.com/Download4?config-file=JavaMail-1_2.config&platform=zip&button=continue"
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
-IGNORE= "You must manually fetch the distribution from http://www.javasoft.com/products/javamail/index.html and place it in ${DISTDIR} then run make again"
+IGNORE= "You must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again"
.endif
do-install:
- @cd ${WRKSRC}; \
- ${MKDIR} ${PREFIX}/share/java/classes/; \
- ${CP} ${WRKSRC}/*.jar ${PREFIX}/share/java/classes/; \
- ${MKDIR} ${PREFIX}/share/java/${PKGNAME}/; \
- ${CP} CHANGES.txt LICENSE.txt NOTES.txt README.txt ${PREFIX}/share/java/${PKGNAME}/; \
- ${CP} -R demo ${PREFIX}/share/java/${PKGNAME}/; \
- ${CP} -R docs ${PREFIX}/share/java/${PKGNAME}/
+ ${MKDIR} ${TARGET_DIR}
+ ${CP} -R ${WRKSRC}/* ${TARGET_DIR}
+ ${LN} -sf ${TARGET_DIR}/imap.jar ${PREFIX}/share/java/classes/imap.jar
+ ${LN} -sf ${TARGET_DIR}/mail.jar ${PREFIX}/share/java/classes/mail.jar
+ ${LN} -sf ${TARGET_DIR}/mailapi.jar ${PREFIX}/share/java/classes/mailapi.jar
+ ${LN} -sf ${TARGET_DIR}/pop3.jar ${PREFIX}/share/java/classes/pop3.jar
+ ${LN} -sf ${TARGET_DIR}/smtp.jar ${PREFIX}/share/java/classes/smtp.jar
.include <bsd.port.post.mk>