summaryrefslogtreecommitdiffhomepage
path: root/patches
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 /patches
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>
Diffstat (limited to 'patches')
-rw-r--r--patches/bearssl-0.6.local.patch46
1 files changed, 46 insertions, 0 deletions
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)/