1
1

Deleted build-glib1.sh because glib1 don't work with utf-8

Changed build-glib2.sh for stale more clean build tree
Этот коммит содержится в:
Slava Zanko 2009-05-07 11:29:30 +03:00
родитель 079d83c779
Коммит d0c20d7844
2 изменённых файлов: 16 добавлений и 84 удалений

Просмотреть файл

@ -1,72 +0,0 @@
#! /bin/sh
# Download and build glib 1.2.x statically and then compile GNU Midnight
# Commander against it.
# Copyright (C) 2003 Pavel Roskin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
: ${MC_TOPDIR=`pwd`}
: ${GLIB_VERSION=1.2.10}
GLIB_DIR="glib-$GLIB_VERSION"
GLIB_TARBALL="glib-$GLIB_VERSION.tar.gz"
GLIB_URL="ftp://ftp.gtk.org/pub/gtk/v1.2/$GLIB_TARBALL"
GLIB_INSTDIR="$MC_TOPDIR/glib-inst"
get_file() {
curl --remote-name "$1" || \
wget --passive-ftp "$1" || \
wget "$1" || \
ftp "$1" </dev/null || \
exit 1
}
if test -f src/dir.c; then : ; else
echo "Not in the top-level directory of GNU Midnight Commander." 2>&1
exit 1
fi
if test -f configure; then : ; else
./autogen.sh --help >/dev/null || exit 1
fi
if gzip -vt "$GLIB_TARBALL"; then : ; else
get_file "$GLIB_URL"
fi
rm -rf "$GLIB_DIR"
gzip -cd "$GLIB_TARBALL" | tar xf -
cd "$GLIB_DIR"
if test -f glist.c; then : ; else
echo "glib source is incomplete" 2>&1
exit 1
fi
cp ../config/config.guess .
cp ../config/config.sub .
rm -rf "$GLIB_INSTDIR"
./configure --disable-shared --prefix="$GLIB_INSTDIR" || exit 1
make all || exit 1
make install || exit 1
cd "$MC_TOPDIR"
./configure GLIB_CONFIG="$GLIB_INSTDIR/bin/glib-config" \
PKG_CONFIG=/bin/false --with-glib12 "$@" || exit 1
make clean || exit 1
make || exit 1
echo "GNU Midnight Commander has been successfully compiled"

Просмотреть файл

@ -25,14 +25,15 @@
: ${MC_TOPDIR=`pwd`}
: ${TMP_INSTDIR=$MC_TOPDIR/tmp-inst}
: ${GLIB_VERSION=2.12.6}
: ${PKGC_VERSION=0.21}
: ${GETTEXT_VERSION=0.16.1}
: ${WORK_TOPDIR=$MC_TOPDIR/build_glib2}
: ${TMP_INSTDIR=$WORK_TOPDIR/tmp-inst}
: ${GLIB_VERSION=2.21.0}
: ${PKGC_VERSION=0.23}
: ${GETTEXT_VERSION=0.17}
GLIB_DIR="glib-$GLIB_VERSION"
GLIB_TARBALL="glib-$GLIB_VERSION.tar.gz"
GLIB_URL="ftp://ftp.gtk.org/pub/glib/2.12/$GLIB_TARBALL"
GLIB_URL="ftp://ftp.gtk.org/pub/glib/2.21/$GLIB_TARBALL"
PKGC_DIR="pkg-config-$PKGC_VERSION"
PKGC_TARBALL="pkg-config-$PKGC_VERSION.tar.gz"
@ -49,14 +50,17 @@ get_file() {
ftp "$1" </dev/null || \
exit 1
}
if test ! -d $WORK_TOPDIR; then
mkdir -p $WORK_TOPDIR
fi
if test -f src/dir.c; then : ; else
if test -f $MC_TOPDIR/src/dir.c; then : ; else
echo "Not in the top-level directory of GNU Midnight Commander." 2>&1
exit 1
fi
if test -f configure; then : ; else
./autogen.sh --help >/dev/null || exit 1
if test -f $MC_TOPDIR/configure; then : ; else
$MC_TOPDIR/autogen.sh --help >/dev/null || exit 1
fi
rm -rf "$TMP_INSTDIR"
@ -64,7 +68,7 @@ PATH="$TMP_INSTDIR/bin:$PATH"
export PATH
# Compile gettext
cd "$MC_TOPDIR"
cd "$WORK_TOPDIR"
if gzip -vt "$GETTEXT_TARBALL"; then : ; else
get_file "$GETTEXT_URL"
fi
@ -82,7 +86,7 @@ make all || exit 1
make install || exit 1
# Compile pkgconfig
cd "$MC_TOPDIR"
cd "$WORK_TOPDIR"
if gzip -vt "$PKGC_TARBALL"; then : ; else
get_file "$PKGC_URL"
fi
@ -100,7 +104,7 @@ make all || exit 1
make install || exit 1
# Compile glib
cd "$MC_TOPDIR"
cd "$WORK_TOPDIR"
if gzip -vt "$GLIB_TARBALL"; then : ; else
get_file "$GLIB_URL" || exit 1
fi
@ -121,7 +125,7 @@ make all || exit 1
make install || exit 1
cd "$MC_TOPDIR"
./configure PKG_CONFIG="$TMP_INSTDIR/bin/pkg-config" || exit 1
./configure PKG_CONFIG="$TMP_INSTDIR/bin/pkg-config" $@ || exit 1
make clean || exit 1
make || exit 1