wok-current view libmpeg2/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (2 months ago) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmpeg2"
4 VERSION="0.5.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="library for decoding MPEG-1 and MPEG-2 video streams"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://libmpeg2.sourceforge.net/"
11 WGET_URL="$WEB_SITE/files/$TARBALL"
12 TAGS="mpeg-1 mpeg-2 decoder"
14 DEPENDS="libsdl xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
15 xorg-libXdmcp xorg-libXext xorg-libXv"
16 BUILD_DEPENDS="glibc-base xorg-libXv-dev"
18 HOST_ARCH="i486 x86_64"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://libmpeg2.sourceforge.io/downloads.html 2>/dev/null | \
24 sed '/libmpeg2-/!d;s|.*libmpeg2-||;s|<.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src
31 ./configure --prefix=/usr --enable-shared --disable-static \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib/
43 }