From 964b1a95a7c8fe00445238bfa9615f0ab2622baa Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 5 Mar 2008 04:00:01 +0000 Subject: + Drop ncurses dependency because it was only there for readline on Linux. The readline buildlink3.mk file now pulls in the correct dependencies on its own. + Actually tell the configure script to use the readline dependency. + Add patch-ac which fixes the declaration of readline() to match the readline.h header (it takes a const char * argument). + Add full DESTDIR support. Bump the PKGREVISION to 2. --- math/bc/Makefile | 14 ++++++++------ math/bc/distinfo | 3 ++- math/bc/patches/patch-ac | 13 +++++++++++++ 3 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 math/bc/patches/patch-ac (limited to 'math/bc') diff --git a/math/bc/Makefile b/math/bc/Makefile index 81e2ee4ec93..566e0ab4ed2 100644 --- a/math/bc/Makefile +++ b/math/bc/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.7 2006/04/05 23:01:15 jlam Exp $ +# $NetBSD: Makefile,v 1.8 2008/03/05 04:00:01 jlam Exp $ DISTNAME= bc-1.06 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_GNU:=bc/} @@ -9,10 +9,12 @@ MAINTAINER= reed@reedmedia.net HOMEPAGE= http://www.gnu.org/software/bc/bc.html COMMENT= Arbitrary precision calculator language -USE_TOOLS+= flex -GNU_CONFIGURE= YES -INFO_FILES= # PLIST +PKG_DESTDIR_SUPPORT= user-destdir + +USE_TOOLS+= flex +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --with-readline +INFO_FILES= # PLIST -.include "../../devel/ncurses/buildlink3.mk" .include "../../devel/readline/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/math/bc/distinfo b/math/bc/distinfo index 7073e396b59..de088c335dd 100644 --- a/math/bc/distinfo +++ b/math/bc/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2005/02/23 12:06:54 agc Exp $ +$NetBSD: distinfo,v 1.3 2008/03/05 04:00:01 jlam Exp $ SHA1 (bc-1.06.tar.gz) = c8f258a7355b40a485007c40865480349c157292 RMD160 (bc-1.06.tar.gz) = e0394a090ad42f289a80de1dd26d2cf591f88481 Size (bc-1.06.tar.gz) = 278926 bytes SHA1 (patch-aa) = 338b4e1232f4d10dee35183dec16b8da62f0cabf SHA1 (patch-ab) = 7f51824877c1573c737c6fa5695d1f2443e3b335 +SHA1 (patch-ac) = f9213e083374b61a9db4aa3315d21a8579e0704f diff --git a/math/bc/patches/patch-ac b/math/bc/patches/patch-ac new file mode 100644 index 00000000000..43db1cc7372 --- /dev/null +++ b/math/bc/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2008/03/05 04:00:01 jlam Exp $ + +--- bc/scan.l.orig 2000-09-13 14:25:47.000000000 -0400 ++++ bc/scan.l +@@ -143,7 +143,7 @@ static int rl_len = 0; + + /* Definitions for readline access. */ + extern FILE *rl_instream; +-_PROTOTYPE(char *readline, (char *)); ++_PROTOTYPE(char *readline, (const char *)); + + /* rl_input puts upto MAX characters into BUF with the number put in + BUF placed in *RESULT. If the yy input file is the same as -- cgit v1.2.3