summaryrefslogtreecommitdiff
path: root/devel/p5-Curses
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p5-Curses')
-rw-r--r--devel/p5-Curses/Makefile23
-rw-r--r--devel/p5-Curses/patches/patch-aa20
-rw-r--r--devel/p5-Curses/patches/patch-ab21
-rw-r--r--devel/p5-Curses/pkg/PLIST11
4 files changed, 45 insertions, 30 deletions
diff --git a/devel/p5-Curses/Makefile b/devel/p5-Curses/Makefile
index 09f389acce5..aa29dd25a33 100644
--- a/devel/p5-Curses/Makefile
+++ b/devel/p5-Curses/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: p5-Curses
-# Version required: 1.02
-# Date created: October 17th 1996
-# Whom: James FitzGibbon <jfitz@FreeBSD.org>
-#
-# $Id: Makefile,v 1.1.1.1 1998/07/13 15:50:36 tv Exp $
+# $NetBSD: Makefile,v 1.2 1998/07/13 16:55:59 tv Exp $
+# FreeBSD Id: Makefile,v 1.8 1998/04/04 13:58:26 vanilla Exp
#
DISTNAME= Curses-1.02
@@ -12,17 +8,14 @@ CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Curses
-MAINTAINER= jfitz@FreeBSD.ORG
-
-USE_PERL5= YES
+MAINTAINER= packages@netbsd.org
-MAN3= Curses.3
-MANPREFIX= ${PREFIX}/lib/perl5
+DEPENDS= ncurses-1.9.9g:../../devel/ncurses
-pre-configure:
- @ ln -s ${WRKSRC}/hints/c-freebsd.ncurses.h ${WRKSRC}/c-config.h
+USE_PERL5= YES
do-configure:
- @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL
+ @${LN} -sf ${WRKSRC}/hints/c-netbsd.ncurses.h ${WRKSRC}/c-config.h
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL
-.include <bsd.port.mk>
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Curses/patches/patch-aa b/devel/p5-Curses/patches/patch-aa
index 8c267ee536e..d912b0833ba 100644
--- a/devel/p5-Curses/patches/patch-aa
+++ b/devel/p5-Curses/patches/patch-aa
@@ -1,11 +1,11 @@
---- Makefile.PL.orig Tue Feb 17 06:50:19 1998
-+++ Makefile.PL Tue Mar 17 14:49:11 1998
-@@ -66,7 +66,7 @@
- 'freebsd' =>
- { 'bsd' => [ '' => '-lcurses -ltermcap' ],
- 'ncurses' => [ '' => '-lncurses' ],
-- 'default' => 'bsd'
-+ 'default' => 'ncurses'
+--- Makefile.PL.orig Mon Feb 16 17:50:19 1998
++++ Makefile.PL Mon Jul 13 12:17:51 1998
+@@ -76,7 +76,7 @@
+ 'ncurses' => [ '-I/usr/include/ncurses' => '-lncurses' ],
+ 'default' => 'ncurses'
},
- 'hpux' => [ '' => '-lcurses -ltermcap' ],
- 'irix' => [ '' => '-lcurses -ltermcap' ], ##
+- 'netbsd' => [ '' => '-lcurses -ltermcap' ],
++ 'netbsd' => [ "-I$ENV{'PREFIX'}/include" => "-L$ENV{'PREFIX'}/lib -lncurses" ],
+ 'next' => [ '' => '-lcurses -ltermcap' ],
+ 'os2' =>
+ { 'bsd' => [ '' => '-lcurses -ltermcap' ],
diff --git a/devel/p5-Curses/patches/patch-ab b/devel/p5-Curses/patches/patch-ab
new file mode 100644
index 00000000000..3a0fc1ef5ca
--- /dev/null
+++ b/devel/p5-Curses/patches/patch-ab
@@ -0,0 +1,21 @@
+--- /dev/null Mon Jul 13 12:28:43 1998
++++ hints/c-netbsd.ncurses.h Mon Jul 13 12:33:32 1998
+@@ -0,0 +1,18 @@
++/* Hint file for the NetBSD platform, ncurses version of libcurses.
++ *
++ * If this configuration doesn't work, look at the file "c-none.h"
++ * for how to set the configuration options.
++ */
++
++/* These hints thanks to "Andrew V. Stesin" <stesin@elvisti.kiev.ua> */
++
++#include <ncurses.h>
++#undef instr
++
++#define C_LONGNAME
++#define C_LONG0ARGS
++#undef C_LONG2ARGS
++
++#define C_TOUCHLINE
++#define C_TOUCH3ARGS
++#undef C_TOUCH4ARGS
diff --git a/devel/p5-Curses/pkg/PLIST b/devel/p5-Curses/pkg/PLIST
index a18d6b18eae..3a58834d9bb 100644
--- a/devel/p5-Curses/pkg/PLIST
+++ b/devel/p5-Curses/pkg/PLIST
@@ -1,6 +1,7 @@
-lib/perl5/man/man3/Curses.3.gz
+@comment $NetBSD: PLIST,v 1.2 1998/07/13 16:55:59 tv Exp $
+lib/perl5/man/man3/Curses.3
lib/perl5/site_perl/Curses.pm
-lib/perl5/site_perl/i386-freebsd/auto/Curses/Curses.bs
-lib/perl5/site_perl/i386-freebsd/auto/Curses/Curses.so
-lib/perl5/site_perl/i386-freebsd/auto/Curses/.packlist
-@dirrm lib/perl5/site_perl/i386-freebsd/auto/Curses
+lib/perl5/site_perl/${MACHINE_ARCH}-netbsd/auto/Curses/Curses.bs
+lib/perl5/site_perl/${MACHINE_ARCH}-netbsd/auto/Curses/Curses.so
+lib/perl5/site_perl/${MACHINE_ARCH}-netbsd/auto/Curses/.packlist
+@dirrm lib/perl5/site_perl/${MACHINE_ARCH}-netbsd/auto/Curses