Ravenports generated: 18 Jan 2021 12:16
[ravenports.git] / bucket_F9 / Zstandard
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               Zstandard
4 VERSION=                1.4.8
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.4.8
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
47 INSTALL_REQ_TOOLCHAIN=  yes
48 SOVERSION=              1.4.8
49
50 post-patch:
51         ${REINPLACE_CMD} -e '/define BACKTRACES_ENABLE/d' \
52                 ${WRKSRC}/programs/fileio.c
53
54 post-patch-sunos:
55         ${REINPLACE_CMD} -e 's| DragonFly| DragonFly SunOS|' \
56                 ${WRKSRC}/Makefile
57         ${REINPLACE_CMD} -e 's|LDFLAGS +=|LDFLAGS += -lrt|' \
58                 ${WRKSRC}/programs/Makefile
59         ${REINPLACE_CMD} -e 's|ginstall|install|' \
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 f176f0626cb797022fbf257c3c644d71c1c747bb74c32201f9203654da35e9fa      1816546 facebook-zstd-1.4.8.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:1582:patches/patch-lib_Makefile]
117 --- lib/Makefile.orig   2020-12-19 00:39:42 UTC
118 +++ lib/Makefile
119 @@ -168,6 +168,7 @@ CPPFLAGS  += -DZSTD_LEGACY_SUPPORT=$(ZST
120  
121  ZSTD_LOCAL_SRC := $(notdir $(ZSTD_FILES))
122  ZSTD_LOCAL_OBJ := $(ZSTD_LOCAL_SRC:.c=.o)
123 +ZSTD_LOCAL_SOBJ := $(ZSTD_LOCAL_SRC:.c=.So)
124  
125  ZSTD_SUBDIR := common compress decompress dictBuilder legacy deprecated
126  vpath %.c $(ZSTD_SUBDIR)
127 @@ -247,10 +248,17 @@ libzstd.a: $(ZSTD_STATLIB)
128  
129  endif
130  
131 +%.So: %.c
132 +       $(CC) $(FLAGS) -fpic -DPIC -c $< -o $@ 
133 +
134 +libzstd_pic.a: $(ZSTD_LOCAL_SOBJ)
135 +       @echo assembling PIC library
136 +       $(AR) rcsv $@ $^
137 +
138  ifneq (,$(filter Windows%,$(TARGET_SYSTEM)))
139  
140  LIBZSTD = dll/libzstd.dll
141 -$(LIBZSTD): $(ZSTD_FILES)
142 +$(LIBZSTD): $(ZSTD_SOBJ)
143         @echo compiling dynamic library $(LIBVER)
144         $(CC) $(FLAGS) -DZSTD_DLL_EXPORT=1 -Wl,--out-implib,dll/libzstd.dll.a -shared $^ -o $@
145  
146 @@ -292,7 +300,7 @@ endif  # if windows
147  libzstd : $(LIBZSTD)
148  
149  .PHONY: lib
150 -lib : libzstd.a libzstd
151 +lib : libzstd.a libzstd libzstd_pic.a
152  
153  
154  # note : do not define lib-mt or lib-release as .PHONY
155 @@ -386,11 +394,7 @@ else
156    PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig
157  endif
158  
159 -ifneq (,$(filter $(UNAME),SunOS))
160 -  INSTALL ?= ginstall
161 -else
162    INSTALL ?= install
163 -endif
164  
165  INSTALL_PROGRAM ?= $(INSTALL)
166  INSTALL_DATA    ?= $(INSTALL) -m 644
167 @@ -420,6 +424,7 @@ install-static:
168         [ -e $(DESTDIR)$(LIBDIR) ] || $(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)/
169         @echo Installing static library
170         $(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
171 +       $(INSTALL_DATA) libzstd_pic.a $(DESTDIR)$(LIBDIR)
172  
173  install-shared:
174         # only generate libzstd.so if it's not already present
175