|
|
@ -122,15 +122,14 @@ elif [ $stagelevel -ge 2 ] ; then |
|
|
|
# moving them to their final directories. |
|
|
|
# |
|
|
|
var_append makeopt " " "prefix=/$prefix" |
|
|
|
var_append makeinstopt " " "prefix=$root/$prefix" |
|
|
|
for x in bin info man data ; do |
|
|
|
mkdir -p $builddir/inst_$x |
|
|
|
var_append makeinstopt " " "${x}dir=$builddir/inst_$x" |
|
|
|
mkdir -p $dummydir/inst_$x |
|
|
|
eval "${x}dir=$dummydir/inst_$x" |
|
|
|
done |
|
|
|
|
|
|
|
# libstdc++ locales are not installed to the $datadir without this. |
|
|
|
var_append INSTALL_WRAPPER_FILTER "|" "sed -e \ |
|
|
|
's,$root/$prefix/share\(/locale/.*/libstdc++.mo\),$builddir/inst_data\1,'" |
|
|
|
's,$root/$prefix/share\(/locale/.*/libstdc++.mo\),$dummydir/inst_data\1,'" |
|
|
|
|
|
|
|
var_append extraconfopt " " "--enable-version-specific-runtime-libs" |
|
|
|
fi |
|
|
@ -199,7 +198,7 @@ custmain () { |
|
|
|
if [ $stagelevel -ge 2 -a -z "$pkg_gcc_cross" ] ; then |
|
|
|
# Rename and install binaries |
|
|
|
# |
|
|
|
cd $builddir/inst_bin ; mkdir -p $root/$prefix/bin |
|
|
|
cd $dummydir/inst_bin ; mkdir -p $root/$prefix/bin |
|
|
|
for y in c++ c++filt g++ cpp f77 g77 gfortran gcc gcov ; do |
|
|
|
for x in $y ${pkg_gcc_target}-$y ; do |
|
|
|
if [ -f "$x" ] ; then |
|
|
@ -210,7 +209,7 @@ custmain () { |
|
|
|
|
|
|
|
# Rename and install info-files |
|
|
|
# |
|
|
|
cd $builddir/inst_info ; mkdir -p $root/$prefix/info |
|
|
|
cd $dummydir/inst_info ; mkdir -p $root/$prefix/info |
|
|
|
for x in * ; do |
|
|
|
[ ! -f $x ] && continue # e.g. if $x becomes '*' somehow |
|
|
|
fn=$( echo $x | sed "s,\([a-z0-9]*\),\1-${pkg_gcc_version}," ) |
|
|
@ -226,7 +225,7 @@ custmain () { |
|
|
|
|
|
|
|
# Rename and install man-pages |
|
|
|
# |
|
|
|
cd $builddir/inst_man/man1 |
|
|
|
cd $dummydir/inst_man/man1 |
|
|
|
mkdir -p $root/$prefix/man/man1 |
|
|
|
for x in * ; do |
|
|
|
[ ! -f $x ] && continue # e.g. if $x becomes '*' somehow |
|
|
@ -237,7 +236,7 @@ custmain () { |
|
|
|
true |
|
|
|
done |
|
|
|
|
|
|
|
cd $builddir/inst_man/man7 |
|
|
|
cd $dummydir/inst_man/man7 |
|
|
|
mkdir -p $root/$prefix/man/man7 |
|
|
|
for x in * ; do |
|
|
|
[ ! -f $x ] && continue # e.g. if $x becomes '*' somehow |
|
|
@ -250,8 +249,8 @@ custmain () { |
|
|
|
|
|
|
|
# Rename and install locales |
|
|
|
# |
|
|
|
if [ -d "$builddir/inst_data/locale" ] ; then |
|
|
|
cd $builddir/inst_data/locale |
|
|
|
if [ -d "$dummydir/inst_data/locale" ] ; then |
|
|
|
cd $dummydir/inst_data/locale |
|
|
|
for x in */LC_MESSAGES/*.mo ; do |
|
|
|
[ ! -f "$x" ] && continue # e.g. if $x becomes '*' somehow |
|
|
|
y="$root/$prefix/share/locale/$x" |
|
|
|