wok-6.x annotate cmake/receipt @ rev 25013

updated openal and openal-dev (1.20.1 -> 1.22.0)
author Hans-G?nter Theisgen
date Tue May 17 07:38:28 2022 +0100 (2022-05-17)
parents 352993bf2f20
children fe199d9ab5d0
rev   line source
pankso@14 1 # SliTaz package receipt.
pankso@14 2
pankso@14 3 PACKAGE="cmake"
Hans-G?nter@24156 4 VERSION="3.22.0"
pankso@200 5 CATEGORY="development"
pankso@14 6 SHORT_DESC="Cross-platform Make."
pankso@14 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="BSD"
Hans-G?nter@22125 9 WEB_SITE="https://www.cmake.org/"
Hans-G?nter@22125 10
pankso@14 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22125 12 WGET_URL="https://www.cmake.org/files/v${VERSION%.*}/$TARBALL"
pankso@14 13
Hans-G?nter@22125 14 DEPENDS="gcc83-lib-base libidn openssl"
Hans-G?nter@24156 15 BUILD_DEPENDS="gcc83 gcc83-lib-base ncurses-dev openssl-dev"
pascal@15579 16
pascal@24436 17 # What is the latest version available today?
pascal@24436 18 current_version()
pascal@24436 19 {
pascal@24436 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24436 21 sed "/latest/d;/-rc/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\)-av.*\".*|\\1|;s|-|.|g" | sort -Vr | sed q
pascal@24436 22 }
pascal@24436 23
pankso@14 24 # Rules to configure and make the package.
pankso@14 25 compile_rules()
pankso@14 26 {
Hans-G?nter@22125 27 export CXX=g++-83
Hans-G?nter@22125 28
Hans-G?nter@22125 29 ./bootstrap \
Hans-G?nter@22125 30 --prefix=/usr \
Hans-G?nter@22125 31 --docdir=/share/doc/$PACKAGE \
slaxemulator@8674 32 --mandir=/share/man &&
pascal@1511 33 make &&
slaxemulator@8674 34 make DESTDIR=$DESTDIR install
pankso@14 35 }
pankso@14 36
pankso@14 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@14 38 genpkg_rules()
pankso@14 39 {
pascal@15579 40 cp -a $install/usr $fs
pankso@14 41 rm -rf $fs/usr/share/man
pankso@14 42 }