36 lines
901 B
Makefile
36 lines
901 B
Makefile
COMMENT= C-based regular expression scanner generator
|
|
|
|
V= 3.1
|
|
DISTNAME= re2c-$V
|
|
EXTRACT_SUFX= .tar.xz
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= https://re2c.org/
|
|
|
|
# public domain
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c m ${COMPILER_LIBCXX}
|
|
|
|
# C++11
|
|
COMPILER= base-clang ports-gcc
|
|
|
|
SITES= https://github.com/skvadrik/re2c/releases/download/$V/
|
|
|
|
TEST_DEPENDS= shells/bash
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC} ${WRKSRC}/build-aux
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
# re2c will use bison if present at build time, but will otherwise fallback
|
|
# to pregenerated files. because re2c is a depdendency of ninja, which is on
|
|
# the path to building much of the tree, forcibly disable this rather than
|
|
# listing the dependency.
|
|
CONFIGURE_ENV= ac_cv_path_BISON=no
|
|
|
|
# don't force the dep for Python; seems only used to run docutils, not for
|
|
# a normal build from the tarball
|
|
CONFIGURE_ENV+= am_cv_pathless_PYTHON=python3
|
|
|
|
.include <bsd.port.mk>
|