From ce8a9b76f2cee21c41232d88725f6e82043ed128 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Sun, 10 Jul 2005 09:40:35 +0000 Subject: [PATCH] Really get the libz fix into libstand as well. Reported-by: swildner --- lib/libz/Makefile.stand | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/lib/libz/Makefile.stand b/lib/libz/Makefile.stand index 18945adeaa..04b76353d4 100644 --- a/lib/libz/Makefile.stand +++ b/lib/libz/Makefile.stand @@ -1,10 +1,20 @@ -# $DragonFly: src/lib/libz/Makefile.stand,v 1.2 2005/07/06 15:02:06 corecode Exp $ +# $DragonFly: src/lib/libz/Makefile.stand,v 1.3 2005/07/10 09:40:35 corecode Exp $ # decompression functionality from libz for libstand # relative to lib/libstand -.PATH: ${.CURDIR}/../../contrib/zlib-1.2.2 -CFLAGS+=-DHAVE_MEMCPY -ZLIB_PATCHES!= ${.CURDIR}/../../contrib/zlib-1.2.2/patches/*.patch +ZLIBDIR= ${.CURDIR}/../../contrib/zlib-1.2.2 +.PATH: ${ZLIBDIR} + +CFLAGS+=-DHAVE_MEMCPY -I${ZLIBDIR} SRCS+= adler32.c crc32.c deflate.c infback.c inffast.c inflate.c \ - inftrees.c zutil.c ${ZLIB_PATCHES} + inftrees.c zutil.c + +ZLIB_PATCHES!= echo ${.CURDIR}/../libz/patches/*.patch +.for patch in ${ZLIB_PATCHES} +.for file in ${patch:R:T} +CLEANFILES+= ${file} +${file}: ${ZLIBDIR}/${file} ${patch} + patch -o ${.TARGET} -i ${patch} ${ZLIBDIR}/${file} +.endfor +.endfor -- 2.41.0