1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/java/javamail/Makefile
Ernst de Haan 385ed6e06e 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
2002-05-07 22:30:54 +00:00

44 lines
1.3 KiB
Makefile

# New ports collection makefile for: JavaMail API Implementation
# Date created: 1999/08/08
# Whom: Jose Marques
#
# $FreeBSD$
#
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}/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/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 ${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}/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>