aboutsummaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-04-23 00:15:27 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-04-23 00:15:27 +0000
commit8a19cfbe4c1f7ec827dcb5e695460984b1bb751b (patch)
treef1f3b964c24c3d3cdca109b6360a880be7b521dd /archivers
parent7e2ed6a00baf089c098bbb064b39636d48167caf (diff)
downloadports-8a19cfbe4c1f7ec827dcb5e695460984b1bb751b.tar.gz
ports-8a19cfbe4c1f7ec827dcb5e695460984b1bb751b.zip
Notes
Diffstat (limited to 'archivers')
-rw-r--r--archivers/lzma/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/archivers/lzma/Makefile b/archivers/lzma/Makefile
index fdedd5425492..1af9f7d6c054 100644
--- a/archivers/lzma/Makefile
+++ b/archivers/lzma/Makefile
@@ -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: