mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add gzip 1.4
This commit is contained in:
21
app-arch/gzip/gzip-1.4.bep
Normal file
21
app-arch/gzip/gzip-1.4.bep
Normal file
@@ -0,0 +1,21 @@
|
||||
DESCRIPTION="GNU zip"
|
||||
HOMEPAGE="http://www.gzip.org/"
|
||||
SRC_URI="ftp://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz"
|
||||
CHECKSUM_MD5="e381b8506210c794278f5527cba0e765"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd gzip-1.4
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd gzip-1.4
|
||||
make install
|
||||
}
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1999, 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc.
|
||||
1992-1993 Jean-loup Gailly"
|
||||
|
||||
18
app-arch/gzip/patches/gzip-1.4.patch
Normal file
18
app-arch/gzip/patches/gzip-1.4.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- ./gzip-1.4/inflate.c 2010-01-20 14:15:12.017039360 +0100
|
||||
+++ ./gzip-1.4/inflate.c 2011-12-03 00:03:37.421003264 +0100
|
||||
@@ -588,6 +588,7 @@
|
||||
/* do the copy */
|
||||
do {
|
||||
n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e);
|
||||
+ {
|
||||
#if !defined(NOMEMCPY) && !defined(DEBUG)
|
||||
unsigned int delta = w > d ? w - d : d - w;
|
||||
if (delta >= e)
|
||||
@@ -602,6 +603,7 @@
|
||||
slide[w++] = slide[d++];
|
||||
Tracevv((stderr, "%c", slide[w-1]));
|
||||
} while (--e);
|
||||
+ }
|
||||
if (w == WSIZE)
|
||||
{
|
||||
flush_output(w);
|
||||
Reference in New Issue
Block a user