Files
Arch-R/packages/textproc/libxml2/build
T

54 lines
1.7 KiB
Python
Raw Normal View History

2009-03-18 13:02:53 +01:00
#!/bin/sh
2011-01-09 18:41:35 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:41:35 +01:00
#
# 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
2011-01-09 18:41:35 +01:00
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
2009-03-18 13:02:53 +01:00
2012-01-16 12:33:17 +01:00
if [ "$ICONV" = "libiconv" ]; then
CONFIG_LIBXML="--with-iconv"
fi
cd $PKG_BUILD
mkdir -p .build-target
cd .build-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
2011-05-28 16:40:58 +02:00
--enable-static \
--enable-shared \
2012-05-26 01:06:14 +02:00
--disable-silent-rules \
2012-01-16 12:33:17 +01:00
$CONFIG_LIBXML \
2012-10-27 15:20:45 +02:00
--enable-ipv6 \
--without-python \
2012-05-26 01:06:14 +02:00
--with-zlib \
--without-lzma
2009-03-18 13:02:53 +01:00
2009-11-16 02:31:34 +01:00
make
2009-03-18 13:02:53 +01:00
$MAKEINSTALL
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \
$SYSROOT_PREFIX/usr/bin/xml2-config
mv $SYSROOT_PREFIX/usr/bin/xml2-config $ROOT/$TOOLCHAIN/bin