changeset 5448:aaa7564b2ecf

Add libtasn1 * src/libtasn1.mk: new file * index.html: add ref to libtasn1
author John Donoghue <john.donoghue@ieee.org>
date Fri, 05 Jun 2020 07:15:31 -0400
parents a59bebc63c1b
children c12e2cbdd9c9
files index.html src/libtasn1.mk
diffstat 2 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/index.html	Thu Jun 04 12:26:43 2020 -0400
+++ b/index.html	Fri Jun 05 07:15:31 2020 -0400
@@ -1690,6 +1690,10 @@
         <td class="website"><a href="http://www.libssh2.org">libssh2</a></td>
     </tr>
     <tr>
+        <td class="package">libtasn1</td>
+        <td class="website"><a href="https://www.gnu.org/software/libtasn1/">libtasn1</a></td>
+    </tr>
+    <tr>
         <td class="package">libtool</td>
         <td class="website"><a href="http://www.gnu.org/software/libtool/">GNU Libtool</a></td>
     </tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/libtasn1.mk	Fri Jun 05 07:15:31 2020 -0400
@@ -0,0 +1,25 @@
+# This file is part of MXE. See LICENSE.md for licensing information.
+
+PKG             := libtasn1
+$(PKG)_VERSION  := 4.16.0
+$(PKG)_CHECKSUM := f4f1fc301c0835389d9db7754815e48f4f57937a
+$(PKG)_SUBDIR   := libtasn1-$($(PKG)_VERSION)
+$(PKG)_FILE     := libtasn1-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := https://ftp.gnu.org/gnu/libtasn1/$($(PKG)_FILE)
+$(PKG)_DEPS     := 
+
+define $(PKG)_UPDATE
+    $(WGET) -q -O- https://ftp.gnu.org/gnu/libtasn1/ | \
+    $(SED) -n 's,.*libtasn1-\([1-9]\+\(\.[0-9]\+\)\+\).*,\1,p' | \
+    $(SORT) -V | \
+    tail -1
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && ./configure \
+        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
+	$(ENABLE_SHARED_OR_STATIC) \
+	--prefix='$(HOST_PREFIX)'
+    $(MAKE) -C '$(1)' -j '$(JOBS)' 
+    $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_PROGS) $(MXE_DISABLE_DOCS) DESTDIR='$(3)'
+endef