Added autotools-style "datarootdir" and "datadirname" options to scons recipe.

This commit is contained in:
Sergey Popov 2008-04-30 16:09:33 +00:00
parent 7819881877
commit ce40c7c6ee

View file

@ -35,12 +35,14 @@ opts.Add(BoolOption('dummy_locales','Set to enable Wesnoth private locales', Fal
opts.Add(PathOption('fifodir', 'directory for the wesnothd fifo socket file', "/var/run/wesnothd", PathOption.PathAccept))
opts.Add(BoolOption('fribidi','Clear to disable bidirectional-language support', True))
opts.Add(BoolOption('desktop_entry','Clear to disable desktop-entry', True))
opts.Add(PathOption('desktopdir', 'sets the desktop entry directory to a non-default location', "share/applications", PathOption.PathAccept))
opts.Add(PathOption('icondir', 'sets the icons directory to a non-default location', "share/icons", PathOption.PathAccept))
opts.Add(PathOption('datarootdir', 'sets the root of data directories to a non-default location', "share", PathOption.PathAccept))
opts.Add(PathOption('datadirname', 'sets the name of data directory', "wesnoth", PathOption.PathAccept))
opts.Add(PathOption('desktopdir', 'sets the desktop entry directory to a non-default location', "$datarootdir/applications", PathOption.PathAccept))
opts.Add(PathOption('icondir', 'sets the icons directory to a non-default location', "$datarootdir/icons", PathOption.PathAccept))
opts.Add(BoolOption('internal_data', 'Set to put data in Mac OS X application fork', False))
opts.Add(PathOption('localedir', 'sets the locale data directory to a non-default location', "translations", PathOption.PathAccept))
opts.Add(PathOption('mandir', 'sets the man pages directory to a non-default location', "share/man", PathOption.PathAccept))
opts.Add(PathOption('docdir', 'sets the doc directory to a non-default location', "share/doc/wesnoth", PathOption.PathAccept))
opts.Add(PathOption('mandir', 'sets the man pages directory to a non-default location', "$datarootdir/man", PathOption.PathAccept))
opts.Add(PathOption('docdir', 'sets the doc directory to a non-default location', "$datarootdir/doc/$datadirname", PathOption.PathAccept))
opts.Add(BoolOption('lowmem', 'Set to reduce memory usage by removing extra functionality', False))
opts.Add(BoolOption('nls','enable compile/install of gettext message catalogs',True))
opts.Add(PathOption('prefix', 'autotools-style installation prefix', "/usr/local"))