freebsd-ports/sysutils/squashfs-tools/files/patch-Makefile
Ashish SHUKLA e220fe22ed - Fix portlint warnings
- Fix building on -CURRENT[1]
- Regenerate patches with `make makepatch'

Reported by:	pkg-fallout
2020-08-30 09:31:00 +00:00

30 lines
909 B
Text

--- 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