wok-next diff xvidcore/receipt @ rev 20137

mariadb: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 31 21:42:04 2017 +0100 (2017-10-31)
parents 410afe495014
children c4e53a39395a
line diff
     1.1 --- a/xvidcore/receipt	Sun Mar 23 17:16:22 2014 +0100
     1.2 +++ b/xvidcore/receipt	Tue Oct 31 21:42:04 2017 +0100
     1.3 @@ -1,37 +1,44 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="xvidcore"
     1.8 -VERSION="1.3.2"
     1.9 +VERSION="1.3.3"
    1.10  CATEGORY="multimedia"
    1.11  SHORT_DESC="XviD, a high performance/quality MPEG-4 video de-/encoding solution"
    1.12  MAINTAINER="devl547@gmail.com"
    1.13  LICENSE="GPL2"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 -WEB_SITE="http://www.xvid.org"
    1.16 -WGET_URL="http://downloads.xvid.org/downloads/$TARBALL"
    1.17 +WEB_SITE="http://www.xvid.org/"
    1.18  HOST_ARCH="i486 arm"
    1.19  
    1.20 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.21 +WGET_URL="http://downloads.xvid.org/downloads/$TARBALL"
    1.22 +
    1.23  BUILD_DEPENDS="yasm"
    1.24 +SPLIT="xvidcore-dev"
    1.25  
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29 -	cd $src/build/generic
    1.30 -	./configure \
    1.31 -		--prefix=/usr \
    1.32 -		--mandir=/usr/share/man \
    1.33 -		$CONFIGURE_ARGS &&
    1.34 +	# http://www.linuxfromscratch.org/blfs/view/stable/multimedia/xvid.html
    1.35 +	cd build/generic &&
    1.36 +	sed -i 's/^LN_S=@LN_S@/& -f -v/' platform.inc.in &&
    1.37 +	./configure $CONFIGURE_ARGS &&
    1.38  	make &&
    1.39 -	make DESTDIR=$DESTDIR install
    1.40 +	sed -i '/libdir.*STATIC_LIB/ s/^/#/' Makefile &&
    1.41 +	make DESTDIR=$install install &&
    1.42 +
    1.43 +	find $install/usr/lib/ -name 'libxvidcore.so.*' -type f -exec chmod -v 755 '{}' \; &&
    1.44 +
    1.45 +	mkdir -p $install/usr/share/doc/xvidcore-$VERSION/examples &&
    1.46 +	install -v -m644 ../../doc/* $install/usr/share/doc/xvidcore-$VERSION &&
    1.47 +	install -v -m644 ../../examples/* \
    1.48 +		$install/usr/share/doc/xvidcore-$VERSION/examples
    1.49  }
    1.50  
    1.51  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.52  genpkg_rules()
    1.53  {
    1.54 -	mkdir -p $fs/usr/lib
    1.55 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.56 -	cd $fs/usr/lib
    1.57 -	_mylib=$(basename libxvidcore.so.*)
    1.58 -	ln -sf ${_mylib} libxvidcore.so.4
    1.59 -	ln -sf ${_mylib} libxvidcore.so
    1.60 +	case $PACKAGE in
    1.61 +		xvidcore) copy @std;;
    1.62 +		*-dev)    copy *.h;;
    1.63 +	esac
    1.64  }