wok annotate libquicktime/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents 3abeffdae80b
children 7dd01dedad38
rev   line source
jozee@6830 1 # SliTaz package receipt.
jozee@6830 2
jozee@6830 3 PACKAGE="libquicktime"
slaxemulator@12423 4 VERSION="1.2.4"
jozee@6830 5 CATEGORY="multimedia"
jozee@6830 6 MAINTAINER="jozee@slitaz.org"
pascal@14716 7 LICENSE="LGPL2.1"
jozee@6830 8 SHORT_DESC="A library for reading and writing quicktime files."
jozee@6830 9 WEB_SITE="http://libquicktime.sourceforge.net/"
jozee@6830 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@6830 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@6830 12
slaxemulator@12423 13 DEPENDS="gtk+ ffmpeg alsa-lib xorg-libXv mesa xorg-libXaw x264"
slaxemulator@12423 14 BUILD_DEPENDS="gtk+-dev ffmpeg-dev alsa-lib-dev xorg-libXv-dev xorg-libXaw-dev x264-dev zlib-dev mesa-dev"
slaxemulator@12423 15
pascal@24114 16 current_version()
pascal@24114 17 {
pascal@24453 18 wget -O - https://sourceforge.net/projects/libquicktime/files/libquicktime/ 2>/dev/null | \
pascal@24114 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24453 20 sed '/libquicktime-/!d;/tar/!d;s|.*libquicktime-\(.*\).tar.*|\1|' | sort -Vr | sed q
pascal@24114 21 }
pascal@24114 22
jozee@6830 23 # Rules to configure and make the package.
slaxemulator@12423 24 compile_rules()
slaxemulator@12423 25 {
pascal@16653 26 patch -p0 < $stuff/ffmpeg.u
pascal@13796 27 ./configure --prefix=/usr \
pascal@13796 28 --enable-gpl \
pascal@13796 29 --with-ffmpeg \
pascal@13796 30 --with-x264 \
pascal@13796 31 --without-doxygen \
pascal@13796 32 $CONFIGURE_ARGS &&
pascal@24114 33 make -j 4 &&
pascal@13796 34 make DESTDIR=$DESTDIR install
jozee@6830 35 }
jozee@6830 36
jozee@6830 37 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@6830 38 genpkg_rules()
jozee@6830 39 {
jozee@6830 40 mkdir -p $fs/usr/lib/$PACKAGE
slaxemulator@12423 41 cp -a $install/usr/bin $fs/usr
slaxemulator@12423 42 cp -a $install/usr/lib/*so* $fs/usr/lib/
slaxemulator@12423 43 cp -a $install/usr/lib/$PACKAGE/*so* $fs/usr/lib/$PACKAGE
jozee@6830 44 }