wok annotate jasper/receipt @ rev 24100

Up gzip (1.11), lrzip (0.641), lziprecover (1.22)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 16 13:07:33 2021 +0000 (2021-09-16)
parents 5ea0ce1cecc0
children 73f2eb72a8fe
rev   line source
jozee@3038 1 # SliTaz package receipt.
jozee@3038 2
jozee@3038 3 PACKAGE="jasper"
Hans-G?nter@21073 4 VERSION="2.0.16"
jozee@3038 5 CATEGORY="graphics"
Hans-G?nter@21073 6 TAGS="jpeg jpg photo"
Hans-G?nter@21073 7 SHORT_DESC="Implementation of JPEG-2000 codec."
jozee@3038 8 MAINTAINER="jozee@slitaz.org"
pascal@15601 9 LICENSE="MIT"
jozee@3038 10 WEB_SITE="http://www.ece.uvic.ca/~mdadams/$PACKAGE/"
Hans-G?nter@21073 11
Hans-G?nter@21073 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21073 13 WGET_URL="https://github.com/mdadams/$PACKAGE/archive/version-$VERSION.tar.gz"
Hans-G?nter@21073 14
Hans-G?nter@21073 15 DEPENDS="freeglut jpeg libglu-mesa util-linux-uuid xorg-libXi xorg-libXmu"
Hans-G?nter@21074 16 BUILD_DEPENDS="cmake jpeg-dev xorg-libXi-dev xorg-libXmu-dev"
pascal@19096 17 HOST_ARCH="i486 arm"
jozee@3038 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24100 22 sed '/tags.version.*tar/!d;s|.*/version-\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
jozee@3038 25 # Rules to configure and make the package.
jozee@3038 26 compile_rules()
jozee@3038 27 {
Hans-G?nter@21073 28 mkdir builddir
Hans-G?nter@21073 29 cmake . \
Hans-G?nter@21073 30 -G "Unix Makefiles" \
Hans-G?nter@21073 31 -Bbuilddir \
Hans-G?nter@21073 32 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@21073 33 -DJAS_ENABLE_SHARED=yes &&
Hans-G?nter@21073 34 cd builddir
Hans-G?nter@21073 35 make -j 1 &&
pascal@15601 36 make DESTDIR=$DESTDIR install
jozee@3038 37
jozee@3038 38 }
jozee@3038 39
jozee@3038 40 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@3038 41 genpkg_rules()
jozee@3038 42 {
Hans-G?nter@21073 43 mkdir -p $fs/usr/lib
Hans-G?nter@21073 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21073 45 cp -a $install/usr/lib/*so* $fs/usr/lib
jozee@3038 46 }