summaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-05-26 16:05:16 +0000
committerjylefort <jylefort@FreeBSD.org>2005-05-26 16:05:16 +0000
commit194ef56e7ea81d85f61404888b10d8b9a28d1adc (patch)
treee9a6c102dff11397cb285c252bbe367c547226e7 /archivers
parenta087385b192dc4fad77857dd509f0c8271974ca9 (diff)
downloadFreeBSD-ports-194ef56e7ea81d85f61404888b10d8b9a28d1adc.zip
FreeBSD-ports-194ef56e7ea81d85f61404888b10d8b9a28d1adc.tar.gz
- Respect ${CC} and ${CXX}
- Convert line terminators to UNIX format rather than requiring GCC 3.4 [1] Reported by: Patrick Bihan-Faou <patrick.bihan-faou@netzuno.com> [1]
Diffstat (limited to 'archivers')
-rw-r--r--archivers/lzma/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/archivers/lzma/Makefile b/archivers/lzma/Makefile
index 755c55b..7f6489b 100644
--- a/archivers/lzma/Makefile
+++ b/archivers/lzma/Makefile
@@ -14,7 +14,6 @@ DISTNAME= lzma${PORTVERSION:S/.//g}
MAINTAINER= jylefort@FreeBSD.org
COMMENT= Command line lzma archiver
-USE_GCC= 3.4+
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
@@ -22,6 +21,7 @@ NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/SRC/7zip/Compress/LZMA_Alone
MAKEFILE= makefile
+MAKE_ENV= CC="${CC}" CXX="${CXX}"
PLIST_FILES= bin/lzma
.if !defined(NOPORTDOCS)
@@ -29,6 +29,8 @@ PORTDOCS= *.txt
.endif
post-patch:
+ @${FIND} ${WRKSRC} -name '*.[ch]' -exec ${REINPLACE_CMD} -e \
+ "s|`${ECHO_CMD} -e '\r'`$$||" {} \;
@${REINPLACE_CMD} -e \
's|^CXX.*||; \
s|$$(CXX_C)|$$(CC)|; \
OpenPOWER on IntegriCloud