mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
flex: build for host, move to toolchain, build with toolchain
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
b2b8c52e0b
commit
4d0fac661e
@ -22,18 +22,22 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
setup_toolchain host
|
||||
|
||||
cd $PKG_BUILD
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes \
|
||||
./configure --host=$TARGET_NAME \
|
||||
./configure --host=$HOST_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--prefix=$ROOT/$TOOLCHAIN \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-rpath \
|
||||
--with-gnu-ld
|
||||
|
||||
make
|
||||
make install
|
||||
|
||||
$MAKEINSTALL
|
||||
cat > $ROOT/$TOOLCHAIN/bin/lex << "EOF"
|
||||
#!/bin/sh
|
||||
exec flex -l "$@"
|
||||
EOF
|
||||
chmod -v 755 $ROOT/$TOOLCHAIN/bin/lex
|
@ -24,13 +24,13 @@ PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://flex.sourceforge.net/"
|
||||
PKG_URL="$SOURCEFORGE_SRC/flex/flex/$PKG_NAME-$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_URL="http://prdownloads.sourceforge.net/flex/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain"
|
||||
PKG_BUILD_DEPENDS="ccache"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="devel"
|
||||
PKG_SECTION="toolchain/devel"
|
||||
PKG_SHORTDESC="flex: Fast lexical analyzer generator"
|
||||
PKG_LONGDESC="flex is a tool for generating programs that perform pattern-matching on text."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="yes"
|
||||
PKG_AUTORECONF="no"
|
@ -26,7 +26,7 @@ PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.openelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="make sed pkg-config automake autoconf intltool gcc-final cmake jam yasm nasm"
|
||||
PKG_BUILD_DEPENDS="make sed pkg-config automake autoconf intltool gcc-final flex cmake jam yasm nasm"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="toolchain/devel"
|
||||
PKG_SHORTDESC="toolchain: OpenELEC.tv' toolchain"
|
||||
|
Loading…
x
Reference in New Issue
Block a user