diff --git a/www/lagrange/Makefile b/www/lagrange/Makefile index 02f0f46ca5b0..21e23681ebaf 100644 --- a/www/lagrange/Makefile +++ b/www/lagrange/Makefile @@ -1,30 +1,36 @@ PORTNAME= lagrange DISTVERSION= 1.2.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= https://git.skyjake.fi/skyjake/${PORTNAME}/releases/download/v${DISTVERSION}/ MAINTAINER= lcook@FreeBSD.org COMMENT= Beautiful Gemini Client LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md BROKEN_SSL= libressl BROKEN_SSL_REASON_libressl= needs features only available in OpenSSL LIB_DEPENDS= libmpg123.so:audio/mpg123 \ libpcre.so:devel/pcre \ libunistring.so:devel/libunistring USES= cmake compiler:c11 desktop-file-utils pkgconfig sdl ssl USE_SDL= sdl2 +OPTIONS_DEFINE= SSE41 + +SSE41_DESC= Enable SSE4.1 support +SSE41_CMAKE_ON= -DTFDN_ENABLE_SSE41:BOOL=ON + OPENSSL_LDFLAGS= -lssl -lcrypto .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085 && ${SSL_DEFAULT} == base BROKEN= requires at least OpenSSL version 1.1.1 to build .endif .include diff --git a/www/lagrange/files/patch-lib_the__Foundation_CheckSSE.cmake b/www/lagrange/files/patch-lib_the__Foundation_CheckSSE.cmake new file mode 100644 index 000000000000..20c25373b943 --- /dev/null +++ b/www/lagrange/files/patch-lib_the__Foundation_CheckSSE.cmake @@ -0,0 +1,32 @@ +Disable SSE4.1 by default and make it opt-in only. + +Older class AMD64 and i386 CPUs do not support the +feature-set, this becomes a problem when a build +hosts support it, whilst package consumers do not, +causing an instant crash upon startup. + +--- lib/the_Foundation/CheckSSE.cmake.orig 2021-04-22 10:39:48 UTC ++++ lib/the_Foundation/CheckSSE.cmake +@@ -1,22 +1 @@ + set (SSE41_FOUND NO) +-try_run ( +- sseRunCode +- sseCompiled +- ${CMAKE_CURRENT_BINARY_DIR} +- ${CMAKE_CURRENT_LIST_DIR}/ssecheck.c +- RUN_OUTPUT_VARIABLE sseOutput +-) +-string (STRIP "${sseOutput}" sseOutput) +-# message (STATUS "sseCompiled: ${sseCompiled}") +-# message (STATUS "sseRunCode: ${sseRunCode}") +-# message (STATUS "sseOutput: ${sseOutput}") +- +-if (sseCompiled AND sseOutput STREQUAL "1") +- set (SSE41_FOUND YES) +-endif () +- +-if (SSE41_FOUND) +- message (STATUS "CPU supports SSE 4.1") +-else () +- message (STATUS "CPU does not support SSE 4.1") +-endif ()