wok-next annotate libmediainfo/receipt @ rev 21545

updated cgames (2.2 -> 2.2b)
author Hans-G?nter Theisgen
date Sun Jun 21 17:35:44 2020 +0100 (2020-06-21)
parents 9a78fd347e59
children
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@21094 14 COOKOPTS="force-arch" # different .cmake
al@21094 15
al@21015 16 BUILD_DEPENDS="cmake libzen-dev zlib-dev tinyxml2-dev curl-dev"
al@21015 17 SPLIT="$PACKAGE-dev"
al@18634 18
al@20462 19 compile_rules() {
al@21015 20 rm -r Project/MS* Project/zlib Source/ThirdParty/tinyxml2
al@21015 21
al@21015 22 cd Project/CMake
al@21015 23 cmake \
al@21015 24 -DCMAKE_BUILD_TYPE=Release \
al@21015 25 -DCMAKE_INSTALL_PREFIX=/usr \
al@21015 26 -DCMAKE_VERBOSE_MAKEFILE=ON \
al@21015 27 -DBUILD_SHARED_LIBS=ON \
al@21015 28 &&
al@20534 29 make &&
al@21015 30 make install
al@18634 31 }
al@18634 32
al@20462 33 genpkg_rules() {
al@20462 34 case $PACKAGE in
al@20462 35 libmediainfo)
al@20534 36 copy @std
al@21015 37 DEPENDS="libcurl libzen tinyxml2 zlib"
al@20462 38 ;;
al@20462 39 *-dev)
al@20534 40 copy @dev
al@21015 41 DEPENDS="libmediainfo curl-dev libzen-dev zlib-dev"
al@20462 42 ;;
al@20462 43 esac
al@18634 44 }