mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- fix build on FreeBSD5 and FreeBSD4
PR: 105149 Approved by: (maintainer timeout)
This commit is contained in:
parent
8d86dc65a1
commit
f8dc60b0ec
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178056
2 changed files with 27 additions and 0 deletions
|
@ -58,4 +58,6 @@ post-install:
|
|||
cd ${WRKSRC}/examples; \
|
||||
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/examples
|
||||
|
||||
.include "${.CURDIR}/mancompress.mk"
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
25
devel/cdk/mancompress.mk
Normal file
25
devel/cdk/mancompress.mk
Normal file
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# this files is a workaround for the target in bsd.port.mk
|
||||
# which breaks when the list of MLINKS gets > 32k
|
||||
#
|
||||
|
||||
# Compress (or uncompress) and symlink manpages.
|
||||
compress-man::
|
||||
@${ECHO_MSG} "===> Compressing manual pages for ${PKGNAME}"
|
||||
@_manpages='${_MANPAGES:S/'/'\''/g}' && [ "$${_manpages}" != "" ] && ( eval ${GZIP_CMD} $${_manpages} ) || ${TRUE}
|
||||
${ECHO_CMD} '${MLINKS}' | \
|
||||
${AWK} -v MAN="${MANPREFIX}/man/man3/" \
|
||||
'{ for (i=1; i<=NF; i+=2) \
|
||||
{ print MAN $$i ".gz " MAN $$(i+1) ".gz" } }' | \
|
||||
while read regular link; do \
|
||||
${ECHO_CMD} $${regular} $${link}; \
|
||||
${RM} -f $${link%.gz}; ${RM} -f $${link%.gz}.gz; \
|
||||
${LN} -fs `${ECHO_CMD} $${regular} $${link} | ${AWK} '{ \
|
||||
z=split($$1, a, /\//); x=split($$2, b, /\//); \
|
||||
while (a[i] == b[i]) i++; \
|
||||
for (q=i; q<x; q++) printf "../"; \
|
||||
for (; i<z; i++) printf a[i] "/"; printf a[z]; }'` $${link}; \
|
||||
done
|
||||
|
Loading…
Add table
Reference in a new issue