Dima Panov 6c10934b13
devel/boost: improve port (+)
1. Convert ZSTD support to option, default on.
2. Support for additional image formats in the Generic Image Library (adds raw, PNG, TIFF, and JPEG formats). Added as an option, default off.
3. Resolve the problem preventing our *at() functions (like statat() and openat()) from being detected, it'a Linux-only feature.
4. do-test target provided -- it is of limited utility, because it takes multiple days and reports a lot of seemingly false problems.
5. Only extract the docs subdirectory, when building boost-docs -- saves some diskspace during builds. Likewise, when building jam (b2) don't extract other code.
6. Plist sort, .CURDIR usage optimization.
7. Backport a proper fix for broken function program_location_impl in Boost.DLL

PR:	286403, 287204 (based on), 287514 (fix previous version)
2025-07-23 01:50:35 +03:00

41 lines
931 B
Makefile

PORTNAME= boost-docs
COMMENT= Documentation for libraries from boost.org
WWW= https://www.boost.org/
USES= python:env shebangfix
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt
DOCSDIR= ${PREFIX}/share/doc/boost
UNIQ= /usr/bin/uniq
NO_ARCH= yes
NO_BUILD= yes
OPTIONS_DEFINE= DOCS
SHEBANG_GLOB= *.py
PORTDOCS= *
.include "${.CURDIR:H}/boost-all/common.mk"
do-install:
# Documentation & examples
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} &&\
${FIND} . -name "*.htm" -o -name "*.html" -o -name "*.css"\
-o -name "*.jp*g" -o -name "*.png" -o -name "*.gif"\
| ${PAX} -rw ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/libs &&\
${FIND} . -name "example" -o -name "examples" -o -name "*example*.cpp"\
-o -name "*example*.c" -o -name "*example*.hpp" | ${UNIQ} |\
${GREP} -v "assign/test" | ${GREP} -v "iterator/test" | \
${GREP} -v "range/test" |\
${PAX} -rw ${STAGEDIR}${DOCSDIR}/libs
.include <bsd.port.mk>