mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Generate zlib.pc from source.
Reviewed by: bapt MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D24806
This commit is contained in:
parent
041e0fa670
commit
16ade779ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360952
@ -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
|
||||
|
||||
|
@ -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}
|
Loading…
Reference in New Issue
Block a user