wok-next annotate openjpeg2/receipt @ rev 21017

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