aboutsummaryrefslogtreecommitdiff
path: root/archivers/lzma
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-07-28 11:58:31 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-07-28 11:58:31 +0000
commit353a877ee1855437d2cb581e4b7d3dc2b166431e (patch)
treef0a445f6a273e3e13fd47a7c253cbd9845b8250d /archivers/lzma
parent1078666f87acf170bb6579cc823631dad567c86b (diff)
downloadports-353a877ee1855437d2cb581e4b7d3dc2b166431e.tar.gz
ports-353a877ee1855437d2cb581e4b7d3dc2b166431e.zip
- Respect CXX and CFLAGS better
Notes
Notes: svn path=/head/; revision=196459
Diffstat (limited to 'archivers/lzma')
-rw-r--r--archivers/lzma/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/archivers/lzma/Makefile b/archivers/lzma/Makefile
index b8963abf2c80..a82dd561c09a 100644
--- a/archivers/lzma/Makefile
+++ b/archivers/lzma/Makefile
@@ -22,6 +22,7 @@ BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Compress/LZMA_Alone
MAKEFILE= makefile.gcc
PLIST_FILES= bin/lzma
CFLAGS+= -D_LZMA_SYSTEM_SIZE_T
+MAKE_ENV+= CXX="${CXX}"
PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt
@@ -29,7 +30,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|4\.49|${DISTVERSION}|' \
${BUILD_WRKSRC}/LzmaAlone.cpp
@${REINPLACE_CMD} -e \
- 's|^CXX.*||;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|'\
+ '/^CXX/d;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|;s|-o|${CFLAGS} -o|'\
${BUILD_WRKSRC}/${MAKEFILE}
do-install: