From c6f9989a660ff2ec61cbd03eb8e56e6dc8f52189 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 8 Feb 2001 15:50:20 +0000 Subject: Try to be backwards compatible in readline emulation usage for older versions of NetBSD. --- math/capc-calc/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'math/capc-calc') diff --git a/math/capc-calc/Makefile b/math/capc-calc/Makefile index 25beb7fdc62..be1ec026103 100644 --- a/math/capc-calc/Makefile +++ b/math/capc-calc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/02/08 10:25:54 wiz Exp $ +# $NetBSD: Makefile,v 1.2 2001/02/08 15:50:20 wiz Exp $ # DISTNAME= calc-2.11.4t2 @@ -13,4 +13,12 @@ HOMEPAGE= http://www.isthe.com/chongo/tech/comp/calc/ NO_CONFIGURE= # defined +.if exists(/usr/include/readline.h) && !exists(/usr/include/readline/readline.h) +post-patch: + ${SED} -e "s|readline/readline.h|readline.h|" \ + -e "s|readline/history.h|history.h|" ${WRKSRC}/hist.c > \ + ${WRKSRC}/hist.c.new && \ + ${MV} ${WRKSRC}/hist.c.new ${WRKSRC}/hist.c +.endif + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3