wok diff libpng+apng/receipt @ rev 23962

Add caprice32 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 01 16:36:55 2020 +0000 (2020-10-01)
parents 4fea4d70e3c3
children 65d7d867e0c1
line diff
     1.1 --- a/libpng+apng/receipt	Tue Apr 23 10:45:03 2019 +0200
     1.2 +++ b/libpng+apng/receipt	Thu Oct 01 16:36:55 2020 +0000
     1.3 @@ -25,8 +25,16 @@
     1.4  compile_rules()
     1.5  {
     1.6  	[ -s "$SRC/$PATCH" ] || wget -O "$SRC/$PATCH" $PATCH_URL
     1.7 -	gzip -cd $SRC/$PATCH | patch -p0
     1.8 +	#gzip -cd $SRC/$PATCH | patch -p0
     1.9  
    1.10 +	# try to fix apng patch...
    1.11 +	gzip -cd $SRC/$PATCH > patch.apng
    1.12 +	for i in $(seq 267 -1 248); do
    1.13 +		sed -i "s|^\+PNG_EXPORT($i,|+PNG_EXPORT($(($i+2)),|" patch.apng
    1.14 +	done
    1.15 +	patch -p0 < patch.apng
    1.16 +	
    1.17 +	LIBS=-lrt \
    1.18  	./configure			\
    1.19  		--prefix=/usr		\
    1.20  		--disable-static	\