1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Fix build

Reported by:	pointyhat via kris
This commit is contained in:
Andrew Pantyukhin 2007-04-23 00:15:27 +00:00
parent 7e2ed6a00b
commit 8a19cfbe4c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=190662

View File

@ -25,10 +25,11 @@ CFLAGS+= -D_LZMA_SYSTEM_SIZE_T
PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt
post-patch:
@${EGREP} -lr '(malloc.h|MyAlloc|MyFree)' ${WRKSRC}|\
${XARGS} ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|'
@${REINPLACE_CMD} -e \
's|^CXX.*||; \
s|CXX_C|CC|; \
s|^CFLAGS =|CFLAGS +=|' \
's|^CXX.*||;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|;\
s|Alloc.cpp|Alloc.c|;s|/Alloc.c|/C/Alloc.c|;/Alloc.c/s|CXX|CC|'\
${BUILD_WRKSRC}/${MAKEFILE}
do-install: