mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 12:26:27 -04:00
databases/libmemcached: Skip libcrypto.pc when using SSL from base system
- Bump PORTREVISION for package change
This commit is contained in:
parent
548d857216
commit
c25f0c013e
2 changed files with 20 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= libmemcached
|
||||
PORTVERSION= 1.1.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
|
@ -44,4 +45,11 @@ MURMUR_CMAKE_BOOL= ENABLE_HASH_MURMUR
|
|||
SASL_CMAKE_BOOL= ENABLE_SASL
|
||||
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# Skip libcrypto.pc while using OpenSSL from base system on older FreeBSD versions which does not skip this file
|
||||
.if ${SSL_DEFAULT} == base && !exists(/usr/libdata/pkgconfig/libcrypto.pc)
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
11
databases/libmemcached/files/extra-patch-openssl
Normal file
11
databases/libmemcached/files/extra-patch-openssl
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/libhashkit/CMakeLists.txt.orig 2023-03-06 08:47:30 UTC
|
||||
+++ src/libhashkit/CMakeLists.txt
|
||||
@@ -45,7 +45,7 @@ if(ENABLE_OPENSSL_CRYPTO)
|
||||
if(OPENSSL_CRYPTO_LIBRARY)
|
||||
target_compile_definitions(libhashkit PRIVATE HAVE_OPENSSL_CRYPTO)
|
||||
target_link_libraries(libhashkit PUBLIC OpenSSL::Crypto)
|
||||
- pkgconfig_export(REQUIRES_PRIVATE libcrypto)
|
||||
+ pkgconfig_export(REQUIRES_PRIVATE "")
|
||||
else()
|
||||
message(WARNING "Could not find OpenSSL::Crypto")
|
||||
endif()
|
Loading…
Add table
Reference in a new issue