commit a62b082b3b4e4e80557f0c086a57c025fc73a48c
parent 8aa2429fb43b961fe5e645d47c8d37bafe55faf8
Author: St John Karp <contact@stjo.hn>
Date: Sun, 26 Jun 2022 07:49:07 -0400
gnu-efi: Add package at version 3.0.14
Patch to enable DESTDIR comes from the Fedora project:
https://src.fedoraproject.org/rpms/gnu-efi/blob/f31/f/0035-Make-make-make-DESTDIR-.-foo-install-work-right.patch
Diffstat:
5 files changed, 57 insertions(+), 0 deletions(-)
diff --git a/libs/gnu-efi/build b/libs/gnu-efi/build
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+
+for file in patches/* ; do
+ patch -p1 < "$file"
+done
+
+sed 's/^PREFIX := \/usr\/local/PREFIX := \/usr/' Make.defaults > _
+mv -f _ Make.defaults
+
+make
+make install
diff --git a/libs/gnu-efi/checksums b/libs/gnu-efi/checksums
@@ -0,0 +1,2 @@
+b73b643a0d5697d1f396d7431448e886dd805668789578e3e1a28277c9528435
+4cbadb9caa97eee498b4e1009d52203316733b167bffe1652819af189d374a3a
diff --git a/libs/gnu-efi/patches/0035-Make-make-make-DESTDIR-.-foo-install-work-right.patch b/libs/gnu-efi/patches/0035-Make-make-make-DESTDIR-.-foo-install-work-right.patch
@@ -0,0 +1,41 @@
+From c0963d33ad37ff62da31208b1688d164bd8a1449 Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Fri, 25 Oct 2019 15:39:35 -0400
+Subject: [PATCH 35/46] Make: make "make DESTDIR=../foo install" work right.
+
+This makes the normal DESTDIR= variable work on the command line, and
+makes relative paths always relative to the top-level directory.
+
+Signed-off-by: Peter Jones <pjones@redhat.com>
+---
+ Make.defaults | 14 +++++++++++++-
+ 1 file changed, 13 insertions(+), 1 deletion(-)
+
+diff --git a/Make.defaults b/Make.defaults
+index 696028dd6c2..157559d20ee 100755
+--- a/Make.defaults
++++ b/Make.defaults
+@@ -47,7 +47,19 @@ ARCHES=aa64 arm ia32 ia64 mips64el x64
+ # Where to install the package. GNU-EFI will create and access
+ # lib and include under the root
+ #
+-INSTALLROOT := /
++DESTDIR ?= /
++ifeq ($(origin INSTALLROOT),undefined)
++INSTALLROOT = $(DESTDIR)
++endif
++
++empty :=
++space := $(empty) $(empty)
++stripped = $(subst $(space),/,$(strip $(subst /,$(space),$(1))))
++unstripped = $(subst $(space),/,$(subst /,$(space),$(1)))
++is_absolute = $(subst $(call stripped,$(1)),$(empty),$(call unstripped,$(1)))
++
++override INSTALLROOT:=$(if $(call is_absolute,$(INSTALLROOT)),,$(TOPDIR)/)$(INSTALLROOT)
++
+ PREFIX := /usr/local
+ LIBDIR := $(PREFIX)/lib
+ INSTALL := install
+--
+2.24.1
+
diff --git a/libs/gnu-efi/sources b/libs/gnu-efi/sources
@@ -0,0 +1,2 @@
+https://sourceforge.net/projects/gnu-efi/files/gnu-efi-VERSION.tar.bz2
+https://src.fedoraproject.org/rpms/gnu-efi/raw/f31/f/0035-Make-make-make-DESTDIR-.-foo-install-work-right.patch patches
diff --git a/libs/gnu-efi/version b/libs/gnu-efi/version
@@ -0,0 +1 @@
+3.0.14 1