diff --git a/devel/p5-Alien-wxWidgets/Makefile b/devel/p5-Alien-wxWidgets/Makefile new file mode 100644 index 00000000000..f5449cdcf6a --- /dev/null +++ b/devel/p5-Alien-wxWidgets/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $ + +COMMENT = building, finding and using wxWidgets binaries + +MODULES = cpan +DISTNAME = Alien-wxWidgets-0.44 +CATEGORIES = devel +CPAN_AUTHOR = MBARBON + +# perl +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +CONFIGURE_STYLE = modbuild + +pre-configure: + ${SUBST_CMD} ${WRKSRC}/inc/My/Build/Any_wx_config_Bakefile.pm + +RUN_DEPENDS = ::x11/wxWidgets + +BUILD_DEPENDS = ${RUN_DEPENDS} + +.include diff --git a/devel/p5-Alien-wxWidgets/distinfo b/devel/p5-Alien-wxWidgets/distinfo new file mode 100644 index 00000000000..75b43e033fd --- /dev/null +++ b/devel/p5-Alien-wxWidgets/distinfo @@ -0,0 +1,5 @@ +MD5 (Alien-wxWidgets-0.44.tar.gz) = 7Ms5Uhw0aqZDSPHv8Ivl4A== +RMD160 (Alien-wxWidgets-0.44.tar.gz) = byikhh2XH7JZor9hd/7D4RxZdF8= +SHA1 (Alien-wxWidgets-0.44.tar.gz) = 4WNVBLEGdziPfkIigZQbc8xZxRM= +SHA256 (Alien-wxWidgets-0.44.tar.gz) = 3LDtRuu0NUm7GBiECeRa4Xxrpe8ArjYUB1s0yF6bxMw= +SIZE (Alien-wxWidgets-0.44.tar.gz) = 642914 diff --git a/devel/p5-Alien-wxWidgets/patches/patch-Build_PL b/devel/p5-Alien-wxWidgets/patches/patch-Build_PL new file mode 100644 index 00000000000..760f3a03af9 --- /dev/null +++ b/devel/p5-Alien-wxWidgets/patches/patch-Build_PL @@ -0,0 +1,13 @@ +$OpenBSD: patch-Build_PL,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $ +--- Build.PL.orig Fri Aug 28 15:28:43 2009 ++++ Build.PL Fri Aug 28 15:30:12 2009 +@@ -97,8 +97,7 @@ EOT + } + } + chomp $build_prompt; +-my $build_wx = _askyn( $build, 'wxWidgets-build', +- $build_prompt, $build_wx_dflt ); ++my $build_wx = 0; + $build->notes( 'build_wx' => $build_wx ); + $build->notes( 'mk_portable' => $build->args('wxWidgets-portable') ); + if( $build_wx ) { diff --git a/devel/p5-Alien-wxWidgets/patches/patch-inc_My_Build_Any_wx_config_Bakefile_pm b/devel/p5-Alien-wxWidgets/patches/patch-inc_My_Build_Any_wx_config_Bakefile_pm new file mode 100644 index 00000000000..c1d40a4e44e --- /dev/null +++ b/devel/p5-Alien-wxWidgets/patches/patch-inc_My_Build_Any_wx_config_Bakefile_pm @@ -0,0 +1,34 @@ +$OpenBSD: patch-inc_My_Build_Any_wx_config_Bakefile_pm,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $ +use glob() to find all matching $lib.so.*, and take the last value +--- inc/My/Build/Any_wx_config_Bakefile.pm.orig Sun Aug 9 13:13:40 2009 ++++ inc/My/Build/Any_wx_config_Bakefile.pm Fri Aug 28 15:29:47 2009 +@@ -3,7 +3,6 @@ package My::Build::Any_wx_config_Bakefile; + use strict; + our @ISA = qw(My::Build::Any_wx_config::Base); + use Config; +- + sub awx_wx_config_data { + my $self = shift; + return $self->{awx_data} if $self->{awx_data}; +@@ -24,7 +23,7 @@ sub awx_wx_config_data { + my $libraries = $self->_call_wx_config( $arg ); + + foreach my $lib ( grep { m/\-lwx/ } split ' ', $libraries ) { +- $lib =~ m/-l(.*_(\w+)-.*)/ or die $lib; ++ $lib =~ m/-l(.*_(\w+))/ or die $lib; + my( $key, $name ) = ( $2, $1 ); + $key = 'base' if $key =~ m/^base[ud]{0,2}/; + $key = 'base' if $key =~ m/^carbon|^cocoa/ && $name !~ /osx_/; # here for Mac +@@ -34,7 +33,11 @@ sub awx_wx_config_data { + && $self->awx_is_monolithic + && $lib =~ m/(?:gtk2?|mac)[ud]{0,2}-/; + my $dll = "lib${name}." . $self->awx_dlext; +- ++ my @t = glob("${LOCALBASE}/lib/$dll.*"); ++ if ($#t >= 0) { ++ $dll = $t[-1]; ++ $dll =~ s/.*\///g; ++ } + $data{dlls}{$key} = { dll => $dll, + link => $lib }; + } diff --git a/devel/p5-Alien-wxWidgets/pkg/DESCR b/devel/p5-Alien-wxWidgets/pkg/DESCR new file mode 100644 index 00000000000..e0cff328645 --- /dev/null +++ b/devel/p5-Alien-wxWidgets/pkg/DESCR @@ -0,0 +1,2 @@ +Alien::wxWidgets can be used to detect and get configuration settings +from an installed wxWidgets. diff --git a/devel/p5-Alien-wxWidgets/pkg/PLIST b/devel/p5-Alien-wxWidgets/pkg/PLIST new file mode 100644 index 00000000000..8728a6f4ebd --- /dev/null +++ b/devel/p5-Alien-wxWidgets/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/09/04 16:05:55 landry Exp $ +${P5ARCH}/ +${P5ARCH}/Alien/ +${P5ARCH}/Alien/wxWidgets/ +${P5ARCH}/Alien/wxWidgets.pm +${P5ARCH}/Alien/wxWidgets/Config/ +${P5ARCH}/Alien/wxWidgets/Config/gtk2_2_8_7_gcc_3_2.pm +${P5ARCH}/Alien/wxWidgets/Utility.pm +@man man/man3p/Alien::wxWidgets.3p +@man man/man3p/Alien::wxWidgets::Utility.3p