#!/usr/bin/perl -w ############################################################################ ## Name: Makefile.PL ## Purpose: Makefile.PL ## Author: Mattia Barbon ## Modified by: ## Created: 01/10/2000 ## RCS-ID: $Id: Makefile.PL 2250 2007-10-17 22:51:38Z mbarbon $ ## Copyright: (c) 2000-2007 Mattia Barbon ## Licence: This program is free software; you can redistribute it and/or ## modify it under the same terms as Perl itself ############################################################################# package core; use 5.006001; use strict; use FindBin; use lib "${FindBin::RealBin}/build"; use Wx::build::MakeMaker::Core; ( my $mmv = ExtUtils::MakeMaker->VERSION ) =~ s/_//g; if( $mmv == 6.21 ) { die < 0.82, 'Test::More' => 0.45, 'Test::Harness' => 2.26, 'Data::Dumper' => 0, 'ExtUtils::MakeMaker' => 6.17, 'Alien::wxWidgets' => 0.25, }; eval { require ExtUtils::MY_Metafile; ExtUtils::MY_Metafile->import; my_metafile ( { license => 'perl', dynamic_config => 1, requires => {}, build_requires => $build_requires, no_index => { directory => [ qw(samples script) ], package => [ qw(MY Parse::Yapp::Driver) ], }, configure_requires => { 'Alien::wxWidgets' => 0.25, }, } ); }; wxWriteMakefile( NAME => 'Wx', ABSTRACT_FROM => 'Wx.pm', AUTHOR => 'Mattia Barbon ', VERSION_FROM => 'Wx.pm', PREREQ_PM => { %$build_requires }, PMLIBDIRS => [ 'lib', 'build' ], EXE_FILES => [ qw(script/wx_xspp.pl script/wx_overload.pl) ], WX_CORE_LIB_MAYBE => $^O eq 'darwin' ? 'media html' : '', WX_CORE_LIB => 'adv core base', WX_OVERLOAD => { header => 'cpp/ovl_const.h', source => 'cpp/ovl_const.cpp', }, WX_TOP => 'Wx.pm', LICENSE => 'perl', ); END { print <