Install all packages via DESTDIR var and not prefix.

This removes many assignments that were needed before, and fixes
some packages to install its manpage/info files.

--HG--
extra : convert_revision : 5422f921ef81d089ed95ce0c52e5106ea10b2165
This commit is contained in:
Juan RP 2009-03-18 10:02:43 +01:00
parent d143a6ed7e
commit 3667f039f2
48 changed files with 68 additions and 97 deletions

View file

@ -56,7 +56,7 @@ configure_src_phase()
cross_compile_setvars
fi
# Run pre_configure helpers.
# Run pre_configure func.
run_func pre_configure
# Export configure_env vars.
@ -77,16 +77,10 @@ configure_src_phase()
# Packages using GNU autoconf
#
if [ "$build_style" = "gnu_configure" ]; then
if [ -z "$in_chroot" ]; then
infodir=${DESTDIR}/usr/share/info
mandir=${DESTDIR}/usr/share/man
else
infodir=/usr/share/info
mandir=/usr/share/man
fi
${configure_script} \
--prefix=/usr --sysconfdir=/etc \
--infodir=${infodir} --mandir=${mandir} \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
${configure_args}
#
# Packages using propietary configure scripts.
@ -120,6 +114,9 @@ configure_src_phase()
msg_error "building $pkg (configure phase)."
fi
# Run post_configure func.
run_func post_configure
# unset configure_env vars.
for f in ${configure_env}; do
unset eval ${f%=*}