Files
Arch-R/packages/databases/mysql-hosttools/build
2011-07-13 01:39:12 +02:00

61 lines
1.8 KiB
Bash
Executable File

#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# 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, 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 OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
$SCRIPTS/unpack mysql
setup_toolchain host
cd $BUILD/mysql*
do_autoreconf
mkdir -p .objdir-host && cd .objdir-host
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/sbin \
--localstatedir=/var/mysql \
make -C include my_config.h
make -C mysys libmysys.a
make -C strings libmystrings.a
make -C dbug factorial
cp -PR dbug/factorial $ROOT/$TOOLCHAIN/bin/mysql-factorial
make -C vio libvio.a
make -C dbug libdbug.a
make -C regex libregex.a
make -C sql gen_lex_hash
cp -PR sql/gen_lex_hash $ROOT/$TOOLCHAIN/bin/mysql-gen_lex_hash
make -C scripts comp_sql
cp -PR scripts/comp_sql $ROOT/$TOOLCHAIN/bin/mysql-comp_sql
make -C extra comp_err
cp -PR extra/comp_err $ROOT/$TOOLCHAIN/bin/mysql-comp_err