wok view openjpeg/receipt @ rev 25775

luajit, wayland, weston: fix current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 15 16:55:07 2024 +0000 (2 months ago)
parents 7364ffdaaa60
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openjpeg"
4 VERSION="1.5.2"
5 CATEGORY="development"
6 SHORT_DESC="An open source JPEG 2000 codec."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/uclouvain/openjpeg"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/uclouvain/$PACKAGE/archive/refs/tags/version.$VERSION.tar.gz"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="autoconf automake jpeg-dev libtool tiff-dev zlib-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/uclouvain/openjpeg/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # make sure we use system libraries
30 [ -d thirdparty ] && rm -rf thirdparty
32 ./bootstrap.sh &&
33 ./configure \
34 --enable-lcms1=no \
35 --enable-lcms2=no \
36 --enable-png=no \
37 --disable-static \
38 $CONFIGURE_ARGS &&
39 make &&
40 make install DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cook_copy_files *.so*
47 }