git: d450feb02367 - main - deskutils/calibre: Fix build on 13.3

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Tue, 12 Nov 2024 20:52:37 UTC
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d450feb023678e6579cee6eaf37730a12adb08ae

commit d450feb023678e6579cee6eaf37730a12adb08ae
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2024-11-12 20:49:57 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2024-11-12 20:52:33 +0000

    deskutils/calibre: Fix build on 13.3
    
    Recent changes depend on an OpenSSL 3.x define. Just define it for older releases.
    
    Reported by:    pkg-fallout
    MFH:            2024Q4
---
 deskutils/calibre/files/patch-src_calibre_utils_certgen.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/deskutils/calibre/files/patch-src_calibre_utils_certgen.c b/deskutils/calibre/files/patch-src_calibre_utils_certgen.c
new file mode 100644
index 000000000000..1c47b5f7cf56
--- /dev/null
+++ b/deskutils/calibre/files/patch-src_calibre_utils_certgen.c
@@ -0,0 +1,13 @@
+--- src/calibre/utils/certgen.c.orig	2024-11-08 03:00:49 UTC
++++ src/calibre/utils/certgen.c
+@@ -22,6 +22,10 @@
+ #include <openssl/err.h>
+ #include <openssl/conf.h>
+ 
++#if __FreeBSD_version < 1400092
++#define X509_REQ_VERSION_1 1
++#endif
++
+ static PyObject*
+ set_error_with_detail(const char *where, const char* detail) {
+     char *suffix = NULL, buf[1024];