wok annotate openexr/receipt @ rev 25464

httpfs2-fuse: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 30 09:07:42 2022 +0000 (2022-09-30)
parents 848e2021d813
children 7364ffdaaa60
rev   line source
slaxemulator@6556 1 # SliTaz package receipt.
slaxemulator@6556 2
slaxemulator@6556 3 PACKAGE="openexr"
pascal@23973 4 VERSION="2.5.3"
slaxemulator@6556 5 CATEGORY="x-window"
Hans-G?nter@22379 6 SHORT_DESC="Openexr library for EXR images."
slaxemulator@6556 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15601 8 LICENSE="BSD"
Hans-G?nter@22379 9 WEB_SITE="https://www.openexr.com/"
Hans-G?nter@22379 10
slaxemulator@6556 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23264 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION/$TARBALL"
slaxemulator@6556 13
Hans-G?nter@22380 14 DEPENDS="gcc83-lib-base ilmbase zlib"
Hans-G?nter@23264 15 BUILD_DEPENDS="cmake gcc83 ilmbase-dev zlib-dev"
pascal@15601 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
slaxemulator@6556 23 # Rules to configure and make the package.
slaxemulator@6556 24 compile_rules()
slaxemulator@6556 25 {
Hans-G?nter@23264 26 export CC=gcc-83
Hans-G?nter@23264 27 export CXX=g++-83
Hans-G?nter@23264 28
Hans-G?nter@23264 29 mkdir build &&
Hans-G?nter@23264 30 cd build &&
Hans-G?nter@23264 31 cmake .. \
Hans-G?nter@23264 32 -DCMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@22379 33 make &&
Hans-G?nter@22379 34 make install
slaxemulator@6556 35 }
slaxemulator@6556 36
slaxemulator@6556 37 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6556 38 genpkg_rules()
slaxemulator@6556 39 {
slaxemulator@6556 40 mkdir -p $fs/usr/lib
Hans-G?nter@22379 41
Hans-G?nter@22379 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22379 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@6556 44 }