Commit 99d1e3b6 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix up

parent cd73f748
...@@ -13,11 +13,6 @@ prefix = get_option('prefix') ...@@ -13,11 +13,6 @@ prefix = get_option('prefix')
datadir = get_option('datadir') datadir = get_option('datadir')
metainfodir = join_paths(datadir, 'metainfo') metainfodir = join_paths(datadir, 'metainfo')
desktopdir = join_paths(datadir, 'applications') desktopdir = join_paths(datadir, 'applications')
if get_option('plugindir') == ''
plugindir = zathura.get_pkgconfig_variable('plugindir')
else
plugindir = get_option('plugindir')
endif
# required dependencies # required dependencies
zathura = dependency('zathura', version: '>=0.3.9') zathura = dependency('zathura', version: '>=0.3.9')
...@@ -48,6 +43,12 @@ if get_option('link-external') ...@@ -48,6 +43,12 @@ if get_option('link-external')
] ]
endif endif
if get_option('plugindir') == ''
plugindir = zathura.get_pkgconfig_variable('plugindir')
else
plugindir = get_option('plugindir')
endif
# defines # defines
defines = [ defines = [
'-DVERSION_MAJOR=@0@'.format(version_array[0]), '-DVERSION_MAJOR=@0@'.format(version_array[0]),
......
...@@ -5,5 +5,7 @@ option('link-external', ...@@ -5,5 +5,7 @@ option('link-external',
) )
option('plugindir', option('plugindir',
type: 'string', value: '', type: 'string',
description: 'Install to a different location than Zathuras plugin directory') value: '',
description: 'Install to a different location than Zathura\'s plugin directory'
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment