From dae78a3e29d1fd860c011c1e320e7fef114bc1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 22 Sep 2020 13:06:59 +0000 Subject: [PATCH] Fix build with -fno-common While here add license (GPLv2) --- editors/hexcurse/Makefile | 4 ++++ editors/hexcurse/files/patch-include_hex.h | 11 +++++++++++ editors/hexcurse/files/patch-src_file.c | 13 +++++++++++++ .../files/{patch-getopt.c => patch-src_getopt.c} | 0 4 files changed, 28 insertions(+) create mode 100644 editors/hexcurse/files/patch-include_hex.h create mode 100644 editors/hexcurse/files/patch-src_file.c rename editors/hexcurse/files/{patch-getopt.c => patch-src_getopt.c} (100%) diff --git a/editors/hexcurse/Makefile b/editors/hexcurse/Makefile index 8f6363a834e4..9be2314f8554 100644 --- a/editors/hexcurse/Makefile +++ b/editors/hexcurse/Makefile @@ -3,12 +3,16 @@ PORTNAME= hexcurse PORTVERSION= 1.55 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= https://BSDforge.com/projects/source/editors/hexcurse/ MAINTAINER= jadawin@FreeBSD.org COMMENT= Versatile ncurses-based hex editor +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + USES= ncurses GNU_CONFIGURE= yes diff --git a/editors/hexcurse/files/patch-include_hex.h b/editors/hexcurse/files/patch-include_hex.h new file mode 100644 index 000000000000..6f150b71928e --- /dev/null +++ b/editors/hexcurse/files/patch-include_hex.h @@ -0,0 +1,11 @@ +--- include/hex.h.orig 2003-12-23 03:08:25 UTC ++++ include/hex.h +@@ -111,7 +111,7 @@ extern char EBCDIC[256]; + #define max(a,b) ((a) >(b) ? (a) : (b)) + #endif + +-FILE *fpIN, *fpOUT; /* global file ptrs */ ++extern FILE *fpIN, *fpOUT; /* global file ptrs */ + + /* function prototypes */ + diff --git a/editors/hexcurse/files/patch-src_file.c b/editors/hexcurse/files/patch-src_file.c new file mode 100644 index 000000000000..b124799c813a --- /dev/null +++ b/editors/hexcurse/files/patch-src_file.c @@ -0,0 +1,13 @@ +--- src/file.c.orig 2003-12-15 13:43:47 UTC ++++ src/file.c +@@ -18,7 +18,9 @@ + \******************************************************************************/ + #include "hex.h" + +-/*******************************************************\ ++FILE *fpIN, *fpOUT; /* global file ptrs */ ++ ++/******************************************************* \ + * Description: prints out a line of text to the screen* + * the current address line and both the * + * hex and decimal values for the current * diff --git a/editors/hexcurse/files/patch-getopt.c b/editors/hexcurse/files/patch-src_getopt.c similarity index 100% rename from editors/hexcurse/files/patch-getopt.c rename to editors/hexcurse/files/patch-src_getopt.c