wok-next annotate libmpeg2/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d5aab818505e
children
rev   line source
al@19818 1 # SliTaz package receipt v2.
jozee@2943 2
jozee@2943 3 PACKAGE="libmpeg2"
jozee@2943 4 VERSION="0.5.1"
jozee@2943 5 CATEGORY="multimedia"
al@19818 6 SHORT_DESC="Decoding MPEG-1 and MPEG-2 video streams"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
al@19818 9 WEB_SITE="http://libmpeg2.sourceforge.net/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/multimedia/libmpeg2.html"
al@19818 11
jozee@2943 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19818 13 WGET_URL="http://libmpeg2.sourceforge.net/files/$TARBALL" # no $SF_MIRROR
jozee@2943 14
al@21078 15 BUILD_DEPENDS="gfortran libx11-dev libice-dev libxext-dev \
al@21078 16 libsm-dev libxv-dev"
al@21020 17 SPLIT="$PACKAGE-dev"
pascal@14714 18
al@20577 19 compile_rules() {
al@19818 20 sed -i 's/static const/static/' libmpeg2/idct_mmx.c &&
al@19818 21
al@19818 22 ./configure \
al@19818 23 --enable-shared \
al@19818 24 --disable-static \
gokhlayeh@11573 25 $CONFIGURE_ARGS &&
al@20577 26 fix libtool &&
pascal@2964 27 make &&
al@20577 28 make install || return 1
al@19818 29
al@20577 30 cook_pick_docs README doc/libmpeg2.txt
jozee@2943 31 }
jozee@2943 32
al@20577 33 genpkg_rules() {
al@19818 34 case $PACKAGE in
al@19818 35 libmpeg2)
al@19818 36 copy @std
al@21078 37 DEPENDS="libice libsm libx11 libxext libxv"
al@19818 38 TAGS="mpeg-1 mpeg-2 decoder"
al@19818 39 ;;
al@19818 40 *-dev)
al@19818 41 copy @dev
al@19818 42 ;;
al@19818 43 esac
jozee@2943 44 }