aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-05-27 00:05:16 +0800
committerjylefort <jylefort@FreeBSD.org>2005-05-27 00:05:16 +0800
commit194ef56e7ea81d85f61404888b10d8b9a28d1adc (patch)
treee9a6c102dff11397cb285c252bbe367c547226e7
parenta087385b192dc4fad77857dd509f0c8271974ca9 (diff)
downloadfreebsd-ports-gnome-194ef56e7ea81d85f61404888b10d8b9a28d1adc.tar.gz
freebsd-ports-gnome-194ef56e7ea81d85f61404888b10d8b9a28d1adc.tar.zst
freebsd-ports-gnome-194ef56e7ea81d85f61404888b10d8b9a28d1adc.zip
- 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]
-rw-r--r--archivers/lzma/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/archivers/lzma/Makefile b/archivers/lzma/Makefile
index 755c55b50eb4..7f6489bc4f97 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)|; \