Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / openssl / mkpc
blob0210b1d3a7535f46b058c145f6c2f2a9cbb6c838
1 #!/bin/sh
2 # $NetBSD: mkpc,v 1.4 2014/07/07 09:14:43 joerg Exp $
4 getversion() {
5 (echo '#include "opensslv.h"'; echo OPENSSL_VERSION_TEXT) |
6 $CPP $CPPFLAGS -I$1 | grep OpenSSL | cut -d ' ' -f 2
8 VERSION="$(getversion $1)"
10 sed -e "s/@VERSION@/${VERSION}/g" < "$2"
12 case "$2" in
13 libcrypto.pc)
14 NAME="OpenSSL-libcrypto"
15 LIBS="-lcrypto"
16 DESCRIPTION="OpenSSL cryptography library"
18 libssl.pc)
19 NAME="OpenSSL"
20 LIBS="-lssl -lcrypto"
21 DESCRIPTION="Secure Sockets Layer and cryptography libraries"
23 openssl.pc)
24 NAME="OpenSSL"
25 LIBS="-lssl -lcrypto"
26 DESCRIPTION="Sockets Layer and cryptography libraries and tools"
29 echo "$0: I don't know about $2" 1>&2
30 exit 1
32 esac
34 cat << EOF > "$2"
35 # \$NetBSD: mkpc,v 1.4 2014/07/07 09:14:43 joerg Exp $
36 prefix=/usr
37 exec_prefix=/usr
38 libdir=/usr/lib
39 includedir=/usr/include
41 Name: ${NAME}
42 Description: ${DESCRIPTION}
43 Version: ${VERSION}
44 Requires:
45 Libs: ${LIBS}
46 Libs.private:
47 Cflags:
48 EOF