blob: d09bcdd1d9c445fc09c406f50a298ae7b16e2615 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= hyperscan
PORTVERSION= 5.4.0
DISTVERSIONPREFIX= v
CATEGORIES= devel textproc
MASTER_SITES= SF/boost/boost/${BOOST_VERSION}:boost
DISTFILES= boost_${BOOST_VERSION_UNDER}.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_${BOOST_VERSION_UNDER}
NATIVE_CXXFLAGS= -march=native -mtune=native
NATIVE_CFLAGS= -march=native -mtune=native
NATIVE_CXXFLAGS_OFF= -march=core2
NATIVE_CFLAGS_OFF= -march=core2
CFLAGS+= -fPIC
BOOST_VERSION= 1.75.0
BOOST_VERSION_UNDER= ${BOOST_VERSION:C/\./_/g}
.include <bsd.port.options.mk>
.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 <bsd.port.mk>
|