wok-next view flex/receipt @ rev 20204
libjreen: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 03 22:50:48 2017 +0100 (2017-11-03) |
parents | 8da249b2c8d7 |
children | 90a5eb560fd6 |
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
15 BUILD_DEPENDS="bison gettext help2man indent"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 case "$ARCH" in
21 arm*)
22 export ac_cv_func_malloc_0_nonnull=yes
23 export ac_cv_func_realloc_0_nonnull=yes
24 esac
26 ./configure \
27 --docdir=/usr/share/doc/flex-$VERSION \
28 $CONFIGURE_ARGS &&
29 make && make install
31 ln -s flex $install/usr/bin/lex
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 copy @std @dev
38 DEPENDS="bison"
39 }