Import zopfli-1.0.0.

Zopfli is a compression algorithm programmed in C to perform very good,
but slow, deflate or zlib compression.

This program can only compress, not decompress. Existing zlib or deflate
libraries can decompress the data.

ok rfreeman@
This commit is contained in:
bentley 2013-07-07 17:57:44 +00:00
parent c23b99d0eb
commit 0158a320be
5 changed files with 50 additions and 0 deletions

31
archivers/zopfli/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/07/07 17:57:44 bentley Exp $
COMMENT = deflate-compatible compression format
DISTNAME = zopfli-1.0.0
CATEGORIES = archivers
HOMEPAGE = https://code.google.com/p/zopfli/
# Apache 2.0
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m
MASTER_SITES = https://zopfli.googlecode.com/files/
EXTRACT_SUFX = .zip
MAKE_FLAGS = CC="${CC}" \
CFLAGS="${CFLAGS}"
NO_TEST = Yes
MAKE_FILE = makefile
ALL_TARGET = make
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/zopfli ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (zopfli-1.0.0.zip) = 4g1ztWYgKF5szltRDY5dpoNagZQOSM3zWmkJDmZvOts=
SIZE (zopfli-1.0.0.zip) = 57873

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-makefile,v 1.1.1.1 2013/07/07 17:57:44 bentley Exp $
--- makefile.orig Tue May 14 01:04:47 2013
+++ makefile Tue May 14 01:05:05 2013
@@ -1,5 +1,5 @@
make:
- gcc src/zopfli/*.c -O2 -W -Wall -Wextra -ansi -pedantic -lm -o zopfli
+ ${CC} ${CFLAGS} src/zopfli/*.c -W -Wall -Wextra -ansi -pedantic -lm -o zopfli
debug:
gcc src/zopfli/*.c -g3 -lm -o zopfli

View File

@ -0,0 +1,5 @@
Zopfli is a compression algorithm programmed in C to perform very good,
but slow, deflate or zlib compression.
This program can only compress, not decompress. Existing zlib or deflate
libraries can decompress the data.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/07/07 17:57:44 bentley Exp $
@bin bin/zopfli