# $FreeBSD: head/devel/hyperscan/Makefile 534901 2020-05-11 10:53:18Z gahr $ PORTNAME= hyperscan PORTVERSION= 5.2.1 DISTVERSIONPREFIX= v CATEGORIES= devel textproc MASTER_SITES= SF/boost/boost/1.73.0:boost DISTFILES= boost_1_73_0.tar.gz:boost MAINTAINER= vsevolod@FreeBSD.org COMMENT= High-performance multiple regex matching library LICENSE= BSD3CLAUSE BUILD_DEPENDS= ragel:devel/ragel USE_GITHUB= yes GH_ACCOUNT= intel USES= compiler:c++11-lib cmake pathfix python:build ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= SSSE3 is required for work OPTIONS_DEFINE= SHARED NATIVE SHARED_DESC= Build shared library NATIVE_DESC= Build with native CPU tunes OPTIONS_DEFAULT= SHARED CMAKE_ARGS+= -DBOOST_ROOT=${WRKDIR}/boost_1_73_0 NATIVE_CXXFLAGS= -march=native -mtune=native NATIVE_CFLAGS= -march=native -mtune=native NATIVE_CXXFLAGS_OFF= -march=core2 NATIVE_CFLAGS_OFF= -march=core2 CFLAGS+= -fPIC .include .if ${PORT_OPTIONS:MSHARED} CMAKE_ARGS+= -DBUILD_STATIC_AND_SHARED=ON PLIST_SUB+= SHARED="" \ SOVERSION=${PORTVERSION} \ SOSHORTVERSION=${PORTVERSION:C/\.[0-9].[0-9]$//} .else PLIST_SUB+= SHARED="@comment " .endif # don't build hsbench tool post-patch: ${RM} ${WRKSRC}/tools/CMakeLists.txt do-test: cd ${BUILD_WRKSRC} && ${MAKE_CMD} unit .include