diff --git a/www/edbrowse/Makefile b/www/edbrowse/Makefile index c8274684bdb0..c65a59d355f8 100644 --- a/www/edbrowse/Makefile +++ b/www/edbrowse/Makefile @@ -1,46 +1,53 @@ PORTNAME= edbrowse DISTVERSIONPREFIX= v DISTVERSION= 3.8.7 PORTREVISION= 1 CATEGORIES= www editors MAINTAINER= alfix86@gmail.com COMMENT= Line-oriented web browser and text editor WWW= https://edbrowse.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl \ libquickjs.so:lang/quickjs \ libodbc.so:databases/unixODBC \ libpcre2-8.so:devel/pcre2 USES= compiler:c11 gmake perl5 pkgconfig readline ssl USE_PERL5= build USE_GITHUB= yes MAKEFILE= makefile GH_ACCOUNT= CMB PLIST_FILES= bin/${PORTNAME} \ man/man1/${PORTNAME}.1.gz PORTDOCS= * OPTIONS_DEFINE= DOCS +.include + +# 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 post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/doc && \ ${FIND} . \( -name article.wikipedia -or -name "man-edbrowse*" \) -delete && \ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .include diff --git a/www/edbrowse/files/extra-patch-openssl b/www/edbrowse/files/extra-patch-openssl new file mode 100644 index 000000000000..97786da57ebf --- /dev/null +++ b/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)