diff --git a/editors/tweak/Makefile b/editors/tweak/Makefile index 86583b999bae..d14ce1436b36 100644 --- a/editors/tweak/Makefile +++ b/editors/tweak/Makefile @@ -1,18 +1,19 @@ PORTNAME= tweak PORTVERSION= 3.02 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= https://www.chiark.greenend.org.uk/~sgtatham/${PORTNAME}/ MAINTAINER= pzn.unixbsd@gmail.com COMMENT= Efficient hex editor WWW= https://www.chiark.greenend.org.uk/~sgtatham/tweak/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENCE USES= gmake ncurses PLIST_FILES= bin/tweak \ - man/man1/tweak.1.gz + share/man/man1/tweak.1.gz .include diff --git a/editors/tweak/files/patch-Makefile b/editors/tweak/files/patch-Makefile index 6174b9a7d1cd..380d7a3b38f4 100644 --- a/editors/tweak/files/patch-Makefile +++ b/editors/tweak/files/patch-Makefile @@ -1,42 +1,42 @@ --- Makefile.orig 2016-03-22 21:12:51 UTC +++ Makefile @@ -16,15 +16,16 @@ # number in tweak.h, or else the resulting binary won't match # the version number on the archive. -CC := gcc -CFLAGS := -g -c -Wall $(XFLAGS) -LINK := gcc -LFLAGS := -LIBS := +CC ?= gcc +CFLAGS ?= -g +CFLAGS += -c -Wall $(XFLAGS) +LINK ?= ${CC} +LFLAGS ?= +LIBS ?= -PREFIX=$(DESTDIR)/usr/local -BINDIR=$(PREFIX)/bin -MANDIR=$(PREFIX)/man/man1 +PREFIX?=/usr/local +BINDIR?=$(PREFIX)/bin -+MANDIR?=$(PREFIX)/man/man1 ++MANDIR?=$(PREFIX)/share/man/man1 TWEAK := main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o @@ -63,10 +64,10 @@ release: tweak.1 btree.html rm -rf reltmp install: tweak tweak.1 - mkdir -p $(BINDIR) - install tweak $(BINDIR)/tweak - mkdir -p $(MANDIR) - install -m 0644 tweak.1 $(MANDIR)/tweak.1 + mkdir -p $(DESTDIR)$(BINDIR) + install tweak $(DESTDIR)$(BINDIR)/tweak + mkdir -p $(DESTDIR)$(MANDIR) + install -m 0644 tweak.1 $(DESTDIR)$(MANDIR)/tweak.1 clean: rm -f *.o tweak tweak.1 btree.html