Files
ports/devel/libgnuregex/Makefile
T
Kyle Evans 31f7950dbe [NEW PORT] devel/libgnuregex: GNU regex(3) extension library
This version of libgnuregex is based on the latest version of devel/gnulib
in the tree, and is intended as a direct replacement for the libgnuregex
that has been historically provided in base.

A port was chosen over all consumers dragging in devel/gnulib to save
rebuilds since more than ~5 consumers need libgnuregex, and this also makes
for an easier migration as ports just need to bring in the port and make
sure LOCALBASE/lib and LOCALBASE/inclue are included.

It is currently expected that ports dependant on this will fully specify the
shlib version against ports tree convention so that we can provide a
consistent experience across all versions of FreeBSD, past and future, using
a less-broken version of the library.

PR:		252245
2020-12-29 05:41:12 +00:00

38 lines
747 B
Makefile

# $FreeBSD$
PORTNAME= libgnuregex
PORTVERSION= 6.0
CATEGORIES= devel
MASTER_SITES= # Nothing to fetch
DISTFILES= # Nothing to fetch
MAINTAINER= kevans@FreeBSD.org
COMMENT= GNU Regex Library
LICENSE= LGPL20+
EXTRACT_DEPENDS= gnulib>0:devel/gnulib
USES= uidfix
USE_LDCONFIG= yes
MAKE_ENV+= INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib"
REGEX_FILES= lib/regex.c \
lib/regex.h \
lib/regex_internal.c \
lib/regex_internal.h \
lib/regexec.c \
lib/regcomp.c
do-extract:
${MKDIR} ${WRKSRC}
${CP} -a ${REGEX_FILES:C,^,${LOCALBASE}/share/gnulib/,} ${WRKSRC}
${CP} -a ${FILESDIR}/config.h ${FILESDIR}/gnuregex.h \
${FILESDIR}/Makefile ${WRKSRC}
pre-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/gnu
.include <bsd.port.mk>