Anpassung an neue Version
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@4565 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
9081699a64
commit
3ea63d179a
@ -73,59 +73,72 @@ SRCPATH=Base/Development
|
|||||||
premk() {
|
premk() {
|
||||||
mkdir -p $TMPROOT/usr/share
|
mkdir -p $TMPROOT/usr/share
|
||||||
mkdir -p $TMPROOT/usr/bin
|
mkdir -p $TMPROOT/usr/bin
|
||||||
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-gcc42_fix-?.patch.*
|
|
||||||
echo "127.0.0.1 localhost $(hostname)" >/etc/hosts
|
echo "127.0.0.1 localhost $(hostname)" >/etc/hosts
|
||||||
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
||||||
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
|
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
|
||||||
|
#sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
|
||||||
|
#-e '/^INCLUDE\|^LIB/ s|\./zlib-src|/usr/include|' \
|
||||||
|
#ext/Compress/Raw/Zlib/config.in
|
||||||
|
if [ ! -f /etc/hosts ]; then
|
||||||
|
echo "127.0.0.1 localhost $(hostname)" >/etc/hosts
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
mk32() {
|
mk32() {
|
||||||
./configure.gnu --prefix=/usr \
|
./configure.gnu --prefix=/usr \
|
||||||
|
-Dvendorprefix=/usr \
|
||||||
-Dman1dir=/usr/share/man/man1 \
|
-Dman1dir=/usr/share/man/man1 \
|
||||||
-Dman3dir=/usr/share/man/man3 \
|
-Dman3dir=/usr/share/man/man3 \
|
||||||
-Dpager="/bin/less -isR" \
|
-Dpager="/bin/less -isR" \
|
||||||
-Dgcc="gcc ${BUILDOPTIONS32}" \
|
-Dgcc="gcc ${BUILDOPTIONS32}" \
|
||||||
-Dlibpath="/usr/local/lib /lib /usr/lib" \
|
-Dusethreads \
|
||||||
-Dusethreads
|
-Duseshrplib \
|
||||||
make -j $NUMCPU
|
make -j $NUMCPU
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||||
mv $TMPROOT/usr/bin/perl{,-32}
|
mv $TMPROOT/usr/bin/perl{,-32}
|
||||||
mv $TMPROOT/usr/bin/perl5.8.8{,-32}
|
mv $TMPROOT/usr/bin/perl5.10.0{,-32}
|
||||||
rm -r $MAKEDIR/perl-*
|
rm -r $MAKEDIR/perl-*
|
||||||
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/perl-*.tar*
|
UnPack $MAKEDIR $LFSSOURCE/$SRCPATH/perl-*.tar*
|
||||||
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-gcc42_fix-?.patch.*
|
cd $MAKEDIR/perl*
|
||||||
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
sed -i -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
|
||||||
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
|
-e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH
|
||||||
|
#sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
|
||||||
|
#-e '/^INCLUDE\|^LIB/ s|\./zlib-src|/usr/include|' \
|
||||||
|
#ext/Compress/Raw/Zlib/config.in
|
||||||
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-Configure_multilib-?.patch.*
|
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-Configure_multilib-?.patch.*
|
||||||
|
SrcPatch $MAKEDIR/perl* $LFSSOURCE/$SRCPATH/perl-*-libc-*.patch*
|
||||||
sed -i "/libc/s@/lib@/lib64@" hints/linux.sh
|
sed -i "/libc/s@/lib@/lib64@" hints/linux.sh
|
||||||
echo 'installstyle="lib64/perl5"' >>hints/linux.sh
|
echo 'installstyle="lib64/perl5"' >>hints/linux.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
mk() {
|
mk() {
|
||||||
if [ "$MK64BIT" == "true" ]; then
|
if [ "$MK64BIT" == "true" ]; then
|
||||||
ADDOPTIONS="-Dlibpath=\"/usr/local/lib64 /lib64 /usr/lib64\""
|
ADDOPTIONS="-Dlibpth=\"/usr/local/lib64 /lib64 /usr/lib64\""
|
||||||
else
|
else
|
||||||
ADDOPTIONS="-Dlibpath=\"/usr/local/lib /lib /usr/lib\""
|
ADDOPTIONS="-Dlibpth=\"/usr/local/lib /lib /usr/lib\""
|
||||||
fi
|
fi
|
||||||
|
sed -i -e "s/CLDFLAGS =/CLDFLAGS = -lm -lrt/" Makefile.SH
|
||||||
./configure.gnu --prefix=/usr \
|
./configure.gnu --prefix=/usr \
|
||||||
|
-Dvendorprefix=/usr \
|
||||||
-Dman1dir=/usr/share/man/man1 \
|
-Dman1dir=/usr/share/man/man1 \
|
||||||
-Dman3dir=/usr/share/man/man3 \
|
-Dman3dir=/usr/share/man/man3 \
|
||||||
-Dpager="/bin/less -isR" \
|
-Dpager="/bin/less -isR" \
|
||||||
$ADDOPTIONS \
|
$ADDOPTIONS \
|
||||||
-Dcc="gcc ${BUILDOPTIONS}" \
|
-Dcc="gcc ${BUILDOPTIONS}" \
|
||||||
-Dusethreads
|
-Dusethreads \
|
||||||
make -j $NUMCPU
|
-Duseshrplib
|
||||||
MakeCheck -j $NUMCPU test
|
make
|
||||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
MakeCheck test
|
||||||
|
make DESTDIR=$TMPROOT install
|
||||||
}
|
}
|
||||||
|
|
||||||
postmk() {
|
postmk() {
|
||||||
if [ ${MK64BIT} == "true" ]; then
|
if [ ${MK64BIT} == "true" ]; then
|
||||||
mv $TMPROOT/usr/bin/perl{,-64}
|
mv $TMPROOT/usr/bin/perl{,-64}
|
||||||
mv $TMPROOT/usr/bin/perl5.8.8{,-64}
|
mv $TMPROOT/usr/bin/perl5.10.0{,-64}
|
||||||
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl
|
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl
|
||||||
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl5.8.8
|
ln -sv /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/perl5.10.0
|
||||||
else
|
else
|
||||||
echo "Nothing to do for premk() "
|
echo "Nothing to do for postmk() "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user