freebsd-ports/devel/libac/Makefile
Po-Chuan Hsieh b16f478127
devel/libac: Add libac g20190308
This port is the C++ implementation of the Aho-Corasick (AC) string matching
algorithm.

The upstream began with pure Lua implementation and realize the performance is
not satisfactory. So they switch to C/C++ implementation.

There are two shared objects provided by this package: libac.so and
ahocorasick.so The former is a regular shared object which can be directly used
by C/C++ application, or by Lua via FFI; and the later is a Lua module.

WWW: https://github.com/cloudflare/lua-aho-corasick
2022-03-08 02:10:49 +08:00

27 lines
594 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= libac
PORTVERSION= g20190308
CATEGORIES= devel
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C++ implementation of the Aho-Corasick (AC) string matching algorithm
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake
PLIST_FILES= lib/libac.a \
lib/libac.so
USE_GITHUB= yes
GH_ACCOUNT= cloudflare
GH_PROJECT= lua-aho-corasick
GH_TAGNAME= ca6043c
do-install:
${INSTALL_DATA} ${WRKSRC}/libac.a ${STAGEDIR}${PREFIX}/lib/libac.a
${INSTALL_LIB} ${WRKSRC}/libac.so ${STAGEDIR}${PREFIX}/lib/libac.so
.include <bsd.port.mk>