# $FreeBSD$ PORTNAME= hyperscan PORTVERSION= 4.7.0 PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= devel textproc MASTER_SITES= SF/boost/boost/1.65.1:boost DISTFILES= boost_1_65_1.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:outsource 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_65_1 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