mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
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
This commit is contained in:
parent
c50d576027
commit
b449182080
@ -82,6 +82,7 @@
|
||||
SUBDIR += bmp2html
|
||||
SUBDIR += bonzomatic
|
||||
SUBDIR += box
|
||||
SUBDIR += brunsli
|
||||
SUBDIR += bsd-plotutils
|
||||
SUBDIR += c-a-i-r
|
||||
SUBDIR += cadubi
|
||||
|
29
graphics/brunsli/Makefile
Normal file
29
graphics/brunsli/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
||||
|
||||
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 <bsd.port.mk>
|
3
graphics/brunsli/distinfo
Normal file
3
graphics/brunsli/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1641045700
|
||||
SHA256 (google-brunsli-v0.1_GH0.tar.gz) = 62762dc740f9fcc9706449c078f12c2a366416486d2882be50a9f201f99ac0bc
|
||||
SIZE (google-brunsli-v0.1_GH0.tar.gz) = 876192
|
10
graphics/brunsli/files/patch-CMakeLists.txt
Normal file
10
graphics/brunsli/files/patch-CMakeLists.txt
Normal file
@ -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)
|
20
graphics/brunsli/files/patch-brunsli.cmake
Normal file
20
graphics/brunsli/files/patch-brunsli.cmake
Normal file
@ -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
|
||||
)
|
||||
|
10
graphics/brunsli/pkg-descr
Normal file
10
graphics/brunsli/pkg-descr
Normal file
@ -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
|
11
graphics/brunsli/pkg-plist
Normal file
11
graphics/brunsli/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user