wok-next view openjpeg2/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
line source
1 # SliTaz package receipt v2.
3 PACKAGE="openjpeg2"
4 VERSION="2.3.0"
5 CATEGORY="graphics"
6 SHORT_DESC="Open-source C-Library for JPEG 2000 (v. 2.x)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="http://www.openjpeg.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/openjpeg2.html"
11 REPOLOGY="openjpeg"
13 TARBALL="openjpeg-$VERSION.tar.gz"
14 WGET_URL="https://github.com/uclouvain/openjpeg/archive/v$VERSION.tar.gz"
16 BUILD_DEPENDS="cmake zlib-dev libpng16-dev tiff-dev lcms2-dev"
17 SPLIT="$PACKAGE-tools $PACKAGE-dev"
19 compile_rules() {
20 mkdir build
21 cd build
22 cmake \
23 -DCMAKE_BUILD_TYPE=Release \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 .. &&
26 make &&
27 make install || return 1
29 cook_pick_manpages $src/doc/man/*/*
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 openjpeg2)
35 copy *.so*
36 ;;
37 openjpeg2-tools)
38 copy bin/
39 CAT="graphics|applications"
40 DEPENDS="openjpeg2 lcms2 libpng16 tiff"
41 ;;
42 *-dev)
43 copy @dev
44 ;;
45 esac
46 }