1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Enable compilation on FreeBSD 5.2-BETA by avoiding "log" namespace

conflict.

PR:		59975
Submitted by:   Volker Stolz of the Lehrstuhl fur Informatik II at
		RWTH Aachen
This commit is contained in:
Trevor Johnson 2003-12-09 18:42:22 +00:00
parent b6cbd157d4
commit 51d92e7bab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95486

View File

@ -25,8 +25,12 @@ pre-everything::
.endif
post-patch:
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
${SED} -E "s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g;s:-lpthread:${PTHREAD_LIBS}:g" < ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
.for ii in Makefile milter-regex.c rules.c
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
${SED} -e "s:-lpthread:${PTHREAD_LIBS}:g; \
s:-I/usr/src/gnu/usr.sbin/sendmail/include:${PTHREAD_CFLAGS}:g; \
s/[[:<:]]log(/milterlog(/g" < ${WRKSRC}/${ii}.orig > ${WRKSRC}/${ii}
.endfor
pre-install:
${ECHO_CMD} libexec/milter-regex > ${PLIST}