update to zopfli-1.0.3 (adds zopflipng)

This commit is contained in:
sthen 2019-11-28 14:36:32 +00:00
parent c4fac66515
commit d3dc2aca50
4 changed files with 22 additions and 28 deletions

View File

@ -1,10 +1,13 @@
# $OpenBSD: Makefile,v 1.6 2019/07/12 20:43:30 sthen Exp $
# $OpenBSD: Makefile,v 1.7 2019/11/28 14:36:32 sthen Exp $
SHARED_LIBS += zopfli 0.0
SHARED_LIBS += zopflipng 0.0
COMMENT = deflate-compatible compression format
GH_ACCOUNT = google
GH_PROJECT = zopfli
GH_TAGNAME = zopfli-1.0.2
GH_TAGNAME = zopfli-1.0.3
DISTNAME = ${GH_TAGNAME}
CATEGORIES = archivers
@ -12,15 +15,11 @@ CATEGORIES = archivers
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB += c m
MAKE_FLAGS = CC="${CC}" CXX="${CXX}" \
COPTFLAGS="${CFLAGS}" CXXOPTFLAGS="${CXXFLAGS}"
WANTLIB += ${COMPILER_LIBCXX} c m
MODULES = devel/cmake
COMPILER = base-clang ports-gcc base-gcc
CONFIGURE_ARGS = -DBUILD_SHARED_LIBS=yes
NO_TEST = Yes
ALL_TARGET =
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/zopfli ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (zopfli-1.0.2.tar.gz) = SlcDB8NxctiU7E75O26OOqzEAeeMvMUc+FshLbw3mlU=
SIZE (zopfli-1.0.2.tar.gz) = 136035
SHA256 (zopfli-1.0.3.tar.gz) = 6VWnc59xrzfvM0nE+hQcZI6HdbzrIZW+B+hvjmOIFL0=
SIZE (zopfli-1.0.3.tar.gz) = 195227

View File

@ -1,15 +0,0 @@
$OpenBSD: patch-Makefile,v 1.2 2018/06/09 18:38:18 bket Exp $
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -1,8 +1,8 @@
CC = gcc
CXX = g++
-CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm -O2 -Wno-unused-function
-CXXFLAGS = -W -Wall -Wextra -ansi -pedantic -O2
+CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm $(COPTFLAGS) -Wno-unused-function
+CXXFLAGS = -W -Wall -Wextra -ansi -pedantic $(COPTFLAGS)
ZOPFLILIB_SRC = src/zopfli/blocksplitter.c src/zopfli/cache.c\
src/zopfli/deflate.c src/zopfli/gzip_container.c\

View File

@ -1,2 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/07/07 17:57:44 bentley Exp $
@comment $OpenBSD: PLIST,v 1.2 2019/11/28 14:36:32 sthen Exp $
@bin bin/zopfli
@bin bin/zopflipng
include/zopfli.h
include/zopflipng_lib.h
lib/cmake/
lib/cmake/Zopfli/
lib/cmake/Zopfli/ZopfliConfig${MODCMAKE_BUILD_SUFFIX}
lib/cmake/Zopfli/ZopfliConfig.cmake
lib/cmake/Zopfli/ZopfliConfigVersion.cmake
@lib lib/libzopfli.so.${LIBzopfli_VERSION}
@lib lib/libzopflipng.so.${LIBzopflipng_VERSION}