/packages/databases/mysql-hosttools/build
http://github.com/OpenELEC/OpenELEC.tv · Shell · 60 lines · 26 code · 14 blank · 20 comment · 1 complexity · c6908f6b24f28d4e76255f9a9ed5e304 MD5 · raw 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