ebfedea0ce
- crypto/external/bsd/heimdal - crypto/external/bsd/libsaslc - crypto/external/bsd/netpgp - crypto/external/bsd/openssl Change-Id: I91dbf05f33e637edf5b9bb408d5baddd7ba8cf75
48 lines
938 B
Bash
Executable file
48 lines
938 B
Bash
Executable file
#!/bin/sh
|
|
# $NetBSD: mkpc,v 1.3 2013/02/01 21:02:48 christos Exp $
|
|
|
|
getversion() {
|
|
(echo '#include "opensslv.h"'; echo OPENSSL_VERSION_TEXT) |
|
|
cpp -I$1 | grep OpenSSL | cut -d ' ' -f 2
|
|
}
|
|
VERSION="$(getversion $1)"
|
|
|
|
sed -e "s/@VERSION@/${VERSION}/g" < "$2"
|
|
|
|
case "$2" in
|
|
libcrypto.pc)
|
|
NAME="OpenSSL-libcrypto"
|
|
LIBS="-lcrypto"
|
|
DESCRIPTION="OpenSSL cryptography library"
|
|
;;
|
|
libssl.pc)
|
|
NAME="OpenSSL"
|
|
LIBS="-lssl -lcrypto"
|
|
DESCRIPTION="Secure Sockets Layer and cryptography libraries"
|
|
;;
|
|
openssl.pc)
|
|
NAME="OpenSSL"
|
|
LIBS="-lssl -lcrypto"
|
|
DESCRIPTION="Sockets Layer and cryptography libraries and tools"
|
|
;;
|
|
*)
|
|
echo "$0: I don't know about $2" 1>&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
cat << EOF > "$2"
|
|
# \$NetBSD: mkpc,v 1.3 2013/02/01 21:02:48 christos Exp $
|
|
prefix=/usr
|
|
exec_prefix=/usr
|
|
libdir=/usr/lib
|
|
includedir=/usr/include
|
|
|
|
Name: ${NAME}
|
|
Description: ${DESCRIPTION}
|
|
Version: ${VERSION}
|
|
Requires:
|
|
Libs: ${LIBS}
|
|
Libs.private:
|
|
Cflags:
|
|
EOF
|