changeset 5551:273912031e10

add libb64 * src/libb64.mk: add new file * index.html: add ref to libb64
author Alois Schloegl <alois.schloegl@gmx.net>
date Sun, 30 Aug 2020 13:06:32 +0200
parents 15662c901125
children ae03e5272111
files index.html src/libb64.mk
diffstat 2 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Fri Oct 09 07:20:03 2020 -0400
+++ b/index.html	Sun Aug 30 13:06:32 2020 +0200
@@ -1506,6 +1506,10 @@
         <td class="website"><a href="http://code.google.com/p/libass/">libass</a></td>
     </tr>
     <tr>
+        <td class="package">libb64</td>
+        <td class="website"><a  href="https://libb64.sourceforge.io/">libb64</a></td>
+    </tr>
+    <tr>
         <td class="package">libbiosig</td>
         <td class="website"><a  href="https://biosig.sourceforge.io/">libbiosig</a></td>
     </tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libb64.mk	Sun Aug 30 13:06:32 2020 +0200
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := libb64
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 1.2.1
+$(PKG)_CHECKSUM := 04b3e21b8c951d27f02fe91249ca3474554af0b9
+$(PKG)_SUBDIR   := libb64-$($(PKG)_VERSION)
+$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).zip
+$(PKG)_URL      := https://sourceforge.net/projects/$(PKG)/files/$(PKG)/$(PKG)/$($(PKG)_FILE)
+$(PKG)_DEPS     :=
+
+define $(PKG)_UPDATE
+    $(WGET) -q -O- 'http://sourceforge.net/projects/libb64/files/' | \
+    $(SED) -n 's_.*libb64-\([0-9]\.[0-9]\.[0-9]\).*zip_\1_ip' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+
+    CC=$(MXE_CC) CXX=$(MXE_CXX) PKG_CONFIG=$(MXE_PKG_CONFIG) AR=$(MXE_AR) $(MAKE) -C '$(1)/src'
+
+    $(INSTALL) -d '$(3)$(HOST_LIBDIR)'
+    $(INSTALL) -d '$(3)$(HOST_INCDIR)/b64'
+    $(INSTALL) -m644 '$(1)/include/b64/'*.h '$(3)$(HOST_INCDIR)/b64/'
+    $(INSTALL) -m644 '$(1)/src/libb64.a' '$(3)$(HOST_LIBDIR)/'
+
+endef