summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2021-11-19 13:22:01 +0100
committerØrjan Malde <red@foxi.me>2021-11-19 13:31:09 +0100
commit398a1ebfff2ba02c0b93afb5b748be4f0ce93329 (patch)
tree6432d0e4fa3714f58bbd1bf0885d35e39e5a1234
parentdb1f66f154f24982c8ed82989b5a208974fe8d67 (diff)
downloadmidipix_build-398a1ebfff2ba02c0b93afb5b748be4f0ce93329.tar.bz2
midipix_build-398a1ebfff2ba02c0b93afb5b748be4f0ce93329.tar.xz
groups/251.native_packages_lib.group: adds bearssl v0.6
Signed-off-by: Ørjan Malde <red@foxi.me>
-rw-r--r--groups/251.native_packages_lib.group7
-rw-r--r--patches/bearssl-0.6.local.patch46
2 files changed, 52 insertions, 1 deletions
diff --git a/groups/251.native_packages_lib.group b/groups/251.native_packages_lib.group
index 9d9f745a..fc4683fd 100644
--- a/groups/251.native_packages_lib.group
+++ b/groups/251.native_packages_lib.group
@@ -3,13 +3,18 @@
#
GROUP_TARGET="native_packages";
NATIVE_PACKAGES_PACKAGES="$(rtl_lconcat "${NATIVE_PACKAGES_PACKAGES}" "
-glib jansson lame libarchive libass libassuan libatomic_ops libdmtx libedit libeditline libelf libestr
+bearssl glib jansson lame libarchive libass libassuan libatomic_ops libdmtx libedit libeditline libelf libestr
libevent libexif libfastjson libfetch libffi libfirm libflac libgcrypt libgpg_error libidn2 libite
libjpeg_turbo libksba libmad libmspack libmp3splt libogg libpcap libpipeline libpng libpsl
readline libredwg libressl libsasl2 libshine libsndfile libsolv libssh
libstrophe libtasn1 libtelnet libtheora libtirpc libudns libunistring
libuv libvorbis libxml2 libxslt libz libzip lzo nettle onig sdl1 sdl1_net sdl1_mixer
sdl1_image sdl1_ttf sdl2 sdl2_image sdl2_ttf wolfssl")";
+: ${PKG_BEARSSL_SHA256SUM:=6705bba1714961b41a728dfc5debbe348d2966c117649392f8c8139efc83ff14};
+: ${PKG_BEARSSL_VERSION:=0.6};
+: ${PKG_BEARSSL_URL:=https://bearssl.org/bearssl-${PKG_BEARSSL_VERSION}.tar.gz};
+: ${PKG_BEARSSL_IN_TREE:=1};
+: ${PKG_BEARSSL_MAKEFLAGS_BUILD:="DESTDIR=${PREFIX_NATIVE}"};
: ${PKG_GLIB_DEPENDS:="libffi libz pcre"};
: ${PKG_GLIB_SHA256SUM:=d64abd16813501c956c4e123ae79f47f1b58de573df9fdd3b0795f1e2c1aa789};
: ${PKG_GLIB_VERSION:=2.56.2};
diff --git a/patches/bearssl-0.6.local.patch b/patches/bearssl-0.6.local.patch
new file mode 100644
index 00000000..164c6548
--- /dev/null
+++ b/patches/bearssl-0.6.local.patch
@@ -0,0 +1,46 @@
+diff -ru bearssl-0.6.orig/conf/Unix.mk bearssl-0.6/conf/Unix.mk
+--- bearssl-0.6.orig/conf/Unix.mk 2018-08-14 22:41:54.000000000 +0200
++++ bearssl-0.6/conf/Unix.mk 2021-11-19 11:37:24.523722697 +0100
+@@ -38,7 +38,7 @@
+
+ # C compiler and flags.
+ CC = cc
+-CFLAGS = -W -Wall -Os -fPIC
++CFLAGS ?= -W -Wall -Os -fPIC
+ CCOUT = -c -o
+
+ # Static library building tool.
+@@ -47,12 +47,12 @@
+ AROUT =
+
+ # DLL building tool.
+-LDDLL = cc
++LDDLL = $(CC)
+ LDDLLFLAGS = -shared
+ LDDLLOUT = -o
+
+ # Static linker.
+-LD = cc
++LD = $(CC)
+ LDFLAGS =
+ LDOUT = -o
+
+@@ -67,3 +67,18 @@
+ #DLL = no
+ #TOOLS = no
+ #TESTS = no
++
++INSTALL ?= install
++PREFIX ?=
++BINDIR ?= $(PREFIX)/bin
++LIBDIR ?= $(PREFIX)/lib
++INCDIR ?= $(PREFIX)/include
++
++install: build/brssl build/libbearssl.so build/libbearssl.a
++ $(MKDIR) $(DESTDIR)$(BINDIR)
++ $(MKDIR) $(DESTDIR)$(LIBDIR)
++ $(MKDIR) $(DESTDIR)$(INCDIR)
++ $(INSTALL) -c -m 0755 build/brssl $(DESTDIR)$(BINDIR)/brssl
++ $(INSTALL) -c -m 0755 build/libbearssl.so $(DESTDIR)$(LIBDIR)/libbearssl.so
++ $(INSTALL) -c -m 0644 build/libbearssl.a $(DESTDIR)$(LIBDIR)/libbearssl.a
++ $(INSTALL) -c -m 0644 inc/*.h $(DESTDIR)$(INCDIR)/