summaryrefslogtreecommitdiffstats
path: root/secure/lib/libcrypto
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-03-04 06:51:51 +0000
committerkris <kris@FreeBSD.org>2001-03-04 06:51:51 +0000
commitbbfa402ef977b24dd7568bbd9398be1bb363a14b (patch)
tree7b6dc4a79b64ad059fa171cccde37db6b1edb625 /secure/lib/libcrypto
parentc78c138f0f1e0db42115c306e06a6c59f6d5b4bc (diff)
downloadFreeBSD-src-bbfa402ef977b24dd7568bbd9398be1bb363a14b.zip
FreeBSD-src-bbfa402ef977b24dd7568bbd9398be1bb363a14b.tar.gz
Clean up the installation of the compatibility libdes header/library
symlinks Pointed out by: bde
Diffstat (limited to 'secure/lib/libcrypto')
-rw-r--r--secure/lib/libcrypto/Makefile33
1 files changed, 11 insertions, 22 deletions
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index 8f41ace..67b2ab9 100644
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -365,6 +365,17 @@ beforeinstall: openssl/opensslconf.h openssl/evp.h
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
${CRYPTO_HDRS} openssl/evp.h openssl/opensslconf.h \
${DESTDIR}/usr/include/openssl
+ ln -fs openssl/des.h ${INCDIR}/des.h
+
+afterinstall:
+.if !defined(NOPIC)
+SYMLINKS+= lib${LIB}.so.${SHLIB_MAJOR} ${LIBDIR}/libdes.so.3
+SYMLINKS+= lib${LIB}.so.${SHLIB_MAJOR} ${LIBDIR}/libdes.so
+.endif
+SYMLINKS+= lib${LIB}.a ${LIBDIR}/libdes.a
+.if !defined(NOPROFILE)
+SYMLINKS+= lib${LIB}_p.a ${LIBDIR}/libdes_p.a
+.endif
.include <bsd.lib.mk>
@@ -382,25 +393,3 @@ beforeinstall: openssl/opensslconf.h openssl/evp.h
perl -I${PERLPATH} $(.ALLSRC) elf ${CPUTYPE:Mi386:S/i//} > $(.PREFIX).pl.s ; ${AS} ${AFLAGS} $(.PREFIX).pl.s -o $(.TARGET)
.endif
-afterinstall:
-.if !defined(NOPIC)
- @cd ${DESTDIR}${SHLIBDIR}; \
- rm -f libdes.so.3; \
- ln -sf lib${LIB}.so.${SHLIB_MAJOR} libdes.so.3;
-.endif
-.if !defined(NOPIC) && ${OBJFORMAT} == elf
- @cd ${DESTDIR}${SHLIBDIR}; \
- rm -f libdes.so; \
- ln -sf lib${LIB}.so libdes.so
-.endif
- @cd ${DESTDIR}${LIBDIR}; \
- rm -f libdes.a; \
- ln -sf lib${LIB}.a libdes.a
- @cd ${DESTDIR}${INCDIR}; \
- rm -f des.h; \
- ln -sf openssl/des.h
-.if !defined(NOPROFILE)
- @cd ${DESTDIR}${LIBDIR}; \
- rm -f libdes_p.a; \
- ln -sf lib${LIB}_p.a libdes_p.a
-.endif
OpenPOWER on IntegriCloud