ports/devel/cvs/files/patch-cvs__Makefile
Xin LI 73420d98b2 devel/cvs: remove libgnuregex dependency.
The only usage of regular expression in cvs was in import.c, and for
that particular usage, no GNU extension was used; with the removal of
libgnuregex, we could just drop the dependency and use the base system
regex(3) instead.

This fixes build on -CURRENT.

PR:		252248
Approved by:	maintainer
MFH:		2021Q1
2021-01-03 19:21:21 +00:00

16 lines
719 B
Text

--- ../cvs-build/cvs/Makefile.orig 2012-09-05 19:25:43.000000000 -0700
+++ ../cvs-build/cvs/Makefile 2021-01-02 17:11:22.159883000 -0800
@@ -29,10 +29,10 @@
-I/usr/include/gnu \
-I${CVSDIR}/lib -I${CVSDIR}/diff -I.
-DPADD= ${LIBCVS} ${LIBDIFF} ${LIBGNUREGEX} ${LIBMD} ${LIBCRYPT} ${LIBZ}
-LDADD= ${LIBCVS} ${LIBDIFF} -lgnuregex -lmd -lcrypt -lz
+DPADD= ${LIBCVS} ${LIBDIFF} ${LIBMD} ${LIBCRYPT} ${LIBZ}
+LDADD= ${LIBCVS} ${LIBDIFF} -lmd -lcrypt -lz
-.if ${MK_KERBEROS_SUPPORT} != "no"
+.if defined(KERBEROS_SUPPORT)
CFLAGS+= -DHAVE_GSSAPI -DENCRYPTION
LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcrypto -lroken -lcrypt -lcom_err
DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCRYPTO} ${LIBROKEN}