blob: 28be7284396cbf13279e9c084efb6a18c7b2acfd (
plain)
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
|
# New ports collection makefile for: exim-doc-html
# Date created: 27 November 2001
# Whom: Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= exim-doc-${DOCFORMAT}
PORTVERSION= 4.10
CATEGORIES= mail
MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/ \
http://www.exim.org/ftp/exim4/ \
ftp://ftp.is.co.za/networking/mail/transport/exim/
DISTNAME= exim-${DOCFORMAT}-${PORTVERSION}
MAINTAINER= sheldonh@FreeBSD.org
COMMENT= Documentation for the Exim MTA in multiple formats
USE_BZIP2= yes
NO_BUILD= yes
DOCSDIR= ${PREFIX}/share/doc/exim
PLIST= ${WRKDIR}/pkg-plist
DOCFORMAT?= html
.if ${DOCFORMAT} != "html" && ${DOCFORMAT} != "pdf" && ${DOCFORMAT} != "postscript"
.BEGIN:
@ ${ECHO} 'ERROR: invalid value for DOCFORMAT: "${DOCFORMAT}"'
@ ${ECHO} 'Possible values are "html", "pdf" and "postscript".'
@ ${FALSE}
.endif
pre-install:
@ ${CP} ${PKGDIR}/pkg-plist_${DOCFORMAT} ${PLIST}
do-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
.if ${DOCFORMAT} == "html"
@ ${MKDIR} ${DOCSDIR}/html
@ ${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html
@ ${INSTALL_DATA} ${WRKSRC}/doc/html/*.gif ${DOCSDIR}/html
.elif ${DOCFORMAT} == "pdf"
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
.elif ${DOCFORMAT} == "postscript"
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${DOCSDIR}
.endif
.endif
.include <bsd.port.mk>
|