wok-current view openjpeg2/receipt @ rev 25736
Add miss git-branch patch for cookutils
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 20 09:30:59 2025 +0000 (12 days ago) |
parents | eb01e2aee2ff |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="openjpeg2"
4 VERSION="2.5.2"
5 CATEGORY="development"
6 SHORT_DESC="Open-source C-Library for JPEG 2000 (ver. 2.x)."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://www.openjpeg.org/"
10 REPOLOGY="openjpeg"
12 SOURCE="openjpeg"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://github.com/uclouvain/$SOURCE/archive/v$VERSION.tar.gz"
16 HOST_ARCH="i486 x86_64"
18 DEPENDS="glibc-base tiff zlib"
19 BUILD_DEPENDS="cmake tiff-dev"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir _build &&
31 cd _build &&
32 cmake .. \
33 -D CMAKE_INSTALL_PREFIX=/usr &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_folders bin
42 cook_copy_files *.so*
43 }