Ravenports generated: 24 Nov 2022 22:05
[ravenports.git] / bucket_F9 / Zstandard
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               Zstandard
4 VERSION=                1.5.2
5 REVISION=               1
6 KEYWORDS=               archivers
7 VARIANTS=               standard
8 SDESC[standard]=        Fast real-time compression algorithm (aka zstd)
9 HOMEPAGE=               https://facebook.github.io/zstd/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GITHUB/facebook:zstd:v1.5.2
14 DISTFILE[1]=            generated:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         static
18                         shared
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 USES=                   cpe gmake zlib:build
24
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
31 LICENSE_SCHEME=         dual
32
33 CPE_PRODUCT=            zstandard
34 CPE_VENDOR=             facebook
35 FPC_EQUIVALENT=         archivers/zstd
36
37 BUILD_TARGET=           default
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}}"
46                         INSTALL=install
47                         HASH=md5
48
49 INSTALL_REQ_TOOLCHAIN=  yes
50 SOVERSION=              1.5.2
51
52 post-patch:
53         ${REINPLACE_CMD} -e '/define BACKTRACES_ENABLE/d' \
54                 ${WRKSRC}/programs/fileio.c
55
56 post-patch-sunos:
57         ${REINPLACE_CMD} -e 's| DragonFly| DragonFly SunOS|' \
58                 ${WRKSRC}/Makefile
59         ${REINPLACE_CMD} -e 's|LDFLAGS +=|LDFLAGS += -lrt|' \
60                 ${WRKSRC}/programs/Makefile
61
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.
68
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.
73
74 This package contains everything except the shared libraries.
75
76
77 [FILE:49:descriptions/desc.shared]
78 This package contains the Zstd shared libraries.
79
80
81 [FILE:105:distinfo]
82 f7de13462f7a82c29ab865820149e778cbfe01087b3a55b5332707abf9db4a6e      1950967 facebook-zstd-1.5.2.tar.gz
83
84
85 [FILE:237:manifests/plist.static]
86 bin/
87  unzstd
88  zstd
89  zstdcat
90  zstdgrep
91  zstdless
92  zstdmt
93 include/
94  zdict.h
95  zstd.h
96  zstd_errors.h
97 lib/
98  libzstd.a
99  libzstd_pic.a
100 lib/pkgconfig/libzstd.pc
101 share/man/man1/
102  unzstd.1.gz
103  zstd.1.gz
104  zstdcat.1.gz
105  zstdgrep.1.gz
106  zstdless.1.gz
107
108
109 [FILE:67:manifests/plist.shared]
110 lib/
111  libzstd.so
112  libzstd.so.%%SOMAJOR%%
113  libzstd.so.%%SOVERSION%%
114
115
116 [FILE:1573:patches/patch-lib_Makefile]
117 --- lib/Makefile.orig   2022-01-20 21:17:18 UTC
118 +++ lib/Makefile
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)
125  
126  VERSION := $(ZSTD_VERSION)
127  
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)
131  else
132 -  ifeq ($(UNAME), AIX)
133 -    SONAME_FLAGS =
134 +  ifeq ($(UNAME), SunOS)
135 +    SONAME_FLAGS = -Wl,-h,libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
136    else
137      SONAME_FLAGS = -Wl,-soname=libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
138    endif
139 @@ -126,6 +128,14 @@ libzstd.a: $(ZSTD_STATLIB)
140  
141  endif
142  
143 +%.So: %.c
144 +       @echo PIC-CC $@
145 +       $(CC) $(FLAGS) -fpic -DPIC -c $< -o $@
146 +
147 +libzstd_pic.a: $(ZSTD_LOCAL_SOBJ)
148 +       @echo assembling PIC library
149 +       $(AR) rcsv $@ $^
150 +
151  ifneq (,$(filter Windows%,$(TARGET_SYSTEM)))
152  
153  LIBZSTD = dll/libzstd.dll
154 @@ -175,7 +185,7 @@ endif  # if windows
155  libzstd : $(LIBZSTD)
156  
157  .PHONY: lib
158 -lib : libzstd.a libzstd
159 +lib : libzstd.a libzstd libzstd_pic.a
160  
161  
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)
168  
169  .PHONY: install-shared
170  install-shared:
171