mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
pngcrush: bump version
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
diff -up pngcrush-1.7.67-nolib/pngcrush.c.orig pngcrush-1.7.67-nolib/pngcrush.c
|
||||
--- pngcrush-1.7.67-nolib/pngcrush.c.orig 2013-10-15 00:27:02.442236928 -0600
|
||||
+++ pngcrush-1.7.67-nolib/pngcrush.c 2013-10-15 00:27:50.849084416 -0600
|
||||
@@ -6146,6 +6146,8 @@ int main(int argc, char *argv[])
|
||||
png_uint_32 zbuf_size;
|
||||
png_uint_32 required_window;
|
||||
int channels = 0;
|
||||
+ png_uint_32 rowbytes;
|
||||
+ png_uint_32 h = height;
|
||||
png_set_compression_strategy(write_ptr,
|
||||
z_strategy);
|
||||
png_set_compression_mem_level(write_ptr,
|
||||
@@ -6167,8 +6169,6 @@ int main(int argc, char *argv[])
|
||||
* a png_uint_32, by limiting the width and height used
|
||||
* to 15 bits.
|
||||
*/
|
||||
- png_uint_32 rowbytes;
|
||||
- png_uint_32 h = height;
|
||||
|
||||
rowbytes = png_get_rowbytes(read_ptr, read_info_ptr);
|
||||
#ifndef PNGCRUSH_H
|
||||
@@ -1,56 +0,0 @@
|
||||
SUMMARY="Pngcrush is an optimizer for PNG files"
|
||||
DESCRIPTION="
|
||||
Pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be \
|
||||
run from a commandline in an MSDOS window, or from a UNIX or LINUX \
|
||||
commandline. Its main purpose is to reduce the size of the PNG IDAT datastream \
|
||||
by trying various compression levels and PNG filter methods. It also can be \
|
||||
used to remove unwanted ancillary chunks, or to add certain chunks including \
|
||||
gAMA, tRNS, iCCP, and textual chunks.
|
||||
"
|
||||
HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
|
||||
SRC_URI="http://sourceforge.net/projects/pmt/files/pngcrush/old-versions/1.7/1.7.67/pngcrush-1.7.67-nolib.tar.xz/download"
|
||||
CHECKSUM_SHA256="1ed050059f38504ca9eeef5bfae88fe8c69905e7337e454254cf2fad20f8e83c"
|
||||
SRC_FILENAME="pngcrush-1.7.67-nolib.tar.xz"
|
||||
REVISION="1"
|
||||
LICENSE="LibPNG"
|
||||
COPYRIGHT="1998-2009 Glenn Randers-Pehrson
|
||||
2005 Greg Roelofs"
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
SOURCE_DIR="pngcrush-${portVersion}-nolib"
|
||||
|
||||
PROVIDES="
|
||||
pngcrush = $portVersion compat >= 1.7
|
||||
cmd:pngcrush = $portVersion compat >= 1.7
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libpng
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libpng
|
||||
devel:libz
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
PATCHES="pngcrush-1.7.67.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make LIBS="-L$libDir -lpng -lz"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
cp -af pngcrush $binDir
|
||||
}
|
||||
|
||||
@@ -9,14 +9,14 @@ gAMA, tRNS, iCCP, and textual chunks.
|
||||
"
|
||||
HOMEPAGE="http://pmt.sourceforge.net/pngcrush/"
|
||||
SRC_URI="http://sourceforge.net/projects/pmt/files/pngcrush/$portVersion/pngcrush-$portVersion-nolib.tar.xz"
|
||||
CHECKSUM_SHA256="ca1de3b7bddabd6118c5f1212f16ab71e508de554ffbcca322239995cb110410"
|
||||
CHECKSUM_SHA256="37a8d0097b5f1e8eedf99caf2db899b9496a4324bd21a4cfd8d19e69e5047163"
|
||||
REVISION="1"
|
||||
LICENSE="LibPNG"
|
||||
COPYRIGHT="1998-2009 Glenn Randers-Pehrson
|
||||
2005 Greg Roelofs"
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
#PATCHES="pngcrush-$portVersion.patchset"
|
||||
PATCHES="pngcrush-$portVersion.patch"
|
||||
|
||||
SOURCE_DIR="pngcrush-${portVersion}-nolib"
|
||||
|
||||
@@ -27,12 +27,12 @@ PROVIDES="
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libpng
|
||||
lib:libpng16
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libpng
|
||||
devel:libpng16
|
||||
devel:libz
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user