From nobody Tue Jan 11 18:52:01 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7851F194B97D; Tue, 11 Jan 2022 18:52:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JYKYY6YkRz4dsQ; Tue, 11 Jan 2022 18:52:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BE1BD1E81E; Tue, 11 Jan 2022 18:52:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20BIq1xS055603; Tue, 11 Jan 2022 18:52:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20BIq1fI055602; Tue, 11 Jan 2022 18:52:01 GMT (envelope-from git) Date: Tue, 11 Jan 2022 18:52:01 GMT Message-Id: <202201111852.20BIq1fI055602@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: b44918208045 - main - graphics/brunsli: Add brunsli 0.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b4491820804572cf05d0ec133a963685d771d60b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641927122; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6DtHkpwj12iO0Lv7LFpnWuJvGkZGx7SBCTbselAnj48=; b=lDGSIT2AUzxZw67/LMlfT376905CbfgwcsnLPnL5byV6/YXoyWzRcrTHwrP8eMUBpt/cfh pcjwbg8NqiDcMbW8h4jFUzF32KtSZP9soggB6c+MMkfLcGq2w+Z5waUYtUHL7Fvg3pPqzp 9mm/4AIHmqsCFT8eYfyKgYvzZlgzSB6pzBCkG1pbdkxDqW/UdfpbdrJPJT/CPusNAmSpq0 /NcNV01B+H6FffRWfm1rqaRfm1rvD/cX5JTVuSowzhWi1EYBkdKP+18NC52MmVLVGJSpJi lDlEyC4BeGti6WrvmPf0YBiprmEobCqOc7sGgSMGyTWStMmkHx2It5SYALQ11w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641927122; a=rsa-sha256; cv=none; b=jIy9/Wg5DjGwHtZAzcUqBoYgShE7J+5I8u+SXhsHMkYTJPkWyo3YpHGjGVYJ2+wc/wXS4m pCeNcaekvyZOYMTxf3ur4oI79rolcGc2R0Iq6Tqasem/9dxTamBkaz5FkTTJcSEqcU60BN 3Sobuit4id6LG5l4jykdflVrshysaz6TSQJdSfSjRsflcp7CZMBXDLM6KQV7VdglwsD5Cl GGUwCb/l4tXyu7ecZ0hyWfgfogtisxs+0k2ha8R6/KHQe+goxpm06L36XTvszSYtCrloMP E4ANkm7uZNacfe5OflOdXywhcXGbyQTOkDi4XB27WP5wYnDYZbTj9yZh6x332Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b4491820804572cf05d0ec133a963685d771d60b commit b4491820804572cf05d0ec133a963685d771d60b Author: Po-Chuan Hsieh AuthorDate: 2022-01-11 16:42:36 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-01-11 18:43:39 +0000 graphics/brunsli: Add brunsli 0.1 Brunsli is a lossless JPEG repacking library. Brunsli allows for a 22% decrease in file size while allowing the original JPEG to be recovered byte-by-byte. It is possible to try how much Brunsli will save on your images on the site brunsli.dev. Images are transcoded in browser, no data is transmitted or stored. Codec is powered by WASM technology. WWW: https://github.com/google/brunsli --- graphics/Makefile | 1 + graphics/brunsli/Makefile | 29 +++++++++++++++++++++++++++++ graphics/brunsli/distinfo | 3 +++ graphics/brunsli/files/patch-CMakeLists.txt | 10 ++++++++++ graphics/brunsli/files/patch-brunsli.cmake | 20 ++++++++++++++++++++ graphics/brunsli/pkg-descr | 10 ++++++++++ graphics/brunsli/pkg-plist | 11 +++++++++++ 7 files changed, 84 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 60fce7f7c465..77d992f1698e 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -82,6 +82,7 @@ SUBDIR += bmp2html SUBDIR += bonzomatic SUBDIR += box + SUBDIR += brunsli SUBDIR += bsd-plotutils SUBDIR += c-a-i-r SUBDIR += cadubi diff --git a/graphics/brunsli/Makefile b/graphics/brunsli/Makefile new file mode 100644 index 000000000000..6d9bca277a78 --- /dev/null +++ b/graphics/brunsli/Makefile @@ -0,0 +1,29 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= brunsli +PORTVERSION= 0.1 +DISTVERSIONPREFIX= v +CATEGORIES= graphics + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Lossless JPEG repacking library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libbrotlidec.so:archivers/brotli \ + libgtest_main.so:devel/googletest \ + libhighwayhash.so:security/highwayhash + +USES= cmake compiler:c++11-lang localbase:ldflags + +USE_CXXSTD= c++11 + +GH_ACCOUNT= google +USE_GITHUB= yes + +post-patch: +# Clean up bundled libraries + @${RM} -r ${WRKSRC}/third_party/ + +.include diff --git a/graphics/brunsli/distinfo b/graphics/brunsli/distinfo new file mode 100644 index 000000000000..85cdefbe6dd6 --- /dev/null +++ b/graphics/brunsli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1641045700 +SHA256 (google-brunsli-v0.1_GH0.tar.gz) = 62762dc740f9fcc9706449c078f12c2a366416486d2882be50a9f201f99ac0bc +SIZE (google-brunsli-v0.1_GH0.tar.gz) = 876192 diff --git a/graphics/brunsli/files/patch-CMakeLists.txt b/graphics/brunsli/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..55bd29fba640 --- /dev/null +++ b/graphics/brunsli/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2019-10-28 09:56:51 UTC ++++ CMakeLists.txt +@@ -26,7 +26,5 @@ set(CMAKE_CXX_STANDARD 11) + set(CMAKE_CXX_EXTENSIONS OFF) + set(CMAKE_CXX_STANDARD_REQUIRED YES) + +-add_subdirectory(third_party) +- + # The Brunsli library definition. + include(brunsli.cmake) diff --git a/graphics/brunsli/files/patch-brunsli.cmake b/graphics/brunsli/files/patch-brunsli.cmake new file mode 100644 index 000000000000..61bdcd767a59 --- /dev/null +++ b/graphics/brunsli/files/patch-brunsli.cmake @@ -0,0 +1,20 @@ +--- brunsli.cmake.orig 2019-10-28 09:56:51 UTC ++++ brunsli.cmake +@@ -57,7 +57,7 @@ add_library(brunslidec-static STATIC + ${BRUNSLI_DEC_HEADERS} + ) + target_link_libraries(brunslidec-static PRIVATE +- brotlidec-static ++ brotlidec + brunslicommon-static + ) + +@@ -66,7 +66,7 @@ add_library(brunslienc-static STATIC + ${BRUNSLI_ENC_HEADERS} + ) + target_link_libraries(brunslienc-static PRIVATE +- brotlienc-static ++ brotlienc + brunslicommon-static + ) + diff --git a/graphics/brunsli/pkg-descr b/graphics/brunsli/pkg-descr new file mode 100644 index 000000000000..8dda1bddf5bc --- /dev/null +++ b/graphics/brunsli/pkg-descr @@ -0,0 +1,10 @@ +Brunsli is a lossless JPEG repacking library. + +Brunsli allows for a 22% decrease in file size while allowing the original JPEG +to be recovered byte-by-byte. + +It is possible to try how much Brunsli will save on your images on the site +brunsli.dev. Images are transcoded in browser, no data is transmitted or stored. +Codec is powered by WASM technology. + +WWW: https://github.com/google/brunsli diff --git a/graphics/brunsli/pkg-plist b/graphics/brunsli/pkg-plist new file mode 100644 index 000000000000..4d6b94b46568 --- /dev/null +++ b/graphics/brunsli/pkg-plist @@ -0,0 +1,11 @@ +include/brunsli/brunsli_decode.h +include/brunsli/brunsli_encode.h +include/brunsli/decode.h +include/brunsli/encode.h +include/brunsli/jpeg_data.h +include/brunsli/jpeg_data_reader.h +include/brunsli/jpeg_data_writer.h +include/brunsli/status.h +include/brunsli/types.h +lib/libbrunslidec-c.so +lib/libbrunslienc-c.so