configure, docs: set correct "mypaint-brush-path" value in man page.

This was hard-coded to what I guess was a personal prefix (commit
368c7c0511), which is obviously wrong. This has to be constructed at
compilation and the man must mirror whatever is the actual installation
path of mypaint-brushes package.
This commit is contained in:
Jehan 2018-03-29 17:22:15 +02:00
parent 5d83c7697e
commit 479bcaafdd
2 changed files with 5 additions and 1 deletions

View File

@ -1667,6 +1667,10 @@ PKG_CHECK_MODULES(LIBMYPAINT, libmypaint >= libmypaint_required_version,,
PKG_CHECK_MODULES(MYPAINT_BRUSHES, mypaint-brushes-1.0,,
[add_deps_error([mypaint-brushes-1.0])])
# We need an autoconf variable for man page construction.
mypaint_brushes_dir=`$PKG_CONFIG --variable=brushesdir mypaint-brushes-1.0`
AC_SUBST(mypaint_brushes_dir)
##################
# Check for webkit
##################

View File

@ -142,7 +142,7 @@ search.
This is a colon-separated list of folders to search.
.TP
(mypaint-brush-path "/local/head/share/mypaint-data/1.0/brushes:~/.mypaint/brushes")
(mypaint-brush-path "@mypaint_brushes_dir@:~/.mypaint/brushes")
Sets the brush search path. This is a colon-separated list of folders to
search.