--- IO-AIO/Makefile.PL 2005/08/19 01:07:27 1.6 +++ IO-AIO/Makefile.PL 2012/12/05 20:35:37 1.28 @@ -1,38 +1,114 @@ +use 5.008002; + use ExtUtils::MakeMaker; use Config; -require "autoconf.pm"; +if ($^O eq "MSWin32") { + # configuration on windows is hardcoded - as always -if ($^O =~ /freebsd/i) { - print <libeio/config.h" + or die "libeio/config.h: $!"; + print $fh < "./configure --prefix \Q$Config{prefixexp}\E" + and exit $? >> 8; + } } -autoconf::run_script() - and die "\nconfigure failed, check it's output above and autoconf/config.log\n\n"; +if ($^O =~ /linux/ && $Config{usemymalloc} eq "y") { + print <new({ dist => { PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', - }, + }, + depend => { + "AIO.c" => "schmorp.h libeio/eio.h libeio/xthread.h libeio/eio.c libeio/config.h", + }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", - LIBS => ['-lpthread -lrt', '-lpthread', '-lpthreads', ''], - clean => { FILES => "autoconf/config.h autoconf/config.log autoconf/config.status" }, + INC => $INC, + LIBS => $LIBS, + EXE_FILES => ["bin/treescan"], + PM => { + 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', + }, + PREREQ_PM => { + "common::sense" => 0, + }, + clean => { FILES => "libeio/config.h libeio/config.log libeio/config.status" }, }); $mm->flush;