wok-6.x annotate physfs/receipt @ rev 24767

Up zbar (0.23.90)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 10:01:29 2022 +0000 (2022-03-19)
parents 1c3d6bf88894
children
rev   line source
slaxemulator@6549 1 # SliTaz package receipt.
slaxemulator@6549 2
slaxemulator@6549 3 PACKAGE="physfs"
Hans-G?nter@23433 4 VERSION="3.0.2"
slaxemulator@6549 5 CATEGORY="development"
Hans-G?nter@21681 6 SHORT_DESC="Abstraction layer for filesystem and archive access."
slaxemulator@6549 7 MAINTAINER="devl547@gmail.com"
pascal@15375 8 LICENSE="LGPL"
Hans-G?nter@21681 9 WEB_SITE="https://icculus.org/physfs/"
pascal@15112 10
Hans-G?nter@21681 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21681 12 WGET_URL="${WEB_SITE}downloads/$TARBALL"
Hans-G?nter@21681 13
Hans-G?nter@21681 14 BUILD_DEPENDS="cmake"
slaxemulator@6549 15
pascal@24427 16 # What is the latest version available today?
pascal@24427 17 current_version()
pascal@24427 18 {
pascal@24427 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24427 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24427 21 }
pascal@24427 22
slaxemulator@6549 23 # Rules to configure and make the package.
slaxemulator@6549 24 compile_rules()
slaxemulator@6549 25 {
pascal@15112 26 export CFLAGS="-Wno-error=unused-but-set-variable"
Hans-G?nter@21681 27
slaxemulator@6549 28 cmake $src &&
Hans-G?nter@21681 29 cmake . \
Hans-G?nter@21681 30 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21681 31 -DPHYSFS_BUILD_SHARED=ON \
Hans-G?nter@21681 32 -DPHYSFS_BUILD_TEST=OFF &&
Hans-G?nter@23433 33 make DESTDIR=$DESTDIR install
slaxemulator@6549 34 }
slaxemulator@6549 35
slaxemulator@6549 36 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6549 37 genpkg_rules()
slaxemulator@6549 38 {
slaxemulator@6549 39 mkdir -p $fs/usr/lib
Hans-G?nter@23433 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@6549 41 }