wok-next annotate lua-yaml/receipt @ rev 21712

updated gsoap (2.8.96 -> 2.8.104)
author Hans-G?nter Theisgen
date Mon Jul 06 16:25:56 2020 +0100 (2020-07-06)
parents
children
rev   line source
al@21153 1 # SliTaz package receipt v2.
al@21153 2
al@21153 3 PACKAGE="lua-yaml"
al@21153 4 VERSION="1.1.2"
al@21153 5 CATEGORY="system-tools"
al@21153 6 SHORT_DESC="LibYAML binding for Lua"
al@21153 7 MAINTAINER="al.bobylev@gmail.com"
al@21153 8 LICENSE="MIT"
al@21153 9 WEB_SITE="http://yaml.luaforge.net/"
al@21153 10 REPOLOGY="lua:yaml"
al@21153 11
al@21153 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@21153 13 WGET_URL="https://github.com/lubyk/yaml/archive/REL-$VERSION.tar.gz"
al@21153 14 TARBALL_SHA1="e455ec834a0be4998b7be0d6b292fa169cbe7f89"
al@21153 15
al@21153 16 BUILD_DEPENDS="cmake yaml-dev lua51-dev lua52-dev lua53-dev"
al@21153 17 SPLIT="lua51-yaml:51 lua52-yaml:52 lua53-yaml:53"
al@21153 18
al@21153 19 COPY_lua51_yaml="@std"
al@21153 20 COPY_lua52_yaml="@std"
al@21153 21 COPY_lua53_yaml="@std"
al@21153 22
al@21153 23 DEPENDS_lua51_yaml="lua51 lua-lub"
al@21153 24 DEPENDS_lua52_yaml="lua52 lua-lub"
al@21153 25 DEPENDS_lua53_yaml="lua53 lua-lub"
al@21153 26
al@21153 27 CAT_std="nopack|"
al@21153 28 CAT_lua51_yaml="system-tools|for Lua 5.1"
al@21153 29 CAT_lua52_yaml="system-tools|for Lua 5.2"
al@21153 30 CAT_lua53_yaml="system-tools|for Lua 5.3"
al@21153 31
al@21153 32 compile_rules() {
al@21153 33 if [ -z "$SET" ]; then
al@21153 34 cook_pick_docs src/HISTORY src/LICENSE* src/README*
al@21153 35 return
al@21153 36 fi
al@21153 37
al@21153 38 # get variables from .pc file
al@21153 39 pc="lua$SET"
al@21153 40 cflags=$(pkg-config --cflags $pc)
al@21153 41 install_lmod=$(pkg-config --variable=INSTALL_LMOD $pc)
al@21153 42 install_cmod=$(pkg-config --variable=INSTALL_CMOD $pc)
al@21153 43
al@21153 44 mkdir build
al@21153 45 cd build
al@21153 46 cmake \
al@21153 47 -DCMAKE_C_FLAGS="$CFLAGS -Wall -DNDEBUG $cflags" \
al@21153 48 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
al@21153 49 -DCMAKE_SKIP_RPATH=TRUE \
al@21153 50 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
al@21153 51 -DLUA_INSTALL_DIR=$install_lmod \
al@21153 52 -DLUA_INSTALL_BINDIR=$install_cmod \
al@21153 53 .. &&
al@21153 54 make &&
al@21153 55 make install
al@21153 56 }