1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/devel/libb2/Makefile
Daniel Engberg 4288040541 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)
2022-03-19 07:28:28 +01:00

37 lines
839 B
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
PORTNAME= libb2
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= meson
USE_GITHUB= yes
USE_LDCONFIG= yes
GH_ACCOUNT= BLAKE2
PLIST_FILES= include/blake2.h \
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>