summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-07-01 21:09:45 +0200
committerJan Ekström <jeebjp@gmail.com>2018-07-12 01:48:10 +0300
commit5e608fc4c850d6210ca543d4ed7265c5eee68bc5 (patch)
tree89f9801d78fa50eac10a14f02caf64c414cc577b /wscript_build.py
parent546f038ded9427d4bc1e3ea24103f6a8c2783b68 (diff)
downloadmpv-5e608fc4c850d6210ca543d4ed7265c5eee68bc5.tar.bz2
mpv-5e608fc4c850d6210ca543d4ed7265c5eee68bc5.tar.xz
build: utilize built-in gnu_dirs module for installation directories
This started breaking with newer (2.0.x) waf versions, and it was noticed that a built-in waf module was providing very similar functionality. APPNAME definition was required to have `gnu_dirs`' PACKAGE variable to be defined in order to have f.ex. documentation installed to the correct directory. Currently unused options added by `gnu_dirs` were removed to clean up the output of the help command. Effective changes to behavior: - `gnu_dirs` will attempt to figure out if it needs to use lib64 instead of lib within your installation prefix. If you would like it to not do that, set `--libdir` during configuration. The way it tries to figure lib/lib64 out is if there's a `/usr/lib64` and no `/usr/lib32`. - `--incdir` is now `--includedir` as per standard `gnu_dirs` behavior.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 89eaa48137..8e948ba333 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -693,7 +693,7 @@ def build(ctx):
features = 'subst',
PREFIX = ctx.env.PREFIX,
LIBDIR = ctx.env.LIBDIR,
- INCDIR = ctx.env.INCDIR,
+ INCDIR = ctx.env.INCLUDEDIR,
VERSION = libversion,
PRIV_LIBS = get_deps(),
)
@@ -701,7 +701,7 @@ def build(ctx):
headers = ["client.h", "qthelper.hpp", "opengl_cb.h", "render.h",
"render_gl.h", "stream_cb.h"]
for f in headers:
- ctx.install_as(ctx.env.INCDIR + '/mpv/' + f, 'libmpv/' + f)
+ ctx.install_as(ctx.env.INCLUDEDIR + '/mpv/' + f, 'libmpv/' + f)
ctx.install_as(ctx.env.LIBDIR + '/pkgconfig/mpv.pc', 'libmpv/mpv.pc')