1 # $NetBSD: Makefile,v 1.5 2026/06/09 19:20:38 christos Exp $ 2 3 # the makefile is not, and should not be visited during normal build process. 4 # try to use latest pod2man, which comes with the latest perl. 5 6 .include <bsd.own.mk> 7 CRYPTODIST= ${NETBSDSRCDIR}/crypto 8 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 9 10 OPENSSLDIST=${.CURDIR}/../../../openssl-3.5.7 11 VERSION!= awk '/\#\#\#/ { print $$6; exit 0; };' ${OPENSSLDIST}/CHANGES.md 12 13 14 make-manpages: 15 for sec in 1 3 5 7; do \ 16 for i in ${OPENSSLDIST}/doc/man$$sec/*.pod; do \ 17 fn=$$(basename $$i .pod); \ 18 case $$fn in \ 19 (config|HMAC|MD5|DES_random_key) fn=openssl-$$fn;; \ 20 esac; \ 21 case $$sec in \ 22 1) if [ "$$fn" = "openssl" ]; then \ 23 dst=$$fn.$$sec; \ 24 else \ 25 case $$fn in \ 26 openssl*) dst=$$fn.$$sec;; \ 27 *) dst=openssl-$$fn.$$sec;; \ 28 esac; \ 29 fi;; \ 30 *) dst=$$fn.$$sec;; \ 31 esac; \ 32 (cd $$(dirname $$i); \ 33 pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \ 34 $$(basename $$i)) | \ 35 sed -e 's/[[:space:]]*$$//' | \ 36 perl libcrypto.pl > $$dst; \ 37 done \ 38 done 39 40 clean: 41 -/bin/rm -f *.[0-9] 42