2012-05-28 20:22:30 +02:00
|
|
|
#!/bin/sh
|
2011-01-09 18:44:39 +01:00
|
|
|
################################################################################
|
|
|
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
2012-02-29 13:11:22 +01:00
|
|
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
2011-01-09 18:44:39 +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
|
2012-02-29 13:11:22 +01:00
|
|
|
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
2011-01-09 18:44:39 +01:00
|
|
|
# http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2010-07-21 18:55:47 +02:00
|
|
|
. config/options $1
|
2009-03-18 13:02:53 +01:00
|
|
|
|
2012-05-28 20:22:30 +02:00
|
|
|
# systemd fails to build with LTO support
|
|
|
|
|
strip_lto
|
|
|
|
|
strip_linker_plugin
|
|
|
|
|
|
|
|
|
|
# dont build parallel
|
|
|
|
|
MAKEFLAGS=-j1
|
|
|
|
|
|
2012-07-21 13:03:44 +02:00
|
|
|
# TODO: use cpp directly to avoid using 'gcc -E' in Makefiles
|
|
|
|
|
export CPP=${TARGET_PREFIX}cpp
|
|
|
|
|
|
2009-05-16 23:35:27 +02:00
|
|
|
cd $PKG_BUILD
|
2009-03-18 13:02:53 +01:00
|
|
|
./configure --host=$TARGET_NAME \
|
|
|
|
|
--build=$HOST_NAME \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--sysconfdir=/etc \
|
2012-01-25 23:40:33 +01:00
|
|
|
--libexecdir=/lib \
|
2009-03-18 13:02:53 +01:00
|
|
|
--localstatedir=/var \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-shared \
|
2012-05-28 20:22:30 +02:00
|
|
|
--disable-nls \
|
2009-08-03 00:06:30 +02:00
|
|
|
--disable-gtk-doc \
|
2010-04-02 00:17:07 +02:00
|
|
|
--disable-gtk-doc-html \
|
|
|
|
|
--disable-gtk-doc-pdf \
|
2012-05-28 20:22:30 +02:00
|
|
|
--disable-ima \
|
|
|
|
|
--disable-selinux \
|
|
|
|
|
--disable-xz \
|
|
|
|
|
--disable-tcpwrap \
|
|
|
|
|
--disable-pam \
|
|
|
|
|
--disable-acl \
|
2012-10-23 03:19:07 +02:00
|
|
|
--disable-xattr \
|
2012-08-25 14:37:24 +02:00
|
|
|
--disable-gcrypt \
|
2012-05-28 20:22:30 +02:00
|
|
|
--disable-audit \
|
|
|
|
|
--disable-libcryptsetup \
|
2012-08-25 14:37:24 +02:00
|
|
|
--disable-qrencode \
|
2012-10-23 03:19:07 +02:00
|
|
|
--disable-microhttpd \
|
2012-05-28 20:22:30 +02:00
|
|
|
--disable-binfmt \
|
|
|
|
|
--disable-vconsole \
|
|
|
|
|
--disable-readahead \
|
|
|
|
|
--disable-quotacheck \
|
|
|
|
|
--disable-randomseed \
|
2012-05-31 18:03:51 +02:00
|
|
|
--disable-logind \
|
2012-05-28 20:22:30 +02:00
|
|
|
--disable-hostnamed \
|
|
|
|
|
--disable-timedated \
|
|
|
|
|
--disable-localed \
|
|
|
|
|
--disable-coredump \
|
2011-05-20 17:15:41 +02:00
|
|
|
--enable-gudev \
|
|
|
|
|
--disable-keymap \
|
2012-05-28 20:22:30 +02:00
|
|
|
--disable-manpages \
|
|
|
|
|
--enable-split-usr \
|
2011-05-28 19:54:04 +02:00
|
|
|
--with-usb-ids-path=/usr/share/usb.ids \
|
2012-05-28 20:22:30 +02:00
|
|
|
--with-pci-ids-path=/usr/share/pci.ids \
|
|
|
|
|
--with-firmware-path="/storage/.config/firmware:/lib/firmware" \
|
|
|
|
|
--with-distro=other \
|
|
|
|
|
--with-sysvinit-path="" \
|
|
|
|
|
--with-sysvrcd-path="" \
|
|
|
|
|
--with-tty-gid="5" \
|
|
|
|
|
--with-rootprefix="/" \
|
|
|
|
|
--with-rootlibdir="/lib"
|
2009-03-18 13:02:53 +01:00
|
|
|
|
2012-05-28 20:22:30 +02:00
|
|
|
make V=1
|
|
|
|
|
|
2012-05-31 18:03:51 +02:00
|
|
|
$MAKEINSTALL
|