wok annotate flex/receipt @ rev 21080
updated jclic (0.2.1.0 -> 0.3.2.9)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 15 13:14:16 2019 +0100 (2019-03-15) |
parents | 0c85455b2f3b |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pankso@34 | 1 # SliTaz package receipt. |
pankso@34 | 2 |
pankso@34 | 3 PACKAGE="flex" |
Hans-G?nter@20925 | 4 VERSION="2.6.4" |
pankso@204 | 5 CATEGORY="development" |
pankso@34 | 6 SHORT_DESC="Flex is a fast lexical analyser generator." |
pankso@34 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="BSD" |
Hans-G?nter@20925 | 9 WEB_SITE="https://github.com/westes/flex" |
Hans-G?nter@20925 | 10 |
pankso@34 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20925 | 12 WGET_URL="https://github.com/westes/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
pankso@34 | 13 |
pankso@10042 | 14 DEPENDS="bison" |
pankso@10042 | 15 BUILD_DEPENDS="bison" |
Hans-G?nter@20925 | 16 HOST_ARCH="i486 arm" |
pankso@10042 | 17 |
pankso@34 | 18 # Rules to configure and make the package. |
pankso@34 | 19 compile_rules() |
pankso@34 | 20 { |
pascal@19088 | 21 case "$ARCH" in |
pascal@19088 | 22 arm*) |
pascal@19088 | 23 export ac_cv_func_malloc_0_nonnull=yes |
pascal@19089 | 24 export ac_cv_func_realloc_0_nonnull=yes |
pascal@19088 | 25 esac |
Hans-G?nter@20925 | 26 |
pankso@10041 | 27 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@20925 | 28 make -j 1 && |
Hans-G?nter@20925 | 29 make install |
pankso@34 | 30 } |
pankso@34 | 31 |
pankso@34 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@34 | 33 genpkg_rules() |
pankso@34 | 34 { |
pankso@2050 | 35 mkdir -p $fs/usr |
pankso@13204 | 36 cp -a $install/usr/bin $fs/usr |
pascal@67 | 37 ln -s flex $fs/usr/bin/lex |
pankso@13204 | 38 cp -a $install/usr/lib $fs/usr |
pankso@13204 | 39 cp -a $install/usr/include $fs/usr |
Hans-G?nter@20925 | 40 |
Hans-G?nter@20925 | 41 # locales |
Hans-G?nter@20925 | 42 mkdir -p $fs/usr/share/locale |
Hans-G?nter@20925 | 43 LOCALES="da de es fr pt_BR ro ro zh_CN zh_TW" |
Hans-G?nter@20925 | 44 for locale in $LOCALES |
Hans-G?nter@20925 | 45 do |
Hans-G?nter@20925 | 46 cp -a $install/usr/share/locale/$locale $fs/usr/share/locale |
Hans-G?nter@20925 | 47 done |
pankso@34 | 48 } |