wok-current view openjpeg/receipt @ rev 24973
Up zsh (5.8.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 01 15:03:44 2022 +0000 (2022-05-01) |
parents | 241fb98cab1c |
children | ecff687ff0fc |
line source
1 # SliTaz package receipt.
3 PACKAGE="openjpeg"
4 VERSION="1.5.0"
5 CATEGORY="development"
6 SHORT_DESC="An open source JPEG 2000 codec"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.openjpeg.org/"
11 WGET_URL="https://github.com/uclouvain/openjpeg/archive/refs/tags/version.1.5.tar.gz"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="zlib-dev tiff-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/uclouvain/openjpeg/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # make sure we use system libs
28 [ -d thirtparty ] && rm -rf thirtparty
29 ./configure --enable-lcms2=no \
30 --enable-png=no \
31 --enable-lcms1=no \
32 --disable-static \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }