Index: graphics/Makefile =================================================================== --- graphics/Makefile +++ graphics/Makefile @@ -330,6 +330,7 @@ SUBDIR += gtkam SUBDIR += gts SUBDIR += guilib + SUBDIR += guetzli SUBDIR += gwenview-kde4 SUBDIR += gx SUBDIR += hdr_tools Index: graphics/guetzli/Makefile =================================================================== --- /dev/null +++ graphics/guetzli/Makefile @@ -0,0 +1,30 @@ +# Created by: Yuri Victorovich +# $FreeBSD$ + +PORTNAME= guetzli +PORTVERSION= 1.0 +CATEGORIES= graphics + +MAINTAINER= yuri@rawbw.com +COMMENT= Perceptual JPEG encoder + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libpng.so:graphics/png \ + libgflags_nothreads.so:devel/gflags + +USE_GITHUB= yes +GH_ACCOUNT= google +# Slightly ahead of v1.0 to bring in build fixes that are not in a +# release yet. +GH_TAGNAME= 4a18db3 + +USES= compiler:c++11-lib gmake localbase pkgconfig +PLIST_FILES= bin/guetzli +MAKE_FLAGS= verbose=1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/Release/guetzli ${STAGEDIR}${PREFIX}/bin + +.include Index: graphics/guetzli/distinfo =================================================================== --- /dev/null +++ graphics/guetzli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1490109112 +SHA256 (google-guetzli-1.0-4a18db3_GH0.tar.gz) = 105d03406ab68295b7ca65cd491104fb3b8ec647a06f337b7b2b01023956b166 +SIZE (google-guetzli-1.0-4a18db3_GH0.tar.gz) = 96942 Index: graphics/guetzli/files/patch-guetzli.make =================================================================== --- /dev/null +++ graphics/guetzli/files/patch-guetzli.make @@ -0,0 +1,20 @@ +--- guetzli.make.orig 2017-03-18 16:20:57 UTC ++++ guetzli.make +@@ -19,8 +19,8 @@ ifeq ($(config),release) + INCLUDES += -I. -Ithird_party/butteraugli + FORCE_INCLUDE += + ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) +- ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -g `pkg-config --silence-errors --cflags libpng libgflags || pkg-config --cflags libpng gflags` +- ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O3 -g -std=c++11 `pkg-config --silence-errors --cflags libpng libgflags || pkg-config --cflags libpng gflags` ++ ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) `pkg-config --silence-errors --cflags libpng libgflags || pkg-config --cflags libpng gflags` ++ ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -std=c++11 `pkg-config --silence-errors --cflags libpng libgflags || pkg-config --cflags libpng gflags` + ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) + LIBS += + LDDEPS += +@@ -210,4 +210,4 @@ $(OBJDIR)/butteraugli.o: third_party/but + -include $(OBJECTS:%.o=%.d) + ifneq (,$(PCH)) + -include $(OBJDIR)/$(notdir $(PCH)).d +-endif +\ No newline at end of file ++endif Index: graphics/guetzli/pkg-descr =================================================================== --- /dev/null +++ graphics/guetzli/pkg-descr @@ -0,0 +1,7 @@ +Guetzli is a JPEG encoder that aims for excellent compression density +at high visual quality. Guetzli-generated images are typically 20-30% +smaller than images of equivalent quality generated by libjpeg. +Guetzli generates only sequential (nonprogressive) JPEGs due to faster +decompression speeds they offer. + +WWW: https://github.com/google/guetzli