@@ -1,31 +1,34 @@
1−diff -uNr fatsort-1.3.365-a/Makefile fatsort-1.3.365-b/Makefile
2−--- fatsort-1.3.365-a/Makefile 2014-04-08 19:19:36.000000000 +0100
3−+++ fatsort-1.3.365-b/Makefile 2014-12-14 18:31:55.982857720 +0000
1+diff -uNr fatsort-1.6.2.605.orig/Makefile fatsort-1.6.2.605.new/Makefile
2+--- fatsort-1.6.2.605.orig/Makefile 2019-11-16 16:40:27.000000000 +0100
3++++ fatsort-1.6.2.605.new/Makefile 2020-05-10 21:34:34.820874026 +0200
44@@ -1,4 +1,5 @@
55-MANDIR=/usr/local/share/man/man1
6−+PREFIX=$(out)
6++PREFIX?=/usr/local
77+MANDIR=$(PREFIX)/share/man/man1
88
99 INSTALL_FLAGS=-m 0755 -p -D
1010
11−diff -uNr fatsort-1.3.365-a/src/Makefile fatsort-1.3.365-b/src/Makefile
12−--- fatsort-1.3.365-a/src/Makefile 2014-04-08 19:19:36.000000000 +0100
13−+++ fatsort-1.3.365-b/src/Makefile 2014-12-14 18:32:08.282870461 +0000
14−@@ -1,3 +1,5 @@
15−+PREFIX=$(out)
16−+
17− CC=gcc
18− LD=gcc
19−
20−@@ -33,9 +35,9 @@
21−
22− # Mac OS X does not have a "/usr/local/sbin"
23− ifeq ($(UNAME),Darwin)
24−-SBINDIR=/usr/local/bin
25−+SBINDIR=$(PREFIX)/bin
11+diff -uNr fatsort-1.6.2.605.orig/src/Makefile fatsort-1.6.2.605.new/src/Makefile
12+--- fatsort-1.6.2.605.orig/src/Makefile 2018-11-17 00:40:59.000000000 +0100
13++++ fatsort-1.6.2.605.new/src/Makefile 2020-05-10 21:33:52.053391027 +0200
14+@@ -30,7 +30,7 @@
15+ override CFLAGS += -D __CYGWIN__
16+ override CFLAGS += -D __LINUX__
17+ override LDFLAGS += -liconv
18+- SBINDIR=/usr/local/sbin
19++ SBINDIR=$(PREFIX)/sbin
20+ endif
2621 else
27−-SBINDIR=/usr/local/sbin
28−+SBINDIR=$(PREFIX)/sbin
22+ ifdef MINGW
23+@@ -60,9 +60,9 @@
24+ # OS X's install does not support the '-D' flag.
25+ INSTALL_FLAGS=-m 0755 -p
26+ # Mac OS X does not have a "/usr/local/sbin"
27+- SBINDIR=/usr/local/bin
28++ SBINDIR=$(PREFIX)/bin
29+ else
30+- SBINDIR=/usr/local/sbin
31++ SBINDIR=$(PREFIX)/sbin
32+ endif
33+ endif
2934 endif
30−
31− OBJ=fatsort.o FAT_fs.o fileio.o endianness.o signal.o entrylist.o errors.o options.o clusterchain.o sort.o misc.o natstrcmp.o stringlist.o