aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-04-23 08:15:27 +0800
committersat <sat@FreeBSD.org>2007-04-23 08:15:27 +0800
commita81a62f1470f7f806394f0b02d286ca8b37f77f7 (patch)
treeed6d24d6db5859ab443dd221f3eaa92344fc2261 /archivers
parentd6daceef1887bee6ff10e7ec20054fda0934c05e (diff)
downloadfreebsd-ports-gnome-a81a62f1470f7f806394f0b02d286ca8b37f77f7.tar.gz
freebsd-ports-gnome-a81a62f1470f7f806394f0b02d286ca8b37f77f7.tar.zst
freebsd-ports-gnome-a81a62f1470f7f806394f0b02d286ca8b37f77f7.zip
- Fix build
Reported by: pointyhat via kris
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: