From 4375f548f48ca8feb5b1892d04c1a398d4652ed2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 9 Oct 2012 20:19:46 +0000 Subject: [PATCH] Add --plugindir option. --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index e328f23..14995f8 100644 --- a/wscript +++ b/wscript @@ -99,6 +99,7 @@ def options(opt): opt.load('qt4') opt.add_option('--libdir', action = 'store', default = '${PREFIX}/lib', help = 'library installation prefix') + opt.add_option('--plugindir', action = 'store', default = '${LIBDIR}/vapoursynth', help = 'plugin installation prefix') opt.add_option('--mode', action = 'store', default = 'release', help = 'the mode to compile in (debug/release)') opt.add_option('--static', action = 'store', default = 'false', help = 'build a static library (true/false)') opt.add_option('--filters', action = 'store', default = 'true', help = 'build included filters (true/false)') @@ -202,6 +203,7 @@ def configure(conf): conf.env[opt.upper()] = conf.options.__dict__[opt] conf.env.LIBDIR = Utils.subst_vars(conf.options.libdir, conf.env) + conf.env.PLUGINDIR = Utils.subst_vars(conf.options.plugindir, conf.env) conf.check_cxx(use = ['QTCORE'], header_name = 'QtCore/QtCore') conf.check_cxx(use = ['QTCORE'], header_name = 'QtCore/QtCore', type_name = 'QAtomicInt') @@ -261,7 +263,7 @@ def build(bld): use = ['vapoursynth'], source = bld.path.ant_glob(search_paths([os.path.join('src', 'filters', 'eedi3')])), target = 'eedi3', - install_path = '${LIBDIR}/vapoursynth') + install_path = '${PLUGINDIR}') if bld.env.CYTHON == 'true': bld(features = 'preproc', -- 2.11.4.GIT