2003-07-24 18:16:30 +04:00
|
|
|
# $NetBSD: Makefile,v 1.12 2003/07/24 14:16:41 itojun Exp $
|
2000-10-04 09:34:15 +04:00
|
|
|
|
2001-04-12 11:48:03 +04:00
|
|
|
# the makefile is not, and should not be visited during normal build process.
|
2001-04-13 04:18:10 +04:00
|
|
|
# try to use latest pod2man, which comes with the latest perl.
|
2001-04-12 11:48:03 +04:00
|
|
|
|
2003-06-30 18:18:56 +04:00
|
|
|
# XXX: remove .UC lines
|
|
|
|
|
2002-08-19 13:41:27 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
CRYPTODIST= ${NETBSDSRCDIR}/crypto/dist
|
2003-07-24 18:16:30 +04:00
|
|
|
.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
|
|
|
|
|
|
|
|
VERSION!= grep VERSION ${OPENSSLSRC}/Makefile.ssl | head -1 | sed -e 's/VERSION=//'
|
2000-10-04 09:34:15 +04:00
|
|
|
|
|
|
|
manpages:
|
2003-07-24 18:16:30 +04:00
|
|
|
for i in ${OPENSSLSRC}/doc/apps/*.pod; do \
|
2000-10-04 09:34:15 +04:00
|
|
|
fn=`basename $$i .pod`; \
|
2000-10-04 09:39:08 +04:00
|
|
|
if [ "$$fn" = "config" ]; then \
|
|
|
|
sec=5; \
|
2000-10-04 10:46:13 +04:00
|
|
|
dst=openssl.cnf.$$sec; \
|
2000-10-05 05:55:49 +04:00
|
|
|
elif [ "$$fn" = "openssl" ]; then \
|
2000-10-04 09:39:08 +04:00
|
|
|
sec=1; \
|
2000-10-04 10:46:13 +04:00
|
|
|
dst=`basename $$i .pod`.$$sec; \
|
2000-10-05 05:55:49 +04:00
|
|
|
else \
|
|
|
|
sec=1; \
|
|
|
|
dst=openssl_`basename $$i .pod`.$$sec; \
|
2000-10-04 10:46:13 +04:00
|
|
|
fi; \
|
|
|
|
(cd `dirname $$i`; \
|
|
|
|
pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
|
2001-04-12 14:45:33 +04:00
|
|
|
`basename $$i`) | \
|
|
|
|
perl libcrypto.pl >$$dst; \
|
2000-10-04 09:34:15 +04:00
|
|
|
done
|
2003-07-24 18:16:30 +04:00
|
|
|
for i in ${OPENSSLSRC}/doc/crypto/*.pod \
|
|
|
|
${OPENSSLSRC}/doc/ssl/*.pod; do \
|
2000-10-04 09:34:15 +04:00
|
|
|
fn=`basename $$i .pod`; \
|
2000-10-04 11:15:06 +04:00
|
|
|
if [ "$$fn" = "des_modes" ]; then \
|
2000-10-04 09:34:15 +04:00
|
|
|
sec=7; \
|
|
|
|
(cd `dirname $$i`; \
|
|
|
|
pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
|
2000-10-04 10:46:13 +04:00
|
|
|
`basename $$i`) | sed -e '/$$RCSfile/d' -e '/$$Log/d' > `basename $$i .pod`.$$sec; \
|
2000-10-04 09:34:15 +04:00
|
|
|
else \
|
|
|
|
sec=3; \
|
|
|
|
(cd `dirname $$i`; \
|
|
|
|
pod2man --section=$$sec --center=OpenSSL --release=${VERSION} \
|
|
|
|
`basename $$i`) | \
|
2001-04-12 14:45:33 +04:00
|
|
|
perl libcrypto.pl >`basename $$i .pod`.$$sec; \
|
2000-10-04 09:34:15 +04:00
|
|
|
fi \
|
|
|
|
done
|
2003-07-24 18:16:30 +04:00
|
|
|
for i in bio blowfish bn bn_internal buffer des dh dsa engine err \
|
|
|
|
evp hmac lhash md5 mdc2 pem rand rc4 ripemd rsa \
|
|
|
|
sha threads ui ui_compat; do \
|
2001-04-12 14:45:33 +04:00
|
|
|
mv $$i.3 openssl_$$i.3; \
|
|
|
|
done
|
2000-10-04 09:39:08 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-/bin/rm -f *.[0-9]
|
2003-07-24 18:16:30 +04:00
|
|
|
|