summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archivers/unalz/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/archivers/unalz/Makefile b/archivers/unalz/Makefile
index e6ef72525748..9d1c50a39f94 100644
--- a/archivers/unalz/Makefile
+++ b/archivers/unalz/Makefile
@@ -21,6 +21,12 @@ MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
WRKSRC= ${WRKDIR}/unalz
+pre-patch:
+ cd ${WRKSRC} && for f in `find . -name '*.c' -o -name '*.h'`; do \
+ ${TR} -d '\015' < ${WRKSRC}/$$f > ${WRKSRC}/$$f.tmp && \
+ ${MV} -f ${WRKSRC}/$$f.tmp ${WRKSRC}/$$f; \
+ done
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unalz ${PREFIX}/bin