openssl: Adjust manual pages for 1.0.1h.
[dragonfly.git] / secure / lib / libcrypto / Makefile.inc
CommitLineData
34240b21
SW
1OSSLVERSION= 1.0.1h
2OSSLDATE= 2014-06-05
a7e8bf1a 3LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl
a561f9ff 4LCRYPTO_DOC= ${LCRYPTO_SRC}/doc
984263bc 5
64099218 6CFLAGS+= -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIOS
66699045 7CFLAGS+= -DOPENSSL_THREADS
ca7b1aff
PA
8CFLAGS+= -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT \
9 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM \
10 -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM \
11 -DWHIRLPOOL_ASM -DGHASH_ASM
aa1f3630 12.if ${MACHINE_ARCH} == "i386"
ca7b1aff
PA
13CFLAGS+= -DOPENSSL_BN_ASM_PART_WORDS -DRMD160_ASM
14.elif ${MACHINE_ARCH} == "x86_64"
15CFLAGS+= -DOPENSSL_BN_ASM_MONT5 -DBSAES_ASM
aa1f3630 16.endif
984263bc 17CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto \
2d149594 18 -I${LCRYPTO_SRC}/crypto/asn1 -I${LCRYPTO_SRC}/crypto/evp \
ca7b1aff 19 -I${LCRYPTO_SRC}/crypto/modes \
984263bc
MD
20 -I${LCRYPTO_SRC}/crypto/engine -I${.OBJDIR}
21
984263bc
MD
22MANDIR= ${SHAREDIR}/openssl/man/man
23
24.if defined(LIB)
25_docs= ${LIB}
984263bc
MD
26_sec= 3
27.else
28_docs= apps
984263bc
MD
29_sec= 1
30.endif
31
32man-update:
33.for manpage in ${MAN}
34 @(sec=${manpage:E}; \
35 pod=${manpage:R}.pod; \
36 cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
db232015
PA
37 pod2man --section=$$sec --release="${OSSLVERSION}" \
38 --date="${OSSLDATE}" --center="OpenSSL" \
984263bc
MD
39 $$pod > ${.CURDIR}/man/${manpage}; \
40 rm $$pod; \
41 ${ECHO} ${manpage})
42.endfor
43
44man-makefile-update:
45 rm -f ${.CURDIR}/Makefile.man
984263bc
MD
46 echo '# DO NOT EDIT: generated from man-makefile-update target' >> \
47 ${.CURDIR}/Makefile.man
48 for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
49 fn=`basename $$i .pod`; \
a561f9ff
SS
50 sec=`perl ${LCRYPTO_SRC}/util/extract-section.pl < $$i`; \
51 sec=$${sec:-${_sec}}; \
52 ${ECHO} "MAN+= $$fn.$$sec" >> ${.CURDIR}/Makefile.man; \
984263bc 53 perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
a561f9ff
SS
54 sed -Ee "/^$$fn\$$/d;s/^(.*)/MLINKS+= $$fn.$$sec \1.$$sec/" >> \
55 ${.CURDIR}/Makefile.man; \
984263bc 56 done