diff options
author | Alexey Zelkin <phantom@FreeBSD.org> | 2004-03-24 09:50:03 +0000 |
---|---|---|
committer | Alexey Zelkin <phantom@FreeBSD.org> | 2004-03-24 09:50:03 +0000 |
commit | 713a6ebd263385e6b06292bcdbd7bdcccbe1c3c6 (patch) | |
tree | f43e680db76b18bc70dbda2624a7ef4c851dce31 /share/mk/doc.docbook.mk | |
parent | 7f574a3bf2c2d233d61518745e1709d29a121352 (diff) | |
download | doc-713a6ebd263385e6b06292bcdbd7bdcccbe1c3c6.tar.gz doc-713a6ebd263385e6b06292bcdbd7bdcccbe1c3c6.zip |
Introduce BZIP2_PACKAGE user defined variable which used to control
output format of 'make package'. If BZIP2_PACKAGE is set, then .tbz
archive will be generated instead of .tgz.
Notes
Notes:
svn path=/head/; revision=20407
Diffstat (limited to 'share/mk/doc.docbook.mk')
-rw-r--r-- | share/mk/doc.docbook.mk | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk index b9cc182cf4..a15b1d753b 100644 --- a/share/mk/doc.docbook.mk +++ b/share/mk/doc.docbook.mk @@ -97,6 +97,13 @@ # GREYSCALE_IMAGES Convert the screenshots to greyscale before # embedding them into the PostScript output. # +# Package building options: +# +# BZIP2_PACKAGE Use bzip2(1) utility to compress package tarball +# instead of gzip(1). It results packages to have +# suffix .tbz instead of .tgz. Using bzip2(1) +# provides better compression, but requires longer +# time and utilizes more CPU resources than gzip(1). # # Documents should use the += format to access these. @@ -893,11 +900,17 @@ packagelist: # target depends on the corresponding install target running. # +.if defined(BZIP2_PACKAGE) +PKG_SUFFIX= tbz +.else +PKG_SUFFIX= tgz +.endif + PKGDOCPFX!= realpath ${DOC_PREFIX} .for _curformat in ${KNOWN_FORMATS} -${PACKAGES}/${.CURDIR:T}.${LANGCODE}.${_curformat}.tgz: +${PACKAGES}/${.CURDIR:T}.${LANGCODE}.${_curformat}.${PKG_SUFFIX}: ${MKDIR} -p ${.OBJDIR}/pkg; \ (cd ${.CURDIR} && \ ${MAKE} FORMATS=${_curformat} DOCDIR=${.OBJDIR}/pkg install); \ @@ -910,7 +923,7 @@ ${PACKAGES}/${.CURDIR:T}.${LANGCODE}.${_curformat}.tgz: (${RM} -fr ${.TARGET} PLIST.${_curformat} && false); \ ${RM} -rf ${.OBJDIR}/pkg -package-${_curformat}: ${PACKAGES}/${.CURDIR:T}.${LANGCODE}.${_curformat}.tgz +package-${_curformat}: ${PACKAGES}/${.CURDIR:T}.${LANGCODE}.${_curformat}.${PKG_SUFFIX} .endfor .if ${LOCAL_CSS_SHEET} != ${CSS_SHEET} |