wok-current rev 13361

Add opus-tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 12 16:59:14 2012 +0200 (2012-09-12)
parents 588fa5ebe017
children 935383e00a80
files opus-tools/receipt syslinux/stuff/extra/md5sum.c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/opus-tools/receipt	Wed Sep 12 16:59:14 2012 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="opus-tools"
     1.7 +VERSION="0.1.5"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="Opus encoder, decoder and tiny tools."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://opus-codec.org/"
    1.13 +WGET_URL="http://downloads.xiph.org/releases/opus/$TARBALL"
    1.14 +
    1.15 +DEPENDS="libogg"
    1.16 +BUILD_DEPENDS="libogg libogg-dev opus pkgconfig"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	./configure --prefix=/usr \
    1.23 +		$CONFIGURE_ARGS && \
    1.24 +	make && make DESTDIR=$DESTDIR install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr
    1.31 +	cp -a $install/usr/bin $fs/usr
    1.32 +}
    1.33 +
     2.1 --- a/syslinux/stuff/extra/md5sum.c	Wed Sep 12 10:58:59 2012 +0200
     2.2 +++ b/syslinux/stuff/extra/md5sum.c	Wed Sep 12 16:59:14 2012 +0200
     2.3 @@ -318,12 +318,12 @@
     2.4  	argv++;
     2.5  	do {
     2.6  		FILE *fp;
     2.7 -		char eol, *line, buffer[256];
     2.8 +		char eol, *line, buffer[4096];
     2.9  		fp = fopen(*argv,"r");
    2.10  		if (fp == NULL)
    2.11  			fp = fopen(unrockridge(*argv),"r");
    2.12  
    2.13 -		while ((line = fgets(buffer,256,fp)) != NULL) {
    2.14 +		while ((line = fgets(buffer,sizeof(buffer),fp)) != NULL) {
    2.15  			uint8_t *hash_value;
    2.16  			char *filename_ptr, *status;
    2.17  			int len = strlen(line);