wok-next view flex/receipt @ rev 20439
glibc: try to fix it again
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Feb 22 16:14:21 2018 +0200 (2018-02-22) |
parents | 9a17d981d0f7 |
children | 835b3b8ce6ac |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="flex"
4 VERSION="2.6.4"
5 CATEGORY="development"
6 SHORT_DESC="Flex is a fast lexical analyser generator"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/westes/flex"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/flex.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
14 TARBALL_MD5="2882e3179748cc9f9c23ec593d6adc8d"
16 BUILD_DEPENDS="bison gettext help2man indent"
18 compile_rules() {
19 case "$ARCH" in
20 arm*)
21 export ac_cv_func_malloc_0_nonnull=yes
22 export ac_cv_func_realloc_0_nonnull=yes
23 esac
25 # Fix a problem introduced with glibc-2.26
26 sed -i "/math.h/a #include <malloc.h>" src/flexdef.h
28 ./configure $CONFIGURE_ARGS && make && make install || return 1
30 ln -s flex $install/usr/bin/lex
31 }
33 genpkg_rules() {
34 copy @std @dev
35 DEPENDS="bison"
36 TAGS="LFS"
37 }