diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-10 00:11:10 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-01-10 00:11:10 +0000 |
commit | 8606363bf9fe4c056ff7f572c1c768c40e2e4a59 (patch) | |
tree | 1a67f9849f7ce2e6bf6d269a6061fdeea06e0700 /lib/liblzma | |
parent | ecf09f8321ed765e727bfee052bd57e6f8dc5e9b (diff) | |
parent | 9db922924cf9ffc4f7f66c21c93ceca8eb2b5259 (diff) | |
download | src-test2-8606363bf9fe4c056ff7f572c1c768c40e2e4a59.tar.gz src-test2-8606363bf9fe4c056ff7f572c1c768c40e2e4a59.zip |
Install the liblzma pkg-config file
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=276898
Diffstat (limited to 'lib/liblzma')
-rw-r--r-- | lib/liblzma/Makefile | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/lib/liblzma/Makefile b/lib/liblzma/Makefile index 8d614cf8b45b..b2c22c889b1c 100644 --- a/lib/liblzma/Makefile +++ b/lib/liblzma/Makefile @@ -117,7 +117,16 @@ SRCS+= simple_coder.c \ arm.c \ armthumb.c \ sparc.c - + +.PATH: ${LZMADIR} + +VERSION_MAJOR!= awk '$$1 == "\#define" && $$2 == "LZMA_VERSION_MAJOR" {print $$3 } ' \ + ${LZMADIR}/api/lzma/version.h +VERSION_MINOR!= awk '$$1 == "\#define" && $$2 == "LZMA_VERSION_MINOR" {print $$3 } ' \ + ${LZMADIR}/api/lzma/version.h +VERSION_PATCH!= awk '$$1 == "\#define" && $$2 == "LZMA_VERSION_PATCH" {print $$3 } ' \ + ${LZMADIR}/api/lzma/version.h + WARNS?= 3 CFLAGS+= -DHAVE_CONFIG_H \ @@ -137,4 +146,21 @@ VERSION_DEF= ${.CURDIR}/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map CFLAGS+= -DSYMBOL_VERSIONING +CLEANFILES+= liblzma.pc + +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,@PACKAGE_URL@,http://tukaani.org/xz/,g ; \ + s,@PACKAGE_VERSION@,${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH},g ; \ + s,@PTHREAD_CFLAGS@,,g ; \ + s,@PTHREAD_LIBS@,,g' ${.ALLSRC} > ${.TARGET} + +beforeinstall: + @${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + liblzma.pc ${DESTDIR}${LIBDATADIR}/pkgconfig + .include <bsd.lib.mk> |