aboutsummaryrefslogtreecommitdiff
path: root/sysutils/squashfs-tools/files/patch-Makefile
blob: 0a4c58c617553a945f303508d75fb9d81b3a2382 (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
--- Makefile.orig	2014-05-11 18:56:00 UTC
+++ Makefile
@@ -38,7 +38,7 @@ GZIP_SUPPORT = 1
 # installation prefix.
 #
 #LZO_SUPPORT = 1
-#LZO_DIR = /usr/local
+#LZO_DIR = $(LOCALBASE)
 
 
 ########### Building LZ4 support #############
@@ -119,7 +119,7 @@ UNSQUASHFS_OBJS = unsquashfs.o unsquash-1.o unsquash-2
 
 CFLAGS ?= -O2
 CFLAGS += $(EXTRA_CFLAGS) $(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 \
-	-D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" \
+	-D_LARGEFILE_SOURCE -DFNM_EXTMATCH=0 -D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" \
 	-Wall
 
 LIBS = -lpthread -lm
@@ -300,6 +300,6 @@ clean:
 
 .PHONY: install
 install: mksquashfs unsquashfs
-	mkdir -p $(INSTALL_DIR)
-	cp mksquashfs $(INSTALL_DIR)
-	cp unsquashfs $(INSTALL_DIR)
+	mkdir -p $(DESTDIR)$(PREFIX)/bin
+	${BSD_INSTALL_PROGRAM} mksquashfs $(DESTDIR)$(PREFIX)/bin
+	${BSD_INSTALL_PROGRAM} unsquashfs $(DESTDIR)$(PREFIX)/bin