libmpv: add pkg-config file

This commit is contained in:
Alessandro Ghedini 2014-03-11 16:55:49 +01:00 committed by wm4
parent e00dcfb0f5
commit dfc57e6d32
2 changed files with 23 additions and 0 deletions

11
libmpv/mpv.pc.in Normal file
View File

@ -0,0 +1,11 @@
prefix=@PREFIX@
exec_prefix=@PREFIX@
libdir=@LIBDIR@
includedir=@INCDIR@
Name: mpv
Description: mpv media player client library
Version: @VERSION@
Requires:
Libs: -L${libdir} -lmpv
Cflags: -I${includedir}

View File

@ -451,10 +451,22 @@ def build(ctx):
vnum = "0.0.0",
)
ctx(
target = 'libmpv/mpv.pc',
source = 'libmpv/mpv.pc.in',
features = 'subst',
PREFIX = ctx.env.PREFIX,
LIBDIR = ctx.env.LIBDIR,
INCDIR = ctx.env.INCDIR,
vnum = "0.0.0",
)
headers = ["client.h"]
for f in headers:
ctx.install_as(ctx.env.INCDIR + '/libmpv/' + f, 'libmpv/' + f)
ctx.install_as(ctx.env.LIBDIR + '/pkgconfig/mpv.pc', 'libmpv/mpv.pc')
if ctx.dependency_satisfied('client-api-examples'):
# This assumes all examples are single-file (as examples should be)
for f in ["simple"]: