diff options
author | marino <marino@FreeBSD.org> | 2016-01-31 20:18:31 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2016-01-31 20:18:31 +0800 |
commit | 065e9918b4f7d1890bd3b9432225d803052b4166 (patch) | |
tree | cb8413008f703e83092ddefee2a7008e9410f10c /editors | |
parent | 0dcf9debc5274399600a4d9a179db88c48a3a9c4 (diff) | |
download | freebsd-ports-gnome-065e9918b4f7d1890bd3b9432225d803052b4166.tar.gz freebsd-ports-gnome-065e9918b4f7d1890bd3b9432225d803052b4166.tar.zst freebsd-ports-gnome-065e9918b4f7d1890bd3b9432225d803052b4166.zip |
editors/uzap: document ncurses reqmt (USES+=ncurses), respect LDFLAGS
while here, regenerate remaining patch and rename both of them.
approved by: infrastructure blanket
Diffstat (limited to 'editors')
-rw-r--r-- | editors/uzap/Makefile | 2 | ||||
-rw-r--r-- | editors/uzap/files/patch-Makefile (renamed from editors/uzap/files/patch-a) | 6 | ||||
-rw-r--r-- | editors/uzap/files/patch-b | 19 | ||||
-rw-r--r-- | editors/uzap/files/patch-search.c | 11 |
4 files changed, 16 insertions, 22 deletions
diff --git a/editors/uzap/Makefile b/editors/uzap/Makefile index f7d243808e68..77e4bc58d0d3 100644 --- a/editors/uzap/Makefile +++ b/editors/uzap/Makefile @@ -10,6 +10,8 @@ DISTNAME= ${PORTNAME} MAINTAINER= joerg@FreeBSD.org COMMENT= Visual binary file editor +USES= ncurses + # 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. diff --git a/editors/uzap/files/patch-a b/editors/uzap/files/patch-Makefile index 67701b52ddf0..260e4fc677d9 100644 --- a/editors/uzap/files/patch-a +++ b/editors/uzap/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig 1989-03-31 02:04:11.000000000 +0800 -+++ Makefile 2014-05-27 21:34:34.280623089 +0800 +--- Makefile.orig 1989-03-30 18:04:11 UTC ++++ Makefile @@ -1,26 +1,28 @@ # Makefile for Uzap. -BINDIR = /usr/local @@ -13,7 +13,7 @@ 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 ++ $(CC) $(CFLAGS) uzap.o edit.o search.o screen.o $(LDFLAGS) -lncurses -o uzap uzap.o: uzap.c - cc -c -O uzap.c diff --git a/editors/uzap/files/patch-b b/editors/uzap/files/patch-b deleted file mode 100644 index 39cfa5f07e90..000000000000 --- a/editors/uzap/files/patch-b +++ /dev/null @@ -1,19 +0,0 @@ -*** search.c.orig Thu Mar 30 20:04:12 1989 ---- search.c Mon Jun 19 22:17:24 1995 -*************** -*** 217,223 **** - } - } - for(x= 0; x < len - 1; x+= 2){ -! strcpy(hdigit, hex + (len - x - 2), 2); - hdigit[2]= '\0'; - - if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48; ---- 217,223 ---- - } - } - for(x= 0; x < len - 1; x+= 2){ -! strncpy(hdigit, hex + (len - x - 2), 2); - hdigit[2]= '\0'; - - if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48; diff --git a/editors/uzap/files/patch-search.c b/editors/uzap/files/patch-search.c new file mode 100644 index 000000000000..ccaebe7e1fe7 --- /dev/null +++ b/editors/uzap/files/patch-search.c @@ -0,0 +1,11 @@ +--- search.c.orig 1989-03-30 18:04:12 UTC ++++ search.c +@@ -217,7 +217,7 @@ unsigned char hdigit[16], temp[128]; + } + } + for(x= 0; x < len - 1; x+= 2){ +- strcpy(hdigit, hex + (len - x - 2), 2); ++ strncpy(hdigit, hex + (len - x - 2), 2); + hdigit[2]= '\0'; + + if(hdigit[0] < 96) hdigit[0]= hdigit[0] - 48; |