aboutsummaryrefslogtreecommitdiffstats
path: root/mail/metamail/Makefile
blob: 19ba2225a1aceff242bfe5695f554478dddb9b14 (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
45
46
47
48
49
50
# New ports collection makefile for:    metamail
# Date created:     17 Oct 1994
# Whom:         torstenb
#
# $FreeBSD$
#

PORTNAME=   metamail
PORTVERSION=    2.7
PORTREVISION=   7
CATEGORIES= mail
MASTER_SITES=   http://ftp.funet.fi/pub/unix/mail/metamail/ \
        ftp://ftp.research.telcordia.com/pub/nsb/
DISTNAME=   mm${PORTVERSION}
EXTRACT_SUFX=   .tar.Z

MAINTAINER= jean-francois.dockes@wanadoo.fr
COMMENT=    Implementation of MIME, the Multipurpose Internet Mail Extensions

OPTIONS=    X11 "X11 hebrew font support" on

WRKSRC=     ${WRKDIR}/${DISTNAME}/src
MAN1=       audiocompose.1 audiosend.1 extcompose.1 \
        getfilename.1 mailto-hebrew.1 mailto.1 metamail.1 \
        metasend.1 mime.1 mimencode.1 mmencode.1 \
        patch-metamail.1 richtext.1 showaudio.1 \
        showexternal.1 shownonascii.1 showpartial.1 \
        showpicture.1 splitmail.1
MAN4=       mailcap.4

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_X11)
BUILD_DEPENDS=  bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
        mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
RUN_DEPENDS=    xloadimage:${PORTSDIR}/x11/xloadimage \
        mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
USE_XORG=   x11
PLIST_SUB+= X11=""
.else
PLIST_SUB+= X11="@comment "
.endif

post-patch:
.if defined(WITHOUT_X11)
    @${REINPLACE_CMD} -e '/fonts/d' ${WRKSRC}/Makefile
.endif
    @${RM} ${WRKSRC}/bin/*.orig

.include <bsd.port.post.mk>