aboutsummaryrefslogtreecommitdiffstats
path: root/security/krb5
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2007-01-14 13:13:32 +0800
committercy <cy@FreeBSD.org>2007-01-14 13:13:32 +0800
commit499c0b5c254a3dd52dd00ede8a1ffb4e6989edd9 (patch)
tree7692c88b3fabe6d62c1796414dd46b6798e0b7fa /security/krb5
parentd7194302ee3e21589b57f9e79327f800985da176 (diff)
downloadfreebsd-ports-gnome-499c0b5c254a3dd52dd00ede8a1ffb4e6989edd9.tar.gz
freebsd-ports-gnome-499c0b5c254a3dd52dd00ede8a1ffb4e6989edd9.tar.zst
freebsd-ports-gnome-499c0b5c254a3dd52dd00ede8a1ffb4e6989edd9.zip
Include new documentation dependencies.
Conditionally build and install documentation using a new knob.
Diffstat (limited to 'security/krb5')
-rw-r--r--security/krb5/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile
index a3d14dd26016..eee25f2a5415 100644
--- a/security/krb5/Makefile
+++ b/security/krb5/Makefile
@@ -31,8 +31,13 @@ CONFIGURE_ENV= INSTALL="${INSTALL}" YACC=/usr/bin/yacc \
CFLAGS="${CFLAGS}"
MAKE_ARGS= INSTALL="${INSTALL}"
KRB5_KRB4_COMPAT?= NO
+KRB5_DOC?= YES
+.if defined(KRB5_DOC) && ${KRB5_DOC} == "YES"
+BUILD_DEPENDS+= texi2dvi:${PORTSDIR}/print/teTeX-base \
+ dvips:${PORTSDIR}/print/dvipsk-tetex
INFO= krb425 krb5-admin krb5-install krb5-user
+.endif
.if !defined(KRB5_KRB4_COMPAT) || ${KRB5_KRB4_COMPAT} == "NO"
CONFIGURE_ARGS+= --without-krb4
@@ -95,13 +100,15 @@ pre-build:
.endif
post-build:
+.if defined(KRB5_DOC) && ${KRB5_DOC} == "YES"
@cd ${WRKSRC}/../doc && \
${MAKE} all
+.endif
post-install:
-# html documentation
-.if defined(WANT_HTML) && ${WANT_HTML} == "YES"
@${MKDIR} ${PREFIX}/share/doc/krb5
+# html documentation
+.if defined(KRB5_DOC) && ${KRB5_DOC} == "YES" && defined(WANT_HTML) && ${WANT_HTML} == "YES"
for html in ${HTML_DOC_DIR}/*.html; do \
${INSTALL_MAN} $${html} ${PREFIX}/share/doc/krb5; \
${ECHO_CMD} share/doc/krb5/`${BASENAME} $${html}` >> ${TMPPLIST}; \
@@ -109,9 +116,12 @@ post-install:
.endif
${ECHO_CMD} @dirrm share/doc/krb5 >> ${TMPPLIST}
# handle info files
+.if defined(KRB5_DOC) && ${KRB5_DOC} == "YES"
.for info in ${INFO}
${INSTALL_MAN} ${WRKSRC}/../doc/${info}.info ${PREFIX}/info/${info}.info
.endfor
+.endif
+
# fixup packing list (no libs without version numbers in aout case)
.if ${PORTOBJFORMAT} == "aout"
${ECHO_MSG} "Fixing packing list for a.out"