Lines 1-7
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= hyperscan |
3 |
PORTNAME= hyperscan |
4 |
PORTVERSION= 4.4.0 |
4 |
PORTVERSION= 4.4.1 |
5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
6 |
CATEGORIES= devel textproc |
6 |
CATEGORIES= devel textproc |
7 |
MASTER_SITES= SF/boost/boost/1.61.0:boost |
7 |
MASTER_SITES= SF/boost/boost/1.61.0:boost |
Lines 16-22
BUILD_DEPENDS= ragel:devel/ragel
Link Here
|
16 |
|
16 |
|
17 |
USE_GITHUB= yes |
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= 01org |
18 |
GH_ACCOUNT= 01org |
19 |
USES= compiler:c++11-lib cmake:outsource pathfix python:build pkgconfig sqlite:3 |
19 |
USES= compiler:c++11-lib cmake:outsource pathfix python:build |
20 |
ONLY_FOR_ARCHS= amd64 |
20 |
ONLY_FOR_ARCHS= amd64 |
21 |
ONLY_FOR_ARCHS_REASON= SSSE3 is required for work |
21 |
ONLY_FOR_ARCHS_REASON= SSSE3 is required for work |
22 |
|
22 |
|
Lines 25-47
SHARED_DESC= Build shared library
Link Here
|
25 |
NATIVE_DESC= Build with native CPU tunes |
25 |
NATIVE_DESC= Build with native CPU tunes |
26 |
OPTIONS_DEFAULT= SHARED |
26 |
OPTIONS_DEFAULT= SHARED |
27 |
|
27 |
|
28 |
.ifndef DEBUG_FLAGS |
|
|
29 |
CMAKE_BUILD_TYPE= Release |
30 |
.else |
31 |
CMAKE_BUILD_TYPE= Debug |
32 |
.endif |
33 |
|
34 |
CMAKE_ARGS+= -DBOOST_ROOT=${WRKDIR}/boost_1_61_0 |
28 |
CMAKE_ARGS+= -DBOOST_ROOT=${WRKDIR}/boost_1_61_0 |
35 |
|
29 |
|
36 |
.include <bsd.port.options.mk> |
30 |
NATIVE_CXXFLAGS= -march=native -mtune=native |
|
|
31 |
NATIVE_CFLAGS= -march=native -mtune=native |
37 |
|
32 |
|
38 |
.if ${PORT_OPTIONS:MNATIVE} |
33 |
NATIVE_CXXFLAGS_OFF= -march=core2 |
39 |
CXXFLAGS+= -march=native -mtune=native |
34 |
NATIVE_CFLAGS_OFF= -march=core2 |
40 |
CFLAGS+= -march=native -mtune=native |
35 |
|
41 |
.else |
36 |
.include <bsd.port.options.mk> |
42 |
CXXFLAGS+= -march=core2 |
|
|
43 |
CFLAGS+= -march=core2 |
44 |
.endif |
45 |
|
37 |
|
46 |
.if ${PORT_OPTIONS:MSHARED} |
38 |
.if ${PORT_OPTIONS:MSHARED} |
47 |
CMAKE_ARGS+= -DBUILD_STATIC_AND_SHARED=ON |
39 |
CMAKE_ARGS+= -DBUILD_STATIC_AND_SHARED=ON |
Lines 52-55
PLIST_SUB+= SHARED="" \
Link Here
|
52 |
PLIST_SUB+= SHARED="@comment " |
44 |
PLIST_SUB+= SHARED="@comment " |
53 |
.endif |
45 |
.endif |
54 |
|
46 |
|
|
|
47 |
# don't build hsbench tool |
48 |
post-patch: |
49 |
${RM} ${WRKSRC}/tools/CMakeLists.txt |
50 |
|
51 |
do-test: |
52 |
cd ${BUILD_WRKSRC} && ${MAKE_CMD} unit |
53 |
|
55 |
.include <bsd.port.mk> |
54 |
.include <bsd.port.mk> |