Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 1999 16:09:03 +0300 (MSK)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        flathill@FreeBSD.ORG (Seiichirou Hiraoka)
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: ports/9121
Message-ID:  <199901061309.QAA04191@icc.surw.chel.su>
In-Reply-To: <199812241602.IAA23777@freefall.freebsd.org> from Seiichirou Hiraoka at "Dec 24, 1998  8: 2:32 am"

next in thread | previous in thread | raw e-mail | index | archive | help
  Hello,

> Can't make this port. 
> Required library ncurses marked BROKEN.
> Please fix it first.  

  Try this patch:


diff -Nru hexedit/Makefile hexedit-1.0.0/Makefile
--- hexedit/Makefile	Fri Oct  9 10:18:13 1998
+++ hexedit-1.0.0/Makefile	Fri Dec 18 16:31:36 1998
@@ -1,30 +1,32 @@
 # New ports collection makefile for:	hexedit
-# Version required:			0.9.3
+# Version required:			1.0.0
 # Date created:				5 August 1998
 # Whom:					Andrey Zakhvatov
 #
-# $Id: Makefile,v 1.3 1998/10/09 10:05:49 asami Exp $
+# $Id: Makefile,v 1.1.1.1 1998/08/10 00:31:40 steve Exp $
 #
 
-DISTNAME=	hexedit-0.9.3
-CATEGORIES=	editors
-MASTER_SITES=	http://www.chez.com/prigaux/
-EXTRACT_SUFX=	.src.tgz
+DISTNAME=		hexedit-1.0.0
+CATEGORIES=		editors
+MASTER_SITES=		http://www.chez.com/prigaux/ \
+			${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR=	utils/file/hex
+EXTRACT_SUFX=		.src.tgz
 
-MAINTAINER=	andy@icc.surw.chel.su
+MAINTAINER=		andy@icc.surw.chel.su
 
-LIB_DEPENDS=	ncurses.4:${PORTSDIR}/devel/ncurses
-
-MANUAL_PACKAGE_BUILD=	depends on ncurses
+USE_AUTOCONF=		yes
 
 ALL_TARGET=
-WRKSRC=		${WRKDIR}/hexedit
+WRKSRC=			${WRKDIR}/hexedit
 
-MAN1=		hexedit.1
+MAN1=			hexedit.1
 
 do-install:
 	@ ${INSTALL_PROGRAM} ${WRKSRC}/hexedit ${PREFIX}/bin
 	@ ${INSTALL_MAN} ${WRKSRC}/hexedit.1 ${PREFIX}/man/man1
+
+post-install:
 .if !defined(NOPORTDOCS)
 	@ ${MKDIR} ${PREFIX}/share/doc/hexedit
 .for file in COPYING Changes TODO
diff -Nru hexedit/files/md5 hexedit-1.0.0/files/md5
--- hexedit/files/md5	Mon Aug 10 00:31:40 1998
+++ hexedit-1.0.0/files/md5	Thu Dec 17 17:45:22 1998
@@ -1 +1 @@
-MD5 (hexedit-0.9.3.src.tgz) = 81268b02efee3786c91eb30778fe8afc
+MD5 (hexedit-1.0.0.src.tgz) = cbf49bfa81f0e3c779b46c9cbe4266b7
diff -Nru hexedit/patches/patch-aa hexedit-1.0.0/patches/patch-aa
--- hexedit/patches/patch-aa	Mon Aug 10 00:31:40 1998
+++ hexedit-1.0.0/patches/patch-aa	Fri Dec 18 16:00:47 1998
@@ -1,19 +1,14 @@
---- Makefile	Sun Jul 26 14:10:26 1998
-+++ /home/andy/tmp/wrk/Makefile	Wed Aug  5 15:44:32 1998
-@@ -1,14 +1,14 @@
- PROJECT	= hexedit
- VERSION = 0.9.3
- 
--CC=gcc
-+#CC=gcc
- TARSOURCE = $(PROJECT)-$(VERSION).src.tgz
- DYNAMICBIN = $(PROJECT)-$(VERSION).bin.i386.dynamic.tgz
- HTMLSITE = $(PROJECT)-html-site.tar
- HTMLFILES = $(PROJECT).html
- TMPFILES = $(DYNAMICBIN) $(TARSOURCE) $(HTMLFILES)
- 
--CFLAGS = -Wall -O2
-+CFLAGS+= -I/usr/local/include/ncurses -I/usr/local/include -L/usr/local/lib -lncurses
- LOADLIBES = -lcurses
- 
- .PHONY: clean tgz docs
+--- hexedit.h.orig	Mon Aug 31 20:50:50 1998
++++ hexedit.h	Sun Dec  6 15:36:13 1998
+@@ -12,7 +12,11 @@
+ #if HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
++#if HAVE_NCURSES_H
++#include <ncurses.h>
++#else
+ #include <curses.h>
++#endif
+ #include <ctype.h>
+ #include <signal.h>
+ #if HAVE_SYS_WAIT_H
diff -Nru hexedit/patches/patch-ab hexedit-1.0.0/patches/patch-ab
--- hexedit/patches/patch-ab	Thu Jan  1 00:00:00 1970
+++ hexedit-1.0.0/patches/patch-ab	Fri Dec 18 16:01:10 1998
@@ -0,0 +1,16 @@
+--- configure.in.orig	Thu Sep 10 17:23:35 1998
++++ configure.in	Sun Dec  6 15:31:53 1998
+@@ -23,10 +23,11 @@
+ AC_PROG_INSTALL
+ 
+ dnl Checks for libraries.
+-AC_CHECK_LIB(curses, initscr, LIBS="$LIBS -lcurses",
+-AC_CHECK_LIB(ncurses, initscr, LIBS="$LIBS -lncurses"))
++AC_CHECK_LIB(ncurses, initscr, LIBS="$LIBS -lncurses",
++AC_CHECK_LIB(curses, initscr, LIBS="$LIBS -lcurses"))
+ 
+ dnl Checks for header files.
++AC_CHECK_HEADER(ncurses.h, [AC_DEFINE(HAVE_NCURSES_H)])
+ AC_HEADER_STDC
+ AC_HEADER_SYS_WAIT
+ AC_CHECK_HEADERS(fcntl.h unistd.h)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901061309.QAA04191>