summary refs log tree commit diff
path: root/pkgs/tools/filesystems/fatsort/fatsort-Makefiles.patch
blob: 9c9f58e97ab4f1e3d5a7bc778f02d2483c965bbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -uNr fatsort-1.3.365-a/Makefile fatsort-1.3.365-b/Makefile
--- fatsort-1.3.365-a/Makefile	2014-04-08 19:19:36.000000000 +0100
+++ fatsort-1.3.365-b/Makefile	2014-12-14 18:31:55.982857720 +0000
@@ -1,4 +1,5 @@
-MANDIR=/usr/local/share/man/man1
+PREFIX=$(out)
+MANDIR=$(PREFIX)/share/man/man1
 
 INSTALL_FLAGS=-m 0755 -p -D
 
diff -uNr fatsort-1.3.365-a/src/Makefile fatsort-1.3.365-b/src/Makefile
--- fatsort-1.3.365-a/src/Makefile	2014-04-08 19:19:36.000000000 +0100
+++ fatsort-1.3.365-b/src/Makefile	2014-12-14 18:32:08.282870461 +0000
@@ -1,3 +1,5 @@
+PREFIX=$(out)
+
 CC=gcc
 LD=gcc
 
@@ -33,9 +35,9 @@
 
 # Mac OS X does not have a "/usr/local/sbin"
 ifeq ($(UNAME),Darwin)
-SBINDIR=/usr/local/bin
+SBINDIR=$(PREFIX)/bin
 else
-SBINDIR=/usr/local/sbin
+SBINDIR=$(PREFIX)/sbin
 endif
 
 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