freebsd-ports/mail/metamail/Makefile
Raphael Kubo da Costa 6e89c2ae20 Do not try to remove directories used only when the X11 option is on.
Fixes check-plist errors with the X11 option unset.

PR:		190768
Submitted by:	Dave Duchscher <daved@tamu.edu>
2014-06-21 21:53:20 +00:00

39 lines
924 B
Makefile

# Created by: torstenb
# $FreeBSD$
PORTNAME= metamail
PORTVERSION= 2.7
PORTREVISION= 11
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= ports@FreeBSD.org
COMMENT= Implementation of MIME, the Multipurpose Internet Mail Extensions
LICENSE= MIT
WRKSRC= ${WRKDIR}/${DISTNAME}/src
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT= X11
OPTIONS_SUB= yes
X11_DESC= X11 hebrew font support
X11_BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
X11_RUN_DEPENDS= xloadimage:${PORTSDIR}/x11/xloadimage \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
X11_USE= XORG=x11
.include <bsd.port.options.mk>
post-patch:
.if ! ${PORT_OPTIONS:MX11}
@${REINPLACE_CMD} -e '/fonts/d' ${WRKSRC}/Makefile
.endif
@${RM} ${WRKSRC}/bin/*.orig
.include <bsd.port.mk>