Module Name: src Committed By: christos Date: Tue Oct 29 14:38:32 UTC 2024
Modified Files: src/external/bsd/zstd/lib: Makefile Log Message: build libzstd.pc To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/bsd/zstd/lib/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/zstd/lib/Makefile diff -u src/external/bsd/zstd/lib/Makefile:1.1 src/external/bsd/zstd/lib/Makefile:1.2 --- src/external/bsd/zstd/lib/Makefile:1.1 Sun Oct 27 18:48:51 2024 +++ src/external/bsd/zstd/lib/Makefile Tue Oct 29 10:38:32 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2024/10/27 22:48:51 christos Exp $ +# $NetBSD: Makefile,v 1.2 2024/10/29 14:38:32 christos Exp $ NOLINT=yes # XXX WARNS?= 4 @@ -61,4 +61,25 @@ INCSDIR= /usr/include LIBDPLIBS += pthread ${NETBSDSRCDIR}/lib/libpthread +FILES+= libzstd.pc +FILESOWN_libarchive.pc= ${BINOWN} +FILESGRP_libarchive.pc= ${BINGRP} +FILESMODE_libarchive.pc= ${NONBINMODE} +FILESDIR_libarchive.pc= /usr/lib/pkgconfig + +CLEANFILES+=libzstd.pc + +all: libzstd.pc +dependall: all + +libzstd.pc: libzstd.pc.in + @${_MKTARGET_CREATE} + @(V=$$( (echo '#include <zstd.h>'; echo ZSTD_LIB_VERSION) | \ + ${CC} -E - | tail -1 | tr -d ' ') && \ + ${TOOL_SED} -e s,@VERSION@,$$V, \ + -e s,@PREFIX@,/usr, -e s,@EXEC_PREFIX@,/usr/bin, \ + -e s,@INCLUDEDIR@,/usr/include, -e s,@LIBDIR@,/usr/lib, \ + -e s,@LIBS_PRIVATE@,, \ + < ${.ALLSRC} > ${.TARGET}) + .include <bsd.lib.mk>