mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
Install the liblzma pkg-config file
MFC after: 1 week
This commit is contained in:
commit
8606363bf9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276898
@ -32,7 +32,6 @@ macosx/
|
||||
makefile.am
|
||||
po/
|
||||
src/*/*.rc
|
||||
src/liblzma/liblzma.pc.in
|
||||
src/scripts/
|
||||
tests/
|
||||
version.sh
|
||||
|
19
contrib/xz/src/liblzma/liblzma.pc.in
Normal file
19
contrib/xz/src/liblzma/liblzma.pc.in
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# Author: Lasse Collin
|
||||
#
|
||||
# This file has been put into the public domain.
|
||||
# You can do whatever you want with this file.
|
||||
#
|
||||
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: liblzma
|
||||
Description: General purpose data compression library
|
||||
URL: @PACKAGE_URL@
|
||||
Version: @PACKAGE_VERSION@
|
||||
Cflags: -I${includedir}
|
||||
Libs: -L${libdir} -llzma
|
||||
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user