diff options
| author | jasper <> | 2010-12-28 14:30:50 +0000 |
|---|---|---|
| committer | jasper <> | 2010-12-28 14:30:50 +0000 |
| commit | 0ea551d84cefb476f864a1a524c19ff0ef57e15a (patch) | |
| tree | ac55d329957c192fe02230bfadf3015095ca40fa /src/lib/libssl/Makefile | |
| parent | c5b4a3ff6bcf1a9bbdad0dbd296b2a6ff9522165 (diff) | |
| download | openbsd-0ea551d84cefb476f864a1a524c19ff0ef57e15a.tar.gz openbsd-0ea551d84cefb476f864a1a524c19ff0ef57e15a.tar.bz2 openbsd-0ea551d84cefb476f864a1a524c19ff0ef57e15a.zip | |
- generate and install pkg-config files for openssl, which more and more
projects depend on being present (e.g. various ports).
as discussed with various porters in a hungarian spa
help/feedback from ingo@ and also OK halex@
no objections from djm@
Diffstat (limited to 'src/lib/libssl/Makefile')
| -rw-r--r-- | src/lib/libssl/Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index f356472977..510bb0547f 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile | |||
| @@ -1,6 +1,11 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.14 2005/04/01 05:31:40 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.15 2010/12/28 14:30:50 jasper Exp $ |
| 2 | |||
| 3 | .include <bsd.own.mk> # for KERBEROS5 | ||
| 2 | 4 | ||
| 3 | SUBDIR=crypto ssl man | 5 | SUBDIR=crypto ssl man |
| 6 | PC_FILES=openssl.pc libssl.pc libcrypto.pc | ||
| 7 | |||
| 8 | CLEANFILES=${PC_FILES} | ||
| 4 | 9 | ||
| 5 | distribution: | 10 | distribution: |
| 6 | ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ | 11 | ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ |
| @@ -10,4 +15,17 @@ distribution: | |||
| 10 | ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ | 15 | ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \ |
| 11 | ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf | 16 | ${.CURDIR}/x509v3.cnf ${DESTDIR}/etc/ssl/x509v3.cnf |
| 12 | 17 | ||
| 18 | beforeinstall: | ||
| 19 | .if (${KERBEROS5:L} == "yes") | ||
| 20 | /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} -k | ||
| 21 | .else | ||
| 22 | /bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR} | ||
| 23 | .endif | ||
| 24 | |||
| 25 | .for p in ${PC_FILES} | ||
| 26 | ${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \ | ||
| 27 | -m ${SHAREMODE} ${.OBJDIR}/$p ${DESTDIR}/usr/lib/pkgconfig/ | ||
| 28 | .endfor | ||
| 29 | |||
| 30 | .include <bsd.prog.mk> | ||
| 13 | .include <bsd.subdir.mk> | 31 | .include <bsd.subdir.mk> |
