freebsd-ports/misc/clifm/files/patch-Makefile
Alexey Dokuchaev d279f6deeb misc/clifm: the port had been updated and improved (+)
- Update CliFM to version 1.2.1 which is more FreeBSD-friendly
  out of the box now; adjust the LICENSE (it's GPLv2 or later)
- Drop dependency on GNU make, custom MAKE_ENV, and `post-patch'
  target now that Makefile had been improved upstream
- Do not depend on phony build target to avoid needless rebuild
  of the program upon installation
- Install extra color themes by default (but allow to opt-out)
- Spell ``command line'' correctly in the port description text

Reported by:	portscout
2021-08-30 13:37:14 +00:00

23 lines
858 B
Text

--- Makefile.orig 2021-08-29 04:14:33 UTC
+++ Makefile
@@ -22,9 +22,9 @@ SRCDIR = src
SRC = $(SRCDIR)/*.c
HEADERS = $(SRCDIR)/*.h
-CFLAGS ?= -O3 -fstack-protector-strong -march=native -Wall
+CFLAGS += -Wall
LIBS_Linux ?= -lreadline -lacl -lcap -lmagic
-LIBS_FreeBSD ?= -I/usr/local/include -L/usr/local/lib -lreadline -lintl -lmagic
+LIBS_FreeBSD ?= -I$(LOCALBASE)/include -L$(LOCALBASE)/lib -lreadline -lintl -lmagic
LIBS_NetBSD ?= -I/usr/pkg/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lreadline -lintl -lmagic
LIBS_OpenBSD ?= -I/usr/local/include -L/usr/local/lib -lereadline -lintl -lmagic
@@ -36,7 +36,7 @@ clean:
$(RM) -- $(BIN)
$(RM) -f -- $(SRCDIR)/*.o
-install: build
+install: $(BIN)
$(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m 0755 $(BIN) $(DESTDIR)$(PREFIX)/bin
$(INSTALL) -m 0755 -d $(DESTDIR)$(PROG_DATADIR)