blob: 1e92898aeedff4adf5e561dd8f69a2a2ca038611 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: Johann Visagie <wjv@FreeBSD.org>
# $FreeBSD$
PORTNAME= exim
PORTVERSION= 4.89
CATEGORIES= mail
MASTER_SITES= EXIM
MASTER_SITE_SUBDIR= /exim4/ \
/exim4/old/
PKGNAMESUFFIX= -doc-${DOCFORMAT}
DISTNAME= exim-${DISTDOCFORMAT}-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
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}
. 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>
|