wok-next view flex/receipt @ rev 20772

gnuchess: up (6.2.5)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 19:46:11 2018 +0300 (2018-06-06)
parents 90a5eb560fd6
children 360e5b4f243b
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 &&
29 fix libtool &&
30 make &&
31 make install || return 1
33 ln -s flex $install/usr/bin/lex
34 }
36 genpkg_rules() {
37 copy @std @dev
38 DEPENDS="bison"
39 TAGS="LFS"
40 }