git: 4288040541a8 - main - devel/libb2: Switch to meson, disable native optimization on x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 19 Mar 2022 06:29:45 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4288040541a81ec11761716ff28e98f48f7e469c
commit 4288040541a81ec11761716ff28e98f48f7e469c
Author: Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-03-19 06:27:19 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-03-19 06:28:28 +0000
devel/libb2: Switch to meson, disable native optimization on x86
- Switch to meson from GNU Autotools
- Disable use of "native" optimization for amd64
- Enable "fat" library for amd64
- Enable OpenMP support on aarch64 and amd64
- Disable static library
PR: 262383
Reviewed by: mm (maintainer)
---
devel/libb2/Makefile | 16 ++++++++++++----
devel/libb2/distinfo | 6 +++++-
2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/devel/libb2/Makefile b/devel/libb2/Makefile
index 1cffbf39e843..d0fa3449a771 100644
--- a/devel/libb2/Makefile
+++ b/devel/libb2/Makefile
@@ -1,28 +1,36 @@
# Created by: Martin Matuska <mm@FreeBSD.org>
PORTNAME= libb2
-PORTVERSION= 0.98.1
DISTVERSIONPREFIX= v
+DISTVERSION= 0.98.1
+PORTREVISION= 1
CATEGORIES= devel
+PATCH_SITES= https://github.com/eli-schwartz/libb2/commit/
+PATCHFILES= 9fbedd0db42305c904fc28deb9c69c7fc8f3d870.patch:-p1 \
+ 2c6ffd80d5e785dfba356ad47198ced0577e3483.patch:-p1
+
MAINTAINER= mm@FreeBSD.org
COMMENT= C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= autoreconf libtool pkgconfig
+USES= meson
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= BLAKE2
-GNU_CONFIGURE= yes
PLIST_FILES= include/blake2.h \
- lib/libb2.a \
lib/libb2.so \
lib/libb2.so.1 \
lib/libb2.so.1.0.4 \
libdata/pkgconfig/libb2.pc
+MESON_ARGS_amd64= -Dfat=true -Dopenmp=enabled
+MESON_ARGS_aarch64= -Dopenmp=enabled
+MESON_ARGS= -Dnative=false -Dopenmp=disabled
+MESON_ARGS+= ${MESON_ARGS_${ARCH}}
+
.include <bsd.port.mk>
diff --git a/devel/libb2/distinfo b/devel/libb2/distinfo
index fcd50a0eda79..895dcd403bc4 100644
--- a/devel/libb2/distinfo
+++ b/devel/libb2/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1560063000
+TIMESTAMP = 1646452762
SHA256 (BLAKE2-libb2-v0.98.1_GH0.tar.gz) = 10053dbc2fa342516b780a6bbf6e7b2a2360b8d49c5ac426936bf3df82526732
SIZE (BLAKE2-libb2-v0.98.1_GH0.tar.gz) = 280759
+SHA256 (9fbedd0db42305c904fc28deb9c69c7fc8f3d870.patch) = b24e4b0ff133b35fdfcf49833b1308e2555793b9a0342816bcf732dec47a9922
+SIZE (9fbedd0db42305c904fc28deb9c69c7fc8f3d870.patch) = 4801
+SHA256 (2c6ffd80d5e785dfba356ad47198ced0577e3483.patch) = c6a2e983edb3567d5191a8c2c64ab2d3c6a3264922c7368a7bf82899c4cab6b9
+SIZE (2c6ffd80d5e785dfba356ad47198ced0577e3483.patch) = 3126