Ravenports generated: 13 Jan 2024 19:39
[ravenports.git] / bucket_65 / libb64
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               libb64
4 VERSION=                2.0.0.1
5 KEYWORDS=               converters mail
6 VARIANTS=               standard
7 SDESC[standard]=        Base64 Encoding/Decoding Routines
8 HOMEPAGE=               https://github.com/libb64/libb64
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/libb64:libb64:v2.0.0.1
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   gmake
21
22 LICENSE=                PUBDOM:single
23 LICENSE_FILE=           PUBDOM:{{WRKSRC}}/LICENSE.md
24 LICENSE_SCHEME=         solo
25
26 FPC_EQUIVALENT=         converters/libb64
27
28 BUILD_TARGET=           all_src
29
30 do-install:
31         ${INSTALL_DATA} ${WRKSRC}/src/libb64.a ${STAGEDIR}${PREFIX}/lib
32         ${INSTALL_LIB} ${WRKSRC}/src/libb64.so.0 ${STAGEDIR}${PREFIX}/lib
33         ${LN} -fs libb64.so.0 ${STAGEDIR}${PREFIX}/lib/libb64.so
34         ${MKDIR} ${STAGEDIR}${PREFIX}/include/b64
35         ${INSTALL_DATA} ${WRKSRC}/include/b64/*.h \
36                 ${STAGEDIR}${PREFIX}/include/b64
37
38 [FILE:423:descriptions/desc.single]
39 libb64 is a library of ANSI C routines for fast encoding/decoding of data
40 into and from a Base64-encoded format.  C++ wrappers are included, as well
41 as the source code for standalone encoding and decoding executables.
42
43 Base64 uses a subset of displayable ASCII characters, and is therefore a
44 useful encoding for storing binary data in a text file, such as XML, or
45 sending binary data over text-only communication channels.
46
47
48 [FILE:107:distinfo]
49 ce8e578a953a591bd4a6f157eec310b9a4c2e6f10ade2fdda6ae6bafaf798b98        15766 libb64-libb64-2.0.0.1.tar.gz
50
51
52 [FILE:105:manifests/plist.single]
53 include/b64/
54  ccommon.h
55  cdecode.h
56  cencode.h
57  decode.h
58  encode.h
59 lib/
60  libb64.a
61  libb64.so
62  libb64.so.0
63
64
65 [FILE:867:patches/patch-src_Makefile]
66 --- src/Makefile.orig   2018-02-26 16:30:48 UTC
67 +++ src/Makefile
68 @@ -1,9 +1,10 @@
69 -LIBRARIES = libb64.a
70 +LIBRARIES = libb64.a libb64.so
71 +SOVERSION ?= 0
72  
73  # Build flags (uncomment one)
74  #############################
75  # Release build flags
76 -CFLAGS += -O3
77 +#CFLAGS += -O3
78  #############################
79  # Debug build flags
80  #CFLAGS += -g
81 @@ -15,7 +16,7 @@ TARGETS = $(LIBRARIES)
82  
83  LINK.o = gcc
84  
85 -CFLAGS += -Werror -pedantic
86 +CFLAGS += -Werror -pedantic -fsigned-char
87  CFLAGS += -I../include
88  
89  vpath %.h ../include/b64
90 @@ -27,6 +28,15 @@ all: $(TARGETS) #strip
91  libb64.a: cencode.o cdecode.o
92         $(AR) $(ARFLAGS) $@ $^
93  
94 +libb64.so.$(SOVERSION): cencode.So cdecode.So
95 +       $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^
96 +
97 +%.So: %.c
98 +       $(CC) -fPIC -c $(CFLAGS) $(CPPFLAGS) $< -o $@
99 +
100 +%.so: %.so.$(SOVERSION)
101 +       ln -fs $< $@
102 +
103  strip:
104         strip $(BINARIES) *.exe
105  
106