|
|
Warp wrote:
> Someone reported that the unix version of povray 3.7 always uses
> /usr/local/share/povray-3.7 regardless of what was specified with
> --prefix.
>
> I haven't tested the veracity of this myself, though.
Yes, I just ran into this myself. I maintain povray for Gentoo Linux,
and I just released a new ebuild for beta25, and I had to add a hack to
get the paths working. It seems (well, I assume this is the culprit)
that POVCONFDIR and POVLIBDIR are not set during the build, even when
the config files get installed to the desired location, so they take on
the default values set in vfe/unix/unixoptions.h (which is
/usr/local...). In Gentoo's case, we have the conf files, e.g., install
to /etc/povray/... The following code in our new ebuild fixes this for us:
MY_MAIN_VER=$(get_version_component_range 1-2)
append-flags -DPOVLIBDIR=\\\"/usr/share/${PN}-${MY_MAIN_VER}\\\"
append-flags -DPOVCONFDIR=\\\"/etc/${PN}/${MY_MAIN_VER}\\\"
POVCONFDIR evaluates to "/etc/povray/3.7" in this case, which is where
the conf files are.
-Joe
Post a reply to this message
|
|