mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
9ddf222652
- Add a mirror site - Pass maintainership to submitter PR: 98196 Submitted by: Dryice Liu <dryice@dryice.name>
82 lines
2.1 KiB
Makefile
82 lines
2.1 KiB
Makefile
# New ports collection makefile for: exim-doc-html
|
|
# Date created: 27 November 2001
|
|
# Whom: Johann Visagie <wjv@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= exim
|
|
PORTVERSION= 4.62
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_EXIM} \
|
|
http://dryice.name/computer/FreeBSD/distfiles/
|
|
MASTER_SITE_SUBDIR= exim4
|
|
PKGNAMESUFFIX= -doc-${DOCFORMAT}
|
|
DISTNAME= exim-${DISTDOCFORMAT}-${PORTVERSION}
|
|
DIST_SUBDIR= exim
|
|
|
|
MAINTAINER= dryice@dryice.name
|
|
COMMENT= Documentation for the Exim MTA in multiple formats
|
|
|
|
USE_BZIP2= yes
|
|
|
|
DOCFORMAT?= html
|
|
DISTDOCFORMAT?= ${DOCFORMAT}
|
|
|
|
.if ${DOCFORMAT} == "info"
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
|
|
MAKEINFO= ${LOCALBASE}/bin/makeinfo
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
.if ${DOCFORMAT} == "html"
|
|
PORTDOCS= html
|
|
.elif ${DOCFORMAT} == "pdf"
|
|
PORTDOCS= *.pdf
|
|
.elif ${DOCFORMAT} == "postscript"
|
|
PORTDOCS= *.ps
|
|
.elif ${DOCFORMAT} == "info"
|
|
PLIST= ${PKGDIR}/pkg-plist_${DOCFORMAT}
|
|
.else
|
|
pre-everything::
|
|
@ ${ECHO} 'ERROR: invalid value for DOCFORMAT: "${DOCFORMAT}"'
|
|
@ ${ECHO} 'Possible values are "html", "pdf", "postscript" and "info".'
|
|
@ ${FALSE}
|
|
.endif
|
|
.endif
|
|
|
|
do-build:
|
|
.if ${DOCFORMAT} == "info"
|
|
@ cd ${WRKSRC}/doc; \
|
|
${MAKEINFO} --no-split --output exim.info spec.texinfo; \
|
|
${MAKEINFO} --no-split --output exim_filter.info filter.texinfo
|
|
.else
|
|
@ ${DO_NADA}
|
|
.endif
|
|
|
|
do-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
.if ${DOCFORMAT} == "html"
|
|
${TAR} -C ${WRKSRC}/doc -cf - html | \
|
|
${TAR} --unlink -C ${DOCSDIR} -xf -
|
|
.elif ${DOCFORMAT} == "pdf"
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
|
|
.elif ${DOCFORMAT} == "postscript"
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${DOCSDIR}
|
|
.elif ${DOCFORMAT} == "info"
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/exim.info ${PREFIX}/info
|
|
@ install-info --section="Exim" \
|
|
--entry "* User guide: (exim). Exim manual" \
|
|
${PREFIX}/info/exim.info ${PREFIX}/info/dir
|
|
@ ${INSTALL_DATA} ${WRKSRC}/doc/exim_filter.info ${PREFIX}/info
|
|
@ install-info --section="Exim" \
|
|
--entry "* Filtering: (exim_filter). Filtering mail with Exim" \
|
|
${PREFIX}/info/exim_filter.info ${PREFIX}/info/dir
|
|
.else
|
|
@${FALSE}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|