svn commit: r276962 - head/lib/liblzma

Baptiste Daroussin bapt at FreeBSD.org
Sun Jan 11 09:25:02 UTC 2015


Author: bapt
Date: Sun Jan 11 09:25:01 2015
New Revision: 276962
URL: https://svnweb.freebsd.org/changeset/base/276962

Log:
  Do not regenerate and install liblzma.pc when only build libraries
  aka do not regenerate while generating 32bits libs
  
  Reported by:	antoine

Modified:
  head/lib/liblzma/Makefile

Modified: head/lib/liblzma/Makefile
==============================================================================
--- head/lib/liblzma/Makefile	Sun Jan 11 08:40:01 2015	(r276961)
+++ head/lib/liblzma/Makefile	Sun Jan 11 09:25:01 2015	(r276962)
@@ -148,12 +148,13 @@ CFLAGS+=	-DSYMBOL_VERSIONING
 
 CLEANFILES+=	liblzma.pc
 
+.if !defined(LIBRARIES_ONLY)
 all: liblzma.pc
 liblzma.pc: liblzma.pc.in
 	@sed -e 's, at prefix@,/usr,g ; \
 		s, at exec_prefix@,/usr,g  ; \
-		s, at libdir@,${LIBDIR},g ; \
-		s, at includedir@,${INCLUDEDIR},g ; \
+		s, at libdir@,/usr/lib,g ; \
+		s, at includedir@,/usr/include,g ; \
 		s, at PACKAGE_URL@,http://tukaani.org/xz/,g ; \
 		s, at PACKAGE_VERSION@,${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH},g ; \
 		s, at PTHREAD_CFLAGS@,,g ; \
@@ -162,5 +163,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>


More information about the svn-src-head mailing list