wok-next view flex/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 835b3b8ce6ac |
children | d5aab818505e |
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 SPLIT="libflex flex"
20 compile_rules() {
21 case "$ARCH" in
22 arm*)
23 export ac_cv_func_malloc_0_nonnull=yes
24 export ac_cv_func_realloc_0_nonnull=yes
25 esac
27 # Fix a problem introduced with glibc-2.26
28 sed -i "/math.h/a #include <malloc.h>" src/flexdef.h
30 ./configure $CONFIGURE_ARGS &&
31 fix libtool &&
32 make &&
33 make install || return 1
35 ln -s flex $install/usr/bin/lex
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 libflex)
41 copy *.so*
42 ;;
43 *)
44 copy @std @dev @rm
45 DEPENDS="libflex bison"
46 TAGS="LFS"
47 ;;
48 esac
49 }