termux-packages/packages/dmagnetic/Makefile.patch

21 lines
523 B
Diff
Raw Normal View History

2020-12-30 19:37:37 +01:00
--- ./Makefile~ 2020-12-24 08:43:57.000000000 +0100
+++ ./Makefile 2020-12-26 16:37:35.799980999 +0100
@@ -24,9 +24,14 @@
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PREFIX?=/usr/local
-INSTALLBIN=$(PREFIX)/bin
-INSTALLSHARE=$(PREFIX)/share/games
-INSTALLMAN=$(PREFIX)/share/man
+DESTDIR?=
+BINDIR=$(PREFIX)/bin
+SHAREDIR=$(PREFIX)/share/games
+MANDIR=$(PREFIX)/share/man
+
+INSTALLBIN=$(DESTDIR)$(BINDIR)
+INSTALLSHARE=$(DESTDIR)$(SHAREDIR)
+INSTALLMAN=$(DESTDIR)$(MANDIR)
CC?=gcc
AR?=ar