Date: Mon, 18 May 2020 16:33:33 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r361219 - releng/11.4/lib/libz Message-ID: <202005181633.04IGXXKl029165@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon May 18 16:33:32 2020 New Revision: 361219 URL: https://svnweb.freebsd.org/changeset/base/361219 Log: MFS r361069: MFC r360952: Generate zlib.pc from source. Approved by: re (gjb) Deleted: releng/11.4/lib/libz/zlib.pc Modified: releng/11.4/lib/libz/Makefile Directory Properties: releng/11.4/ (props changed) Modified: releng/11.4/lib/libz/Makefile ============================================================================== --- releng/11.4/lib/libz/Makefile Mon May 18 16:07:14 2020 (r361218) +++ releng/11.4/lib/libz/Makefile Mon May 18 16:33:32 2020 (r361219) @@ -52,6 +52,17 @@ INCS= zconf.h zlib.h .PATH: ${ZLIBSRC}/test +ZLIB_VERSION!= sed -n '/define.*ZLIB_VERSION/{s,[^0-9.],,gp;q;}' ${ZLIBSRC}/zlib.h + +zlib.pc: zlib.pc.in + sed -e 's,@prefix@,/usr,g ; \ + s,@exec_prefix@,$${prefix},g ; \ + s,@libdir@,$${exec_prefix}/lib,g ; \ + s,@sharedlibdir@,$${libdir},g ; \ + s,@includedir@,$${prefix}/include,g ; \ + s,@VERSION@,${ZLIB_VERSION},g ;' \ + ${.ALLSRC} > ${.TARGET} + minigzip: all minigzip.o $(CC) -o minigzip minigzip.o -L. -lz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005181633.04IGXXKl029165>