1 # $NetBSD: Makefile,v 1.3 2010/04/12 18:02:46 joerg Exp $
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.
7 CRYPTODIST
= ${NETBSDSRCDIR}/crypto
8 .
include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
10 VERSION
!= head
-2 ${OPENSSLSRC}/README | tail
-1 | awk
'{ print $$2; }'
13 for i in
${OPENSSLSRC}/doc
/apps
/*.pod
; do \
14 fn
=`basename $$i .pod`; \
15 if
[ "$$fn" = "config" ]; then \
17 dst
=openssl.cnf.
$$sec; \
18 elif
[ "$$fn" = "openssl" ]; then \
20 dst
=`basename $$i .pod`.
$$sec; \
23 dst
=openssl_
`basename $$i .pod`.
$$sec; \
26 pod2man
--section
=$$sec --center
=OpenSSL
--release
=${VERSION} \
28 sed
-e
's/[[:space:]]*$$//' | \
29 perl libcrypto.pl
>$$dst; \
31 for i in
${OPENSSLSRC}/doc
/crypto
/*.pod \
32 ${OPENSSLSRC}/doc
/ssl
/*.pod
; do \
33 fn
=`basename $$i .pod`; \
34 if
[ "$$fn" = "des_modes" ]; then \
37 pod2man
--section
=$$sec --center
=OpenSSL
--release
=${VERSION} \
39 sed
-e
'/$$RCSfile/d' -e
'/$$Log/d' -e
's/[[:space:]]*$$//' \
40 > `basename $$i .pod`.
$$sec; \
44 pod2man
--section
=$$sec --center
=OpenSSL
--release
=${VERSION} \
46 sed
-e
's/[[:space:]]*$$//' | \
47 perl libcrypto.pl
>`basename $$i .pod`.
$$sec; \
50 for i in bio blowfish bn bn_internal buffer des dh ecdsa \
52 evp hmac lhash md5 mdc2 pem rand rc4 ripemd rsa \
53 sha threads ui ui_compat x509
; do \
54 mv
$$i.3 openssl_
$$i.3; \