wok-next view flex/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 360e5b4f243b
children 11ce8ed30848
line source
1 # SliTaz package receipt v2.
3 PACKAGE="flex"
4 VERSION="2.6.4"
5 CATEGORY="development"
6 SHORT_DESC="Fast lexical analyser generator"
7 MAINTAINER="devel@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-dev help2man indent"
18 SPLIT="libflex $PACKAGE"
20 compile_rules() {
21 # Fix a problem introduced with glibc-2.26
22 sed -i "/math.h/a #include <malloc.h>" src/flexdef.h
24 ./configure $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make install || return 1
29 ln -s flex $install/usr/bin/lex
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 libflex)
35 copy *.so*
36 ;;
37 *)
38 copy @std @dev @rm
39 DEPENDS="libflex bison"
40 TAGS="LFS"
41 ;;
42 esac
43 }