2017-01-30 01:36:35 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/westes/flex
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Fast lexical analyser generator"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
2017-05-10 22:55:06 +02:00
|
|
|
TERMUX_PKG_VERSION=2.6.4
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-01-30 01:36:35 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/westes/flex/releases/download/v${TERMUX_PKG_VERSION}/flex-${TERMUX_PKG_VERSION}.tar.gz
|
2017-05-10 22:55:06 +02:00
|
|
|
TERMUX_PKG_SHA256=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
|
2016-01-28 21:19:50 +01:00
|
|
|
TERMUX_PKG_DEPENDS="m4"
|
2017-01-30 01:36:35 +01:00
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
2016-01-28 21:19:50 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="ac_cv_path_M4=$TERMUX_PREFIX/bin/m4"
|
2016-09-20 07:11:43 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="flex-dev"
|
|
|
|
TERMUX_PKG_REPLACES="flex-dev"
|
2017-01-30 01:36:35 +01:00
|
|
|
|
2017-11-02 02:22:05 +01:00
|
|
|
# Work around https://github.com/westes/flex/issues/241 when building
|
|
|
|
# under ubuntu 17.10:
|
|
|
|
TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS="CFLAGS=-D_GNU_SOURCE=1"
|
|
|
|
|
2017-01-30 01:36:35 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
mkdir -p $TERMUX_PKG_BUILDDIR/src/
|
|
|
|
cp $TERMUX_PKG_HOSTBUILD_DIR/src/stage1flex $TERMUX_PKG_BUILDDIR/src/stage1flex
|
|
|
|
touch -d "next hour" $TERMUX_PKG_BUILDDIR/src/stage1flex
|
|
|
|
}
|