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:
parent
b6cbd157d4
commit
51d92e7bab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95486
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user