wok-current view jasper/receipt @ rev 25024

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 20:10:17 2022 +0000 (2022-05-18)
parents f8a963794d31
children
line source
1 # SliTaz package receipt.
3 PACKAGE="jasper"
4 VERSION="3.0.2"
5 CATEGORY="graphics"
6 TAGS="jpeg jpg photo"
7 SHORT_DESC="Implementation of JPEG-2000 codec."
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://www.ece.uvic.ca/~frodo/jasper/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/mdadams/$PACKAGE/archive/version-$VERSION.tar.gz"
15 DEPENDS="freeglut jpeg libglu-mesa util-linux-uuid xorg-libXi xorg-libXmu"
16 BUILD_DEPENDS="cmake jpeg-dev xorg-libXi-dev xorg-libXmu-dev"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tags.version.*tar/!d;s|.*/version-\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir _build &&
30 cd _build &&
31 cmake .. \
32 -G "Unix Makefiles" \
33 -D CMAKE_INSTALL_PREFIX=/usr \
34 -D JAS_ENABLE_SHARED=yes &&
35 make &&
36 make install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_folders bin
43 cook_copy_files *.so*
44 }