sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a526f298871a7ab1d1536d83725f885c7cba765c)
- From: Vlad Glagolev <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a526f298871a7ab1d1536d83725f885c7cba765c)
- Date: Sat, 25 Jun 2016 19:21:20 +0000
GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:
ChangeLog | 3 +++
libs/libb64/BUILD | 3 +++
libs/libb64/DETAILS | 15 +++++++++++++++
libs/libb64/HISTORY | 2 ++
libs/libb64/INSTALL | 4 ++++
libs/libb64/PRE_BUILD | 7 +++++++
libs/libb64/dyn.patch | 18 ++++++++++++++++++
7 files changed, 52 insertions(+)
New commits:
commit a526f298871a7ab1d1536d83725f885c7cba765c
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>
libb64: new spell, Base64 encoding/decoding routines
diff --git a/ChangeLog b/ChangeLog
index aa4d919..3e15825 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2016-06-25 Vlad Glagolev <stealth AT sourcemage.org>
+ * libs/libb64: new spell, Base64 encoding/decoding routines
+
2016-06-24 Ismael Luceno <ismael AT sourcemage.org>
* crypto/tomb: new spell, File Encryption on GNU/Linux
diff --git a/libs/libb64/BUILD b/libs/libb64/BUILD
new file mode 100755
index 0000000..2a1d187
--- /dev/null
+++ b/libs/libb64/BUILD
@@ -0,0 +1,3 @@
+make_single &&
+make all_src &&
+make_normal
diff --git a/libs/libb64/DETAILS b/libs/libb64/DETAILS
new file mode 100755
index 0000000..3ef1cd4
--- /dev/null
+++ b/libs/libb64/DETAILS
@@ -0,0 +1,15 @@
+ SPELL=libb64
+ VERSION=1.2.1
+ SOURCE=${SPELL}-${VERSION}.zip
+ SOURCE_URL[0]=$SOURCEFORGE_URL/${SPELL}/${SOURCE}
+
SOURCE_HASH=sha512:8b1e5c8086a38be82471b5f37393f3f236c923f4a2bb737209a297cbab32a9f0a5c4af4ac912c695f0f7d8ff9458d97ce0d01092fbacbfe7181e4fd816e2153d
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=http://libb64.sourceforge.net/
+ LICENSE[0]=PD
+ ENTERED=20160625
+ SHORT="Base64 encoding/decoding routines"
+cat << EOF
+libb64 is a library of ANSI C routines for fast encoding/decoding data into
and
+from a base64-encoded format. C++ wrappers are included, as well as the
source
+code for standalone encoding and decoding executables.
+EOF
diff --git a/libs/libb64/HISTORY b/libs/libb64/HISTORY
new file mode 100644
index 0000000..238a3c7
--- /dev/null
+++ b/libs/libb64/HISTORY
@@ -0,0 +1,2 @@
+2016-06-17 Vlad Glagolev <stealth AT sourcemage.org>
+ * {PRE_}BUILD, DEPENDS, DETAILS, INSTALL, dyn.patch: spell created
diff --git a/libs/libb64/INSTALL b/libs/libb64/INSTALL
new file mode 100755
index 0000000..754b1ff
--- /dev/null
+++ b/libs/libb64/INSTALL
@@ -0,0 +1,4 @@
+install -vm 644 src/libb64.a "${INSTALL_ROOT}/usr/lib" &&
+install -vm 755 src/libb64.so "${INSTALL_ROOT}/usr/lib" &&
+
+cp -av include/b64 "${INSTALL_ROOT}/usr/include"
diff --git a/libs/libb64/PRE_BUILD b/libs/libb64/PRE_BUILD
new file mode 100755
index 0000000..5dc2c82
--- /dev/null
+++ b/libs/libb64/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}"
+
+patch -p0 < "${SPELL_DIRECTORY}/dyn.patch" &&
+
+# replace only the first CFLAGS var
+sedit "s:^CFLAGS += -O3:CFLAGS += $CFLAGS:" src/Makefile
diff --git a/libs/libb64/dyn.patch b/libs/libb64/dyn.patch
new file mode 100644
index 0000000..46f4a9e
--- /dev/null
+++ b/libs/libb64/dyn.patch
@@ -0,0 +1,18 @@
+--- src/Makefile.orig 2013-06-18 08:49:36.000000000 -0400
++++ src/Makefile 2016-06-23 17:21:05.637925725 -0400
+@@ -1,4 +1,4 @@
+-LIBRARIES = libb64.a
++LIBRARIES = libb64.a libb64.so
+
+ # Build flags (uncomment one)
+ #############################
+@@ -27,6 +27,9 @@
+ libb64.a: cencode.o cdecode.o
+ $(AR) $(ARFLAGS) $@ $^
+
++libb64.so: libb64.a
++ ld $(LDFLAGS) -shared --whole-archive -o $@ $^
++
+ strip:
+ strip $(BINARIES) *.exe
+
- [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a526f298871a7ab1d1536d83725f885c7cba765c), Vlad Glagolev, 06/25/2016
Archive powered by MHonArc 2.6.24.