1251855f52
environment. This stops some ports keeling over on an OpenSSL assert. (The patch is not exactly the one from the PR, but has been refined based on advice from freebsd-threads.) PR: 51205 Submitted by: Jim Westfall <jwestfall@surrealistic.net> MFC after: 1 month
63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
LCRYPTO_SRC= ${.CURDIR}/../../../crypto/openssl
|
|
LCRYPTO_DOC= ${.CURDIR}/../../../crypto/openssl/doc
|
|
|
|
CFLAGS+= -DTERMIOS -DANSI_SOURCE
|
|
CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR}
|
|
CFLAGS+= -DOPENSSL_THREADS -pthread
|
|
|
|
.if !defined(MAKE_IDEA) || ${MAKE_IDEA} != YES
|
|
CFLAGS+= -DOPENSSL_NO_IDEA
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
CFLAGS+= -DL_ENDIAN
|
|
.elif ${MACHINE_ARCH} == "alpha"
|
|
# no ENDIAN stuff defined for alpha (64-bit)
|
|
.endif
|
|
|
|
MANDIR= ${SHAREDIR}/openssl/man/man
|
|
|
|
.if defined(LIB)
|
|
_docs= ${LIB}
|
|
_skip= des_modes
|
|
_sec= 3
|
|
.else
|
|
_docs= apps
|
|
_skip= config
|
|
_sec= 1
|
|
.endif
|
|
|
|
man-update:
|
|
.for manpage in ${MAN}
|
|
@(sec=${manpage:E}; \
|
|
pod=${manpage:R}.pod; \
|
|
cp ${LCRYPTO_DOC}/${_docs}/$$pod .; \
|
|
pod2man --section=$$sec --release="0.9.7d" --center="OpenSSL" \
|
|
$$pod > ${.CURDIR}/man/${manpage}; \
|
|
rm $$pod; \
|
|
${ECHO} ${manpage})
|
|
.endfor
|
|
|
|
man-makefile-update:
|
|
rm -f ${.CURDIR}/Makefile.man
|
|
echo '# $$FreeBSD$$' >> ${.CURDIR}/Makefile.man
|
|
echo '# DO NOT EDIT: generated from man-makefile-update target' >> \
|
|
${.CURDIR}/Makefile.man
|
|
for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
|
|
fn=`basename $$i .pod`; \
|
|
if [ "$$fn" != "${_skip}" ]; then \
|
|
${ECHO} "MAN+= $$fn.${_sec}" >> ${.CURDIR}/Makefile.man; \
|
|
fi; \
|
|
done
|
|
for i in ${LCRYPTO_DOC}/${_docs}/*.pod; do \
|
|
fn=`basename $$i .pod`; \
|
|
if [ "$$fn" != "${_skip}" ]; then \
|
|
perl ${LCRYPTO_SRC}/util/extract-names.pl < $$i | \
|
|
awk "/^$$fn\$$/ { next; } \
|
|
{ print \"MLINKS+= $$fn.${_sec} \" \$$1 \".${_sec}\" }" >> \
|
|
${.CURDIR}/Makefile.man; \
|
|
fi; \
|
|
done
|