MFC 276962:

Do not regenerate and install liblzma.pc when only build libraries
  aka do not regenerate while generating 32bits libs

Reported by:	Shin-ichi Okano <s-okano__at__n08.itscom.net>
This commit is contained in:
Hajimu UMEMOTO 2015-12-26 12:06:52 +00:00
parent a2346d0e30
commit 32cedfabd6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=292747

View File

@ -155,12 +155,13 @@ CFLAGS+= -DSYMBOL_VERSIONING
CLEANFILES+= liblzma.pc
.if !defined(LIBRARIES_ONLY)
all: liblzma.pc
liblzma.pc: liblzma.pc.in
@sed -e 's,@prefix@,/usr,g ; \
s,@exec_prefix@,/usr,g ; \
s,@libdir@,${LIBDIR},g ; \
s,@includedir@,${INCLUDEDIR},g ; \
s,@libdir@,/usr/lib,g ; \
s,@includedir@,/usr/include,g ; \
s,@PACKAGE_URL@,http://tukaani.org/xz/,g ; \
s,@PACKAGE_VERSION@,${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH},g ; \
s,@PTHREAD_CFLAGS@,,g ; \
@ -169,5 +170,6 @@ liblzma.pc: liblzma.pc.in
beforeinstall:
@${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
liblzma.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
.endif
.include <bsd.lib.mk>