View | Details | Raw Unified | Return to bug 132160
Collapse All | Expand All

(-)/usr/ports/lang/p5-ePerl/Makefile (-9 / +3 lines)
Lines 2-8 Link Here
2
# Date created:		03-Sep-1997
2
# Date created:		03-Sep-1997
3
# Whom:	      		Ralf S. Engelschall <rse@engelschall.com>
3
# Whom:	      		Ralf S. Engelschall <rse@engelschall.com>
4
#
4
#
5
# $FreeBSD: ports/lang/p5-ePerl/Makefile,v 1.29 2009/01/08 17:30:03 erwin Exp $
5
# $FreeBSD: ports/lang/p5-ePerl/Makefile,v 1.30 2009/02/27 01:41:31 linimon Exp $
6
#
6
#
7
7
8
PORTNAME=	eperl
8
PORTNAME=	eperl
Lines 12-28 Link Here
12
MASTER_SITE_SUBDIR=	tool/${PORTNAME}
12
MASTER_SITE_SUBDIR=	tool/${PORTNAME}
13
PKGNAMEPREFIX=	p5-
13
PKGNAMEPREFIX=	p5-
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	flo@kasimir.com
16
COMMENT=	Perl Modules of ePerl package: Parse::ePerl, Apache::ePerl
16
COMMENT=	Perl Modules of ePerl package: Parse::ePerl, Apache::ePerl
17
17
18
PERL_CONFIGURE=	yes
18
PERL_CONFIGURE=	yes
19
19
20
MAN3=		Parse::ePerl.3 Apache::ePerl.3
20
MAN3=		Parse::ePerl.3 Apache::ePerl.3
21
21
22
.include <bsd.port.pre.mk>
22
.include <bsd.port.mk>
23
24
.if ${OSVERSION} >= 800058
25
BROKEN=		does not build
26
.endif
27
28
.include <bsd.port.post.mk>
(-)/usr/ports/lang/p5-ePerl/files/patch-eperl_parse.c (-2 / +22 lines)
Lines 1-5 Link Here
1
--- eperl_parse.c.orig	Thu Nov 21 21:27:34 2002
1
--- eperl_parse.c.orig	2009-02-27 12:23:36.000000000 +0000
2
+++ eperl_parse.c	Thu Nov 21 21:27:42 2002
2
+++ eperl_parse.c	2009-02-27 12:25:38.000000000 +0000
3
@@ -298,6 +298,7 @@
3
@@ -298,6 +298,7 @@
4
     return NULL;
4
     return NULL;
5
 }
5
 }
Lines 16-18 Link Here
16
 
16
 
17
 char *strncasestr(char *buf, char *str, int n)
17
 char *strncasestr(char *buf, char *str, int n)
18
 {
18
 {
19
@@ -326,6 +328,9 @@
20
     return NULL;
21
 }
22
 
23
+#if defined(__FreeBSD__)  
24
+#include <osreldate.h>  
25
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100  
26
 char *strndup(char *buf, int n)
27
 {
28
     char *cp;
29
@@ -334,7 +339,8 @@
30
     strncpy(cp, buf, n);
31
     return cp;
32
 }
33
-
34
+#endif
35
+#endif
36
 
37
 /*
38
 **  convert buffer from bristled format to plain format
(-)/usr/ports/lang/p5-ePerl/files/patch-eperl_proto.h (-3 / +10 lines)
Lines 1-5 Link Here
1
--- eperl_proto.h.orig	Fri Jul 10 09:52:24 1998
1
--- eperl_proto.h.orig	2009-02-27 12:23:02.000000000 +0000
2
+++ eperl_proto.h	Wed May 30 19:13:42 2007
2
+++ eperl_proto.h	2009-02-27 12:24:39.000000000 +0000
3
@@ -36,6 +36,7 @@
3
@@ -36,6 +36,7 @@
4
 #define EPERL_PROTO_H 1
4
 #define EPERL_PROTO_H 1
5
 
5
 
Lines 8-19 Link Here
8
 
8
 
9
 /* eperl_main.c */
9
 /* eperl_main.c */
10
 extern int mode;
10
 extern int mode;
11
@@ -79,7 +80,7 @@
11
@@ -79,9 +80,14 @@
12
 extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
12
 extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
13
 extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
13
 extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
14
 extern char *strnchr(char *buf, char chr, int n);
14
 extern char *strnchr(char *buf, char chr, int n);
15
-extern char *strnstr(char *buf, char *str, int n);
15
-extern char *strnstr(char *buf, char *str, int n);
16
+/*extern char *strnstr(char *buf, char *str, int n);*/
16
+/*extern char *strnstr(char *buf, char *str, int n);*/
17
 extern char *strncasestr(char *buf, char *str, int n);
17
 extern char *strncasestr(char *buf, char *str, int n);
18
+#if defined(__FreeBSD__)
19
+#include <osreldate.h>
20
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100
18
 extern char *strndup(char *buf, int n);
21
 extern char *strndup(char *buf, int n);
22
+#endif
23
+#endif
19
 extern char *ePerl_Bristled2Plain(char *cpBuf);
24
 extern char *ePerl_Bristled2Plain(char *cpBuf);
25
 
26
 /* eperl_pp.c */

Return to bug 132160