Files
2026-03-06 10:22:49 +00:00

39 lines
773 B
Makefile

COMMENT = ultra fast universal grep
CATEGORIES = textproc sysutils
GH_ACCOUNT = Genivia
GH_PROJECT = ugrep
GH_TAGNAME = v7.6.0
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} brotlidec brotlienc bz2 c lz4 lzma
WANTLIB += m pcre2-8 z zstd
# C++11
COMPILER = base-clang ports-gcc
LIB_DEPENDS = archivers/brotli \
archivers/lz4 \
archivers/xz \
archivers/zstd \
devel/pcre2
TEST_DEPENDS = shells/bash
CONFIGURE_STYLE = autoreconf
AUTOCONF_VERSION = 2.72
AUTOMAKE_VERSION = 1.16
CONFIGURE_ARGS = --disable-avx2 \
--without-boost-regex
# All amd64 machines support SSE2, but the same is not true of i386
.if ${MACHINE_ARCH:Mi386}
CONFIGURE_ARGS += --disable-sse2
.endif
# All supported armv7/aarch64 have NEON
USE_GMAKE = Yes
.include <bsd.port.mk>