wok-next annotate libmediainfo/receipt @ rev 21015

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 15 14:02:33 2018 +0300 (2018-10-15)
parents 757d032c55c7
children e19ff076dc63
rev   line source
al@20462 1 # SliTaz package receipt v2.
al@18634 2
al@18634 3 PACKAGE="libmediainfo"
al@21015 4 VERSION="18.08.1"
al@18634 5 CATEGORY="libs"
al@18634 6 SHORT_DESC="Library reading metadata from media files"
al@18634 7 MAINTAINER="al.bobylev@gmail.com"
al@21015 8 LICENSE="BSD"
al@18634 9 WEB_SITE="http://mediaarea.net/"
al@20462 10
al@18634 11 TARBALL="${PACKAGE}_$VERSION.tar.xz"
al@18634 12 WGET_URL="${WEB_SITE}download/source/$PACKAGE/$VERSION/$TARBALL"
al@18634 13
al@21015 14 BUILD_DEPENDS="cmake libzen-dev zlib-dev tinyxml2-dev curl-dev"
al@21015 15 SPLIT="$PACKAGE-dev"
al@18634 16
al@20462 17 compile_rules() {
al@21015 18 rm -r Project/MS* Project/zlib Source/ThirdParty/tinyxml2
al@21015 19
al@21015 20 cd Project/CMake
al@21015 21 cmake \
al@21015 22 -DCMAKE_BUILD_TYPE=Release \
al@21015 23 -DCMAKE_INSTALL_PREFIX=/usr \
al@21015 24 -DCMAKE_VERBOSE_MAKEFILE=ON \
al@21015 25 -DBUILD_SHARED_LIBS=ON \
al@21015 26 &&
al@20534 27 make &&
al@21015 28 make install
al@18634 29 }
al@18634 30
al@20462 31 genpkg_rules() {
al@20462 32 case $PACKAGE in
al@20462 33 libmediainfo)
al@20534 34 copy @std
al@21015 35 DEPENDS="libcurl libzen tinyxml2 zlib"
al@20462 36 ;;
al@20462 37 *-dev)
al@20534 38 copy @dev
al@21015 39 DEPENDS="libmediainfo curl-dev libzen-dev zlib-dev"
al@20462 40 ;;
al@20462 41 esac
al@18634 42 }