1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Fast real-time compression algorithm (aka zstd)
9 HOMEPAGE= https://facebook.github.io/zstd/
13 SITES[main]= GITHUB/facebook:zstd:v1.5.2
14 DISTFILE[1]= generated:main
16 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 USES= cpe gmake zlib:build
25 LICENSE= BSD3CLAUSE:static GPLv2:static
26 LICENSE_TERMS= static:{{WRKDIR}}/TERMS
27 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
28 GPLv2:{{WRKSRC}}/COPYING
29 LICENSE_AWK= TERMS:"__cplusplus"
30 LICENSE_SOURCE= TERMS:{{WRKSRC}}/lib/zstd.h
33 CPE_PRODUCT= zstandard
35 FPC_EQUIVALENT= archivers/zstd
38 MAKE_ARGS= INCLUDEDIR="{{PREFIX}}/include"
39 LIBDIR="{{PREFIX}}/lib"
40 MANDIR="{{MANPREFIX}}/man"
41 PKGCONFIGDIR="{{PREFIX}}/lib/pkgconfig"
42 INSTALL_PROGRAM="{{INSTALL_PROGRAM}}"
43 INSTALL_SCRIPT="{{INSTALL_SCRIPT}}"
44 INSTALL_DATA="{{INSTALL_DATA}}"
45 INSTALL_MAN="{{INSTALL_MAN}}"
49 INSTALL_REQ_TOOLCHAIN= yes
53 ${REINPLACE_CMD} -e '/define BACKTRACES_ENABLE/d' \
54 ${WRKSRC}/programs/fileio.c
57 ${REINPLACE_CMD} -e 's| DragonFly| DragonFly SunOS|' \
59 ${REINPLACE_CMD} -e 's|LDFLAGS +=|LDFLAGS += -lrt|' \
60 ${WRKSRC}/programs/Makefile
62 [FILE:692:descriptions/desc.static]
63 Zstd, short for Zstandard, is a real-time compression algorithm providing
64 high compression ratios. It offers a very wide range of compression vs.
65 speed trade-offs while being backed by a very fast decoder. It offers
66 a special mode for small data called "dictionary compression" and it can
67 create dictionaries from any sample set. Zstd is BSD-licensed.
69 Using Izbench on the Silesia compression corpus, zstd ranked at the
70 top with a compression ratio of 2.877, a compression rate of 325 Mb/s,
71 and a decompression rate of 325. Zlib followed at 2.730, 95 Mb/s (C)
72 and 360 Mb/s (D). See WWW page for the full benchmark results.
74 This package contains everything except the shared libraries.
77 [FILE:49:descriptions/desc.shared]
78 This package contains the Zstd shared libraries.
82 f7de13462f7a82c29ab865820149e778cbfe01087b3a55b5332707abf9db4a6e 1950967 facebook-zstd-1.5.2.tar.gz
85 [FILE:237:manifests/plist.static]
100 lib/pkgconfig/libzstd.pc
109 [FILE:67:manifests/plist.shared]
112 libzstd.so.%%SOMAJOR%%
113 libzstd.so.%%SOVERSION%%
116 [FILE:1573:patches/patch-lib_Makefile]
117 --- lib/Makefile.orig 2022-01-20 21:17:18 UTC
119 @@ -48,6 +48,8 @@ endif
120 ZSTD_LOCAL_SRC := $(notdir $(ZSTD_FILES))
121 ZSTD_LOCAL_OBJ0 := $(ZSTD_LOCAL_SRC:.c=.o)
122 ZSTD_LOCAL_OBJ := $(ZSTD_LOCAL_OBJ0:.S=.o)
123 +ZSTD_LOCAL_SOBJ0 := $(ZSTD_LOCAL_SRC:.c=.So)
124 +ZSTD_LOCAL_SOBJ := $(ZSTD_LOCAL_SOBJ0:.S=.o)
126 VERSION := $(ZSTD_VERSION)
128 @@ -75,8 +77,8 @@ ifeq ($(UNAME), Darwin)
129 SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
130 SONAME_FLAGS = -install_name $(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER)
132 - ifeq ($(UNAME), AIX)
134 + ifeq ($(UNAME), SunOS)
135 + SONAME_FLAGS = -Wl,-h,libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
137 SONAME_FLAGS = -Wl,-soname=libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
139 @@ -126,6 +128,14 @@ libzstd.a: $(ZSTD_STATLIB)
145 + $(CC) $(FLAGS) -fpic -DPIC -c $< -o $@
147 +libzstd_pic.a: $(ZSTD_LOCAL_SOBJ)
148 + @echo assembling PIC library
151 ifneq (,$(filter Windows%,$(TARGET_SYSTEM)))
153 LIBZSTD = dll/libzstd.dll
154 @@ -175,7 +185,7 @@ endif # if windows
158 -lib : libzstd.a libzstd
159 +lib : libzstd.a libzstd libzstd_pic.a
162 # note : do not define lib-mt or lib-release as .PHONY
163 @@ -323,6 +333,7 @@ install-static:
164 [ -e $(DESTDIR)$(LIBDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
165 @echo Installing static library
166 $(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
167 + $(INSTALL_DATA) libzstd_pic.a $(DESTDIR)$(LIBDIR)
169 .PHONY: install-shared