chore(main/jhead): modify Makefile patch to respect DESTDIR

So that we can install straight into TERMUX_PKG_MASSAGEDIR.
This commit is contained in:
Henrik Grimler 2023-07-14 10:17:35 +02:00
parent f745a2adda
commit 4cea11d459
1 changed files with 12 additions and 10 deletions

View File

@ -1,17 +1,19 @@
diff --git a/makefile b/makefile
index eb71bba..b96b2ba 100644
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
--- ../jhead-3.08/makefile 2023-06-06 16:08:43.000000000 +0000
+++ ./makefile 2023-07-14 09:38:54.030296111 +0000
@@ -1,17 +1,17 @@
#--------------------------------
# jhead makefile for Unix
#--------------------------------
-PREFIX=$(DESTDIR)/usr/local
+PREFIX?=$(DESTDIR)/usr/local
BINDIR=$(PREFIX)/bin
DOCDIR=$(PREFIX)/share/doc/jhead
MANDIR=$(PREFIX)/share/man/man1
@@ -10,8 +10,8 @@ SRC=.
-BINDIR=$(PREFIX)/bin
-DOCDIR=$(PREFIX)/share/doc/jhead
-MANDIR=$(PREFIX)/share/man/man1
+PREFIX?=/usr/local
+BINDIR=$(DESTDIR)$(PREFIX)/bin
+DOCDIR=$(DESTDIR)$(PREFIX)/share/doc/jhead
+MANDIR=$(DESTDIR)$(PREFIX)/share/man/man1
OBJ=obj
SRC=.
DPKG_BUILDFLAGS := $(shell command -v dpkg-buildflags 2> /dev/null)
ifdef DPKG_BUILDFLAGS