wok-next annotate flex/receipt @ rev 21040
mariadb 10.3.10 (again)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 09 09:48:29 2018 +0200 (2018-11-09) |
parents | 360e5b4f243b |
children | 11ce8ed30848 |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
pankso@34 | 2 |
pankso@34 | 3 PACKAGE="flex" |
al@19745 | 4 VERSION="2.6.4" |
pankso@204 | 5 CATEGORY="development" |
al@21020 | 6 SHORT_DESC="Fast lexical analyser generator" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15022 | 8 LICENSE="BSD" |
al@19571 | 9 WEB_SITE="https://github.com/westes/flex" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/flex.html" |
pankso@34 | 11 |
al@19745 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19571 | 13 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL" |
al@20436 | 14 TARBALL_MD5="2882e3179748cc9f9c23ec593d6adc8d" |
al@19571 | 15 |
al@21020 | 16 BUILD_DEPENDS="bison gettext-dev help2man indent" |
pankso@10042 | 17 |
al@21020 | 18 SPLIT="libflex $PACKAGE" |
al@20945 | 19 |
al@20436 | 20 compile_rules() { |
al@20436 | 21 # Fix a problem introduced with glibc-2.26 |
al@20436 | 22 sed -i "/math.h/a #include <malloc.h>" src/flexdef.h |
al@20436 | 23 |
al@20569 | 24 ./configure $CONFIGURE_ARGS && |
al@20569 | 25 fix libtool && |
al@20569 | 26 make && |
al@20569 | 27 make install || return 1 |
al@19571 | 28 |
al@19571 | 29 ln -s flex $install/usr/bin/lex |
pankso@34 | 30 } |
pankso@34 | 31 |
al@20436 | 32 genpkg_rules() { |
al@20945 | 33 case $PACKAGE in |
al@20945 | 34 libflex) |
al@20945 | 35 copy *.so* |
al@20945 | 36 ;; |
al@20945 | 37 *) |
al@20945 | 38 copy @std @dev @rm |
al@20945 | 39 DEPENDS="libflex bison" |
al@20945 | 40 TAGS="LFS" |
al@20945 | 41 ;; |
al@20945 | 42 esac |
pankso@34 | 43 } |