summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorobache <obache>2013-10-06 12:54:10 +0000
committerobache <obache>2013-10-06 12:54:10 +0000
commita86238103c5268dc0aad78b809c1493264411f06 (patch)
tree51d5be778cfedb2358155d54ceb742602a9793da /security
parente7ec234aa6be56a143493213642073ee7712bc68 (diff)
downloadpkgsrc-a86238103c5268dc0aad78b809c1493264411f06.tar.gz
Change to create fake *.pc files much close to real one.
Fixes to detect its prefix with `pkg-config --variable=prefix", such as CMake.
Diffstat (limited to 'security')
-rw-r--r--security/openssl/builtin.mk47
1 files changed, 31 insertions, 16 deletions
diff --git a/security/openssl/builtin.mk b/security/openssl/builtin.mk
index 64ed6b2ff15..a3139e2b9dd 100644
--- a/security/openssl/builtin.mk
+++ b/security/openssl/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.34 2013/08/27 05:42:34 richard Exp $
+# $NetBSD: builtin.mk,v 1.35 2013/10/06 12:54:10 obache Exp $
BUILTIN_PKG:= openssl
@@ -278,11 +278,16 @@ openssl-fake-pc:
if ${TEST} -f $${src}; then \
${LN} -sf $${src} $${dst}; \
else \
- { ${ECHO} "Name: OpenSSL-libcrypto"; \
- ${ECHO} "Description: OpenSSL cryptography library"; \
- ${ECHO} "Version: ${BUILTIN_VERSION.openssl}"; \
- ${ECHO} "Libs: -L${BUILDLINK_PREFIX.openssl}/lib${LIBABISUFFIX} -lcrypto"; \
- ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.openssl}/include"; \
+ { ${ECHO} 'prefix=${BUILDLINK_PREFIX.openssl}'; \
+ ${ECHO} 'exec_prefix=$${prefix}'; \
+ ${ECHO} 'libdir=$${exec_prefix}/lib${LIBABISUFFIX}'; \
+ ${ECHO} 'includedir=$${prefix}/include'; \
+ ${ECHO}; \
+ ${ECHO} 'Name: OpenSSL-libcrypto'; \
+ ${ECHO} 'Description: OpenSSL cryptography library'; \
+ ${ECHO} 'Version: ${BUILTIN_VERSION.openssl}'; \
+ ${ECHO} 'Libs: -L$${libdir} -lcrypto'; \
+ ${ECHO} 'Cflags: -I$${includedir}'; \
} >$${dst}; \
fi
${RUN} \
@@ -292,11 +297,16 @@ openssl-fake-pc:
if ${TEST} -f $${src}; then \
${LN} -sf $${src} $${dst}; \
else \
- { ${ECHO} "Name: OpenSSL"; \
- ${ECHO} "Description: Secure Sockets Layer and cryptography libraries"; \
- ${ECHO} "Version: ${BUILTIN_VERSION.openssl}"; \
- ${ECHO} "Libs: -L${BUILDLINK_PREFIX.openssl}/lib${LIBABISUFFIX} -lssl -lcrypto"; \
- ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.openssl}/include"; \
+ { ${ECHO} 'prefix=${BUILDLINK_PREFIX.openssl}'; \
+ ${ECHO} 'exec_prefix=$${prefix}'; \
+ ${ECHO} 'libdir=$${exec_prefix}/lib${LIBABISUFFIX}'; \
+ ${ECHO} 'includedir=$${prefix}/include'; \
+ ${ECHO}; \
+ ${ECHO} 'Name: OpenSSL'; \
+ ${ECHO} 'Description: Secure Sockets Layer and cryptography libraries'; \
+ ${ECHO} 'Version: ${BUILTIN_VERSION.openssl}'; \
+ ${ECHO} 'Libs: -L$${libdir} -lssl -lcrypto'; \
+ ${ECHO} 'Cflags: -I$${includedir}'; \
} >$${dst}; \
fi
${RUN} \
@@ -306,11 +316,16 @@ openssl-fake-pc:
if ${TEST} -f $${src}; then \
${LN} -sf $${src} $${dst}; \
else \
- { ${ECHO} "Name: OpenSSL"; \
- ${ECHO} "Description: Secure Sockets Layer and cryptography libraries and tools"; \
- ${ECHO} "Version: ${BUILTIN_VERSION.openssl}"; \
- ${ECHO} "Libs: -L${BUILDLINK_PREFIX.openssl}/lib${LIBABISUFFIX} -lssl -lcrypto"; \
- ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.openssl}/include"; \
+ { ${ECHO} 'prefix=${BUILDLINK_PREFIX.openssl}'; \
+ ${ECHO} 'exec_prefix=$${prefix}'; \
+ ${ECHO} 'libdir=$${exec_prefix}/lib${LIBABISUFFIX}'; \
+ ${ECHO} 'includedir=$${prefix}/include'; \
+ ${ECHO}; \
+ ${ECHO} 'Name: OpenSSL'; \
+ ${ECHO} 'Description: Secure Sockets Layer and cryptography libraries and tools'; \
+ ${ECHO} 'Version: ${BUILTIN_VERSION.openssl}'; \
+ ${ECHO} 'Libs: -L$${libdir} -lssl -lcrypto'; \
+ ${ECHO} 'Cflags: -I$${includedir}'; \
} >$${dst}; \
fi
. endif