Index: head/editors/uzap/Makefile =================================================================== --- head/editors/uzap/Makefile (revision 355530) +++ head/editors/uzap/Makefile (revision 355531) @@ -1,22 +1,20 @@ # Created by: joerg # $FreeBSD$ PORTNAME= uzap PORTVERSION= 1.0 CATEGORIES= editors MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= joerg DISTNAME= ${PORTNAME} MAINTAINER= joerg@FreeBSD.org COMMENT= Visual binary file editor # Has been posted to alt.sources in 1989 # http://www.megalextoria.com/usenet-archive/news097f1/b120/alt/sources/00000521.html NO_CDROM= This software may not be used to make a profit in any way. NO_WRKSUBDIR= yes -MAN1= uzap.1 -PLIST_FILES= bin/uzap +PLIST_FILES= bin/uzap man/man1/uzap.1.gz -NO_STAGE= yes .include Index: head/editors/uzap/files/patch-a =================================================================== --- head/editors/uzap/files/patch-a (revision 355530) +++ head/editors/uzap/files/patch-a (revision 355531) @@ -1,42 +1,42 @@ ---- Makefile.orig Thu Mar 30 10:04:11 1989 -+++ Makefile Sun Oct 19 02:17:28 2003 +--- Makefile.orig 1989-03-31 02:04:11.000000000 +0800 ++++ Makefile 2014-05-27 21:34:34.280623089 +0800 @@ -1,26 +1,28 @@ # Makefile for Uzap. -BINDIR = /usr/local -MANDIR = /usr/man/manl -MSECT = l +BINDIR = ${PREFIX}/bin/ +MANDIR = ${PREFIX}/man/man1 +MSECT = 1 + +all: uzap uzap: uzap.o edit.o search.o screen.o - cc -O uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap + $(CC) $(CFLAGS) uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap uzap.o: uzap.c - cc -c -O uzap.c + $(CC) -c $(CFLAGS) uzap.c edit.o: edit.c - cc -c -O edit.c + $(CC) -c $(CFLAGS) edit.c search.o: search.c - cc -c -O search.c + $(CC) -c $(CFLAGS) search.c screen.o: screen.c - cc -c -O screen.c + $(CC) -c $(CFLAGS) screen.c install: uzap - install -s -m 771 uzap $(BINDIR) - install -c -m 664 uzap.man $(MANDIR)/uzap.$(MSECT) -+ install -s -m 755 -o bin -g bin uzap $(BINDIR) -+ install -c -m 644 -o bin -g bin uzap.man $(MANDIR)/uzap.$(MSECT) ++ install -s -m 755 -o bin -g bin uzap $(DESTDIR)$(BINDIR) ++ install -c -m 644 -o bin -g bin uzap.man $(DESTDIR)$(MANDIR)/uzap.$(MSECT) clean: - rm -f *.o core uzap + rm -f *.o core *.core uzap