wok-next view flex/receipt @ rev 19595
Up linux (4.9.4)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 21 17:27:31 2017 +0200 (2017-01-21) |
parents | 0c85455b2f3b |
children | 9a17d981d0f7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="flex"
4 VERSION="2.6.1"
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
15 DEPENDS="bison"
16 BUILD_DEPENDS="bison gettext help2man indent"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 patch -p1 -i $stuff/flex.patch
23 case "$ARCH" in
24 arm*)
25 export ac_cv_func_malloc_0_nonnull=yes
26 export ac_cv_func_realloc_0_nonnull=yes
27 esac
29 ./configure \
30 --docdir=/usr/share/doc/flex-$VERSION \
31 $CONFIGURE_ARGS &&
32 make && make install
34 ln -s flex $install/usr/bin/lex
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders bin lib include
41 }