Skip to content

Commit

Permalink
www/edbrowse: fix -lopenssl for 12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsosiciliano committed Nov 23, 2023
1 parent 216607f commit 2ce5d60
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/edbrowse/Makefile
Expand Up @@ -31,6 +31,13 @@ PORTDOCS= *

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

# Skip openssl.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/openssl.pc)
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
.endif

do-install:
${INSTALL_MAN} ${WRKSRC}/doc/man-edbrowse-freebsd.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
${INSTALL_PROGRAM} ${WRKSRC}/src/edbrowse ${STAGEDIR}${PREFIX}/bin
Expand Down
11 changes: 11 additions & 0 deletions www/edbrowse/files/extra-patch-openssl
@@ -0,0 +1,11 @@
--- src/makefile.orig 2023-11-17 18:00:41.589174000 +0100
+++ src/makefile 2023-11-17 18:01:13.273125000 +0100
@@ -9,7 +9,7 @@
CFLAGS += $(PLATFORM_CFLAGS)

# determine includes and linker flags
-DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline openssl
+DEPENDENCIES = libcurl:curl odbc libpcre2-8:pcre2-8 readline
INCLUDES = $(shell ./make-helper.sh pkg-config-includes $(DEPENDENCIES))
LINKER_LIBS = $(shell ./make-helper.sh pkg-config-libs $(DEPENDENCIES))
CFLAGS += $(INCLUDES)

0 comments on commit 2ce5d60

Please sign in to comment.