Index: head/devel/p5-Event-Lib/Makefile =================================================================== --- head/devel/p5-Event-Lib/Makefile (revision 433806) +++ head/devel/p5-Event-Lib/Makefile (revision 433807) @@ -1,21 +1,19 @@ # Created by: Fabian Keil # $FreeBSD$ PORTNAME= Event-Lib PORTVERSION= 1.03 PORTREVISION= 5 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- -MAINTAINER= fk@fabiankeil.de +MAINTAINER= ports@FreeBSD.org COMMENT= Makes libevent(3) accessible with Perl LIB_DEPENDS= libevent.so:devel/libevent2 - -BROKEN= fails to build with libevent 2.1 USES= perl5 USE_PERL5= configure .include Index: head/devel/p5-Event-Lib/files/patch-Lib.xs =================================================================== --- head/devel/p5-Event-Lib/files/patch-Lib.xs (nonexistent) +++ head/devel/p5-Event-Lib/files/patch-Lib.xs (revision 433807) @@ -0,0 +1,14 @@ +--- Lib.xs.orig 2007-07-29 11:02:37 UTC ++++ Lib.xs +@@ -125,6 +125,11 @@ void free_args (struct event_args *args) + Safefree(args); + } + ++#if LIBEVENT_VERSION_NUMBER > 0x02010101 ++// From event-internal.h ++#define ev_arg ev_evcallback.evcb_arg ++#endif ++ + void refresh_event (struct event_args *args, char *class) { + SV *sv = newSV(0); + sv_setref_pv(sv, class, (void*)args); Property changes on: head/devel/p5-Event-Lib/files/patch-Lib.xs ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/p5-Event-Lib/files/patch-Makefile.PL =================================================================== --- head/devel/p5-Event-Lib/files/patch-Makefile.PL (revision 433806) +++ head/devel/p5-Event-Lib/files/patch-Makefile.PL (revision 433807) @@ -1,54 +1,52 @@ ---- Makefile.PL.orig Tue Mar 7 08:37:40 2006 -+++ Makefile.PL Mon Jun 5 23:31:13 2006 -@@ -2,7 +2,11 @@ +--- Makefile.PL.orig 2007-07-29 11:14:02 UTC ++++ Makefile.PL +@@ -2,7 +2,11 @@ use 5.006; use ExtUtils::MakeMaker; use Config; -my %args = map { split /\s*=\s*/ } @ARGV; +my %args; +foreach $_ (@ARGV){ + m/(.*?)=(.*)/; + $args{$1} = $2; +} # purge @ARGV of CCFLAGS ---- Makefile.PL -+++ Makefile.PL -@@ -17,8 +17,9 @@ sub have_libevent { +@@ -13,8 +17,9 @@ sub have_libevent { my $LIBS = $args{ LIBS } || "-levent"; my $INC = $args{ INC } || "-I/usr/include"; if ($^O eq "freebsd") { - $LIBS = "$LIBS -L/usr/local/lib"; - $INC = "$INC -I/usr/local/include"; + my $LOCALBASE = $ENV{LOCALBASE} || '/usr/local'; + $LIBS .= " -L$LOCALBASE/lib"; + $INC .= " -I$LOCALBASE/include"; } elsif ($^O eq "darwin") { $LIBS = "$LIBS -L/sw/lib -L/opt/local/lib"; -@@ -59,8 +60,9 @@ sub get_defines { +@@ -55,8 +60,9 @@ sub get_defines { my $LIBS = $args{ LIBS } || "-levent"; my $INC = $args{ INC } || "-I/usr/include"; if ($^O eq "freebsd") { - $LIBS = "-L/usr/local/lib $LIBS"; - $INC = "-I/usr/local/include $INC"; + my $LOCALBASE = $ENV{LOCALBASE} || '/usr/local'; + $LIBS = "-L$LOCALBASE/lib $LIBS"; + $INC = "-I$LOCALBASE/include $INC"; } elsif ($^O eq "darwin") { $LIBS = "-L/sw/lib -L/opt/local/lib $LIBS"; -@@ -100,6 +102,12 @@ EOD +@@ -96,6 +102,12 @@ EOD $args{LIBS} = '-levent -lm' if ! exists $args{LIBS}; +if ($^O eq "freebsd") { + my $LOCALBASE = $ENV{LOCALBASE} || '/usr/local'; + $args{LIBS} .= " -L$LOCALBASE/lib"; + $args{INC} .= " -I$LOCALBASE/include"; +} + my $DEFINES = get_defines( event_priority_init => { code_pre => '', code => 'event_priority_init(10)',