- fix potential 64-bit issues by including a missing header

- honor CFLAGS
- regen PLIST while here
This commit is contained in:
jasper 2009-01-23 16:13:50 +00:00
parent d42eb01bf6
commit 38ef4736e9
5 changed files with 36 additions and 3 deletions

View File

@ -1,14 +1,16 @@
# $OpenBSD: Makefile,v 1.9 2007/09/16 00:44:00 merdely Exp $
# $OpenBSD: Makefile,v 1.10 2009/01/23 16:13:50 jasper Exp $
COMMENT= hierarchical notebook
DISTNAME= hnb-1.9.17
PKGNAME= ${DISTNAME}p0
CATEGORIES= editors
HOMEPAGE= http://hnb.sourceforge.net/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-Makefile,v 1.1 2009/01/23 16:13:50 jasper Exp $
--- Makefile.orig Fri Jan 23 17:09:46 2009
+++ Makefile Fri Jan 23 17:10:15 2009
@@ -1,5 +1,5 @@
LIBS=-lncurses libcli/libcli.a
-CFLAGS=-I.. -Ilibcli -DHAVE_CONFIG_H -Wall -pedantic -g
+CFLAGS+=-I.. -Ilibcli -DHAVE_CONFIG_H -Wall -pedantic -g
CFILES=$(wildcard *.c)
OBJS=$(patsubst %.c,%.o,$(CFILES))

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-expanded_c,v 1.1 2009/01/23 16:13:50 jasper Exp $
--- expanded.c.orig Fri Jan 23 17:08:42 2009
+++ expanded.c Fri Jan 23 17:09:16 2009
@@ -18,6 +18,8 @@
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <string.h>
+
#include "tree.h"
#include "cli.h"
#define NULL 0

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-libcli_Makefile,v 1.1 2009/01/23 16:13:50 jasper Exp $
--- libcli/Makefile.orig Fri Jan 23 17:11:28 2009
+++ libcli/Makefile Fri Jan 23 17:11:31 2009
@@ -1,4 +1,4 @@
-CFLAGS = -Wall
+CFLAGS += -Wall
OBJS = cli.o cli_history.o cli_tokenize.o

View File

@ -1,5 +1,5 @@
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 18:01:06 espie Exp $
bin/hnb
@comment $OpenBSD: PLIST,v 1.4 2009/01/23 16:13:50 jasper Exp $
@bin bin/hnb
@man man/man1/hnb.1
share/doc/hnb/
share/doc/hnb/Documentation.html