summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-28 20:07:48 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-12-28 20:07:48 +0000
commit5a182de58223c011d540acda49f0dedcd65e5b51 (patch)
tree160e64da12b53867e7678e52b5c867b949f22d9a /lib/libssl
parent5db298a3e24f699cadd0b19c7d691056eea3a056 (diff)
- ensure ${DESTDIR}/usr/lib/pkgconfig/ as running make distrib-dirs is not
common/encouraged practice
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/Makefile b/lib/libssl/Makefile
index 510bb0547f3..26acb4751ad 100644
--- a/lib/libssl/Makefile
+++ b/lib/libssl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2010/12/28 14:30:50 jasper Exp $
+# $OpenBSD: Makefile,v 1.16 2010/12/28 20:07:47 jasper Exp $
.include <bsd.own.mk> # for KERBEROS5
@@ -21,7 +21,8 @@ beforeinstall:
.else
/bin/sh ${.CURDIR}/generate_pkgconfig.sh -c ${.CURDIR} -o ${.OBJDIR}
.endif
-
+ [ -d ${DESTDIR}/usr/lib/pkgconfig/ ] || \
+ ${INSTALL} -o root -g ${SHAREGRP} -d ${DESTDIR}/usr/lib/pkgconfig/
.for p in ${PC_FILES}
${INSTALL} ${INSTALL_COPY} -o root -g ${SHAREGRP} \
-m ${SHAREMODE} ${.OBJDIR}/$p ${DESTDIR}/usr/lib/pkgconfig/