Files
ports/security/tthsum/files/patch-Makefile
T
Dmitry Marakasov 1ba8497aa8 - Fix LICENSE
- Add LICENSE_FILE
- Switch to new test framework
- Simplify DESTDIR handling

Approved by:	portmgr blanket
2018-02-26 09:03:01 +00:00

38 lines
951 B
Plaintext

--- Makefile.orig 2013-08-13 18:58:36 UTC
+++ Makefile
@@ -11,16 +11,6 @@ ifeq ($(MAN),)
MAN = $(DESTDIR)/usr/local/man
endif
-ifeq ($(DEBUG),)
- override CPPFLAGS += -DNDEBUG
- CFLAGS += -O3 #-fno-stack-protector #-march=native
- LDFLAGS += -O3 #-march=native
-else
- override CPPFLAGS += -DDEBUG
- CFLAGS += -g #-pg
- LDFLAGS += -g #-pg
-endif
-
CC ?= gcc
GZIP = gzip -9 -c
RM = rm -rf
@@ -47,12 +37,12 @@ TSTENTRY = $(BINS)/test.o
override CPPFLAGS += $(shell cat $(BINS)/autoconf.cppflags)
-all: tthsum manual test runtest
+all: tthsum manual
-install: tthsum manual test runtest
- install -d $(BIN) $(MAN)/man1
- install $(BINS)/tthsum $(BIN)
- install -m644 $(SHARES)/tthsum.1.gz $(MAN)/man1
+install: tthsum manual
+ install -d $(BIN) $(DESTDIR)$(MANPREFIX)/man/man1
+ install $(BINS)/tthsum $(DESTDIR)$(PREFIX)/bin
+ install -m644 $(SHARES)/tthsum.1.gz $(DESTDIR)$(MANPREFIX)/man/man1
uninstall:
$(RM) $(BIN)/tthsum