summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2008-06-11 14:58:38 +0000
committerhe <he@pkgsrc.org>2008-06-11 14:58:38 +0000
commitdb64b9ee45828b32736b4b427159a500c2dafc8b (patch)
tree8df1fed972e745f3aff493f96205dec3349417a3 /devel
parentf3ddd935e0c2f590c23ee2e5c3bf37d6e5076155 (diff)
downloadpkgsrc-db64b9ee45828b32736b4b427159a500c2dafc8b.tar.gz
Fix a long-standing bug: if this package is installed on NetBSD with
readline emulation, the GNU readline library which this module depends on would not be picked up, causing "perl -d -e '1;'" to fail to start the perl debugger because it could not find the rl_initialize function. Instead, point includes and libs into ${PREFIX}, so that we have a chance of picking up the proper GNU readline library.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Term-ReadLine/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/p5-Term-ReadLine/Makefile b/devel/p5-Term-ReadLine/Makefile
index 5e9341e884e..61035050332 100644
--- a/devel/p5-Term-ReadLine/Makefile
+++ b/devel/p5-Term-ReadLine/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/07/12 17:22:38 heinz Exp $
+# $NetBSD: Makefile,v 1.19 2008/06/11 14:58:38 he Exp $
DISTNAME= Term-ReadLine-Gnu-1.16
PKGNAME= p5-${DISTNAME:S/-Gnu//}
@@ -15,6 +15,8 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_GNU_READLINE= yes
PERL5_PACKLIST= auto/Term/ReadLine/Gnu/.packlist
+MAKE_PARAMS+= --includedir=${PREFIX}/include --libdir=${PREFIX}/lib
+
REPLACE_PERL+= Gnu/XS.pm Gnu/euc_jp.pm
.include "../../devel/readline/buildlink3.mk"