summaryrefslogtreecommitdiffstats
path: root/lib/liblzma
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-09-18 23:49:32 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-09-18 23:49:32 +0000
commitdeb97713e003a627c3372748f02d703d89e62128 (patch)
tree92732628620a56a8f192cc701136a350dd021f7c /lib/liblzma
parente27c20e7fb7eb194dca656f39b8bac640fdc1229 (diff)
downloadFreeBSD-src-deb97713e003a627c3372748f02d703d89e62128.zip
FreeBSD-src-deb97713e003a627c3372748f02d703d89e62128.tar.gz
Replace beforeinstall: handling with FILES.
This actually fixes some cases to respect LIBRARIES_ONLY. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/liblzma')
-rw-r--r--lib/liblzma/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/liblzma/Makefile b/lib/liblzma/Makefile
index 39b929f..8a6c23d 100644
--- a/lib/liblzma/Makefile
+++ b/lib/liblzma/Makefile
@@ -154,10 +154,11 @@ CFLAGS+= -DSYMBOL_VERSIONING
CLEANFILES+= liblzma.pc
-.if !defined(LIBRARIES_ONLY)
-all: liblzma.pc
+FILES= liblzma.pc
+FILESDIR= ${LIBDATADIR}/pkgconfig
+
liblzma.pc: liblzma.pc.in
- @sed -e 's,@prefix@,/usr,g ; \
+ sed -e 's,@prefix@,/usr,g ; \
s,@exec_prefix@,/usr,g ; \
s,@libdir@,/usr/lib,g ; \
s,@includedir@,/usr/include,g ; \
@@ -166,9 +167,4 @@ liblzma.pc: liblzma.pc.in
s,@PTHREAD_CFLAGS@,,g ; \
s,@PTHREAD_LIBS@,,g' ${.ALLSRC} > ${.TARGET}
-beforeinstall:
- @${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- liblzma.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
-.endif
-
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud