mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
dc13359a83
This is a bugfix only release of exim. The most important fix was introduced in the ports by local patch which is not needed now. PR: 192625 Submitted by: pi
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
# Created by: Johann Visagie <wjv@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= exim
|
|
PORTVERSION= 4.84
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_EXIM:S/$/:exim/}
|
|
MASTER_SITE_SUBDIR= exim4/:exim
|
|
PKGNAMESUFFIX= -doc-${DOCFORMAT}
|
|
DISTNAME= exim-${DISTDOCFORMAT}-${PORTVERSION}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:exim
|
|
DIST_SUBDIR= exim
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
COMMENT= Documentation for the Exim MTA in multiple formats
|
|
|
|
USES= tar:bzip2
|
|
|
|
DOCFORMAT?= html
|
|
DISTDOCFORMAT?= ${DOCFORMAT}
|
|
AVAILABLE_FORMATS= html \
|
|
pdf \
|
|
postscript
|
|
NO_BUILD= yes
|
|
|
|
.if make(makesum) && !defined(FETCH_ALL)
|
|
.error "You forgot to define FETCH_ALL to create the sane distinfo"
|
|
.endif
|
|
|
|
.if defined(FETCH_ALL)
|
|
. for _df in ${AVAILABLE_FORMATS}
|
|
. if ${_df} != ${DOCFORMAT}
|
|
DISTFILES+= exim-${_df}-${PORTVERSION}${EXTRACT_SUFX}:exim
|
|
. endif
|
|
. endfor
|
|
.endif
|
|
|
|
.if ${DOCFORMAT} == "html"
|
|
PORTDOCS= html
|
|
.elif ${DOCFORMAT} == "pdf"
|
|
PORTDOCS= *.pdf
|
|
.elif ${DOCFORMAT} == "postscript"
|
|
PORTDOCS= *.ps
|
|
.elif ${DOCFORMAT} == "info"
|
|
IGNORE= exim no longer provides documentation in info format
|
|
.else
|
|
pre-everything::
|
|
@ ${ECHO} 'ERROR: invalid value for DOCFORMAT: "${DOCFORMAT}"'
|
|
@ ${ECHO} 'Possible values are "html", "pdf", and "postscript".'
|
|
@ ${FALSE}
|
|
.endif
|
|
|
|
do-install:
|
|
@ ${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.if ${DOCFORMAT} == "html"
|
|
${TAR} -C ${WRKSRC}/doc -cf - html | \
|
|
${TAR} --unlink -C ${STAGEDIR}${DOCSDIR} -xf -
|
|
.elif ${DOCFORMAT} == "pdf"
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
|
|
.elif ${DOCFORMAT} == "postscript"
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${STAGEDIR}${DOCSDIR}
|
|
.else
|
|
@${FALSE}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|