Generate zlib.pc from source.

Reviewed by:		bapt
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D24806
This commit is contained in:
Xin LI 2020-05-12 01:47:33 +00:00
parent 041e0fa670
commit 16ade779ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360952
2 changed files with 11 additions and 14 deletions

View File

@ -53,6 +53,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

View File

@ -1,14 +0,0 @@
# $FreeBSD$
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
sharedlibdir=${libdir}
includedir=${prefix}/include
Name: zlib
Description: zlib compression library
Version: 1.2.10
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}