diff options
Diffstat (limited to 'src/lib/libssl/generate_pkgconfig.sh')
| -rw-r--r-- | src/lib/libssl/generate_pkgconfig.sh | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/src/lib/libssl/generate_pkgconfig.sh b/src/lib/libssl/generate_pkgconfig.sh index 6ae875cc0b..32332a4637 100644 --- a/src/lib/libssl/generate_pkgconfig.sh +++ b/src/lib/libssl/generate_pkgconfig.sh | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # | 2 | # |
| 3 | # $OpenBSD: generate_pkgconfig.sh,v 1.2 2011/01/03 09:32:01 jasper Exp $ | 3 | # $OpenBSD: generate_pkgconfig.sh,v 1.3 2011/01/21 09:24:46 jasper Exp $ |
| 4 | # | 4 | # |
| 5 | # Generate pkg-config files for OpenSSL. | 5 | # Generate pkg-config files for OpenSSL. |
| 6 | 6 | ||
| @@ -9,7 +9,6 @@ usage() { | |||
| 9 | exit 1 | 9 | exit 1 |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | enable_krb5=false | ||
| 13 | curdir= | 12 | curdir= |
| 14 | objdir= | 13 | objdir= |
| 15 | while getopts "c:ko:" flag; do | 14 | while getopts "c:ko:" flag; do |
| @@ -17,9 +16,6 @@ while getopts "c:ko:" flag; do | |||
| 17 | c) | 16 | c) |
| 18 | curdir=$OPTARG | 17 | curdir=$OPTARG |
| 19 | ;; | 18 | ;; |
| 20 | k) | ||
| 21 | enable_krb5=true | ||
| 22 | ;; | ||
| 23 | o) | 19 | o) |
| 24 | objdir=$OPTARG | 20 | objdir=$OPTARG |
| 25 | ;; | 21 | ;; |
| @@ -54,12 +50,9 @@ Name: OpenSSL-libcrypto | |||
| 54 | Description: OpenSSL cryptography library | 50 | Description: OpenSSL cryptography library |
| 55 | Version: ${ssl_version} | 51 | Version: ${ssl_version} |
| 56 | Requires: | 52 | Requires: |
| 53 | Libs: -lcrypto | ||
| 54 | Cflags: | ||
| 57 | __EOF__ | 55 | __EOF__ |
| 58 | echo -n 'Libs: -L${libdir} -lcrypto ' >> ${pc_file} | ||
| 59 | echo '-lz' >> ${pc_file} | ||
| 60 | echo -n 'Cflags: -I${includedir} ' >> ${pc_file} | ||
| 61 | ${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file} | ||
| 62 | echo '' >> ${pc_file} | ||
| 63 | 56 | ||
| 64 | 57 | ||
| 65 | pc_file="${objdir}/libssl.pc" | 58 | pc_file="${objdir}/libssl.pc" |
| @@ -73,12 +66,9 @@ Name: OpenSSL | |||
| 73 | Description: Secure Sockets Layer and cryptography libraries | 66 | Description: Secure Sockets Layer and cryptography libraries |
| 74 | Version: ${ssl_version} | 67 | Version: ${ssl_version} |
| 75 | Requires: | 68 | Requires: |
| 69 | Libs: -lssl -lcrypto | ||
| 70 | Cflags: | ||
| 76 | __EOF__ | 71 | __EOF__ |
| 77 | echo -n 'Libs: -L${libdir} -lssl -lcrypto ' >> ${pc_file} | ||
| 78 | echo '-lz' >> ${pc_file} | ||
| 79 | echo -n 'Cflags: -I${includedir} ' >> ${pc_file} | ||
| 80 | ${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file} | ||
| 81 | echo '' >> ${pc_file} | ||
| 82 | 72 | ||
| 83 | 73 | ||
| 84 | pc_file="${objdir}/openssl.pc" | 74 | pc_file="${objdir}/openssl.pc" |
| @@ -92,9 +82,6 @@ Name: OpenSSL | |||
| 92 | Description: Secure Sockets Layer and cryptography libraries and tools | 82 | Description: Secure Sockets Layer and cryptography libraries and tools |
| 93 | Version: ${ssl_version} | 83 | Version: ${ssl_version} |
| 94 | Requires: | 84 | Requires: |
| 85 | Libs: -lssl -lcrypto | ||
| 86 | Cflags: | ||
| 95 | __EOF__ | 87 | __EOF__ |
| 96 | echo -n 'Libs: -L${libdir} -lssl -lcrypto ' >> ${pc_file} | ||
| 97 | echo '-lz' >> ${pc_file} | ||
| 98 | echo -n 'Cflags: -I${includedir} ' >> ${pc_file} | ||
| 99 | ${enable_krb5} && echo -n '-I/usr/include/kerberosV' >> ${pc_file} | ||
| 100 | echo '' >> ${pc_file} | ||
