1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

- Respect CXX and CFLAGS better

This commit is contained in:
Andrew Pantyukhin 2007-07-28 11:58:31 +00:00
parent 1078666f87
commit 353a877ee1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196459

View File

@ -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: