diff --git a/security/blst/Makefile b/security/blst/Makefile index 4c623457564e..71b1b7156931 100644 --- a/security/blst/Makefile +++ b/security/blst/Makefile @@ -1,32 +1,33 @@ PORTNAME= blst DISTVERSIONPREFIX= v DISTVERSION= 0.3.14 +PORTREVISION= 1 CATEGORIES= security devel MAINTAINER= arrowd@FreeBSD.org COMMENT= Implementation of BLS12-381 signature algorithm WWW= https://github.com/supranational/blst LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= supranational USE_LDCONFIG= yes SUB_FILES= libblst.pc do-build: cd ${WRKSRC} && ./build.sh -shared do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/include/libblst ${INSTALL_DATA} ${WRKSRC}/bindings/blst_aux.h \ ${WRKSRC}/bindings/blst.h \ ${WRKSRC}/bindings/blst.hpp \ ${STAGEDIR}${PREFIX}/include/libblst ${INSTALL_DATA} ${WRKDIR}/libblst.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig ${INSTALL_LIB} ${WRKSRC}/libblst.so ${STAGEDIR}${PREFIX}/lib .include diff --git a/security/blst/files/patch-build.sh b/security/blst/files/patch-build.sh new file mode 100644 index 000000000000..d9d64aa1ea33 --- /dev/null +++ b/security/blst/files/patch-build.sh @@ -0,0 +1,9 @@ +--- build.sh.orig 2025-03-20 16:46:21 UTC ++++ build.sh +@@ -124,5 +124,6 @@ if [ $shared ]; then + esac + (set -x; ${CC} -shared -o $sharedlib \ + -Wl,--whole-archive,libblst.a,--no-whole-archive ${CFLAGS} \ ++ -Wl,--soname=${sharedlib} \ + -Wl,-Bsymbolic) + fi