--- deliantra/Deliantra-Client/Makefile.PL 2010/06/21 22:51:58 1.123 +++ deliantra/Deliantra-Client/Makefile.PL 2018/11/18 01:43:12 1.130 @@ -1,4 +1,5 @@ use Config; +use ExtUtils::CXX; use ExtUtils::MakeMaker; my $lddlflags = $Config{lddlflags}; @@ -52,58 +53,68 @@ $lddlflags .= " $1" while $LIBS =~ s/ (-Wl,\S+) / /; } -WriteMakefile( - dist => { - PREOP => 'pod2text bin/deliantra | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', - COMPRESS => 'gzip -9v', - SUFFIX => '.gz', - }, - NAME => "Deliantra::Client", - INC => $INC, - LIBS => [$LIBS], - LDDLFLAGS => $lddlflags, - EXE_FILES => [qw(bin/deliantra)], - VERSION_FROM => "DC.pm", - PREREQ_PM => { - common::sense => 3.1, - BDB => 1.83, - Deliantra => 1.30, - Time::HiRes => 0, - EV => 3.42, - Guard => 1, - AnyEvent => 4.331, - Compress::LZF => 3.41, - Pod::POM => 0.27, - LWP => 0, - JSON::XS => 2.2222, - }, - depend => { - "Client.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c rendercache.c', - }, - clean => { FILES => 'docwiki.pst' }, - PM => { - 'DC.pm' => '$(INST_LIBDIR)/Client/private/DC.pm', - 'DC/Protocol.pm' => '$(INST_LIBDIR)/Client/private/DC/Protocol.pm', - 'DC/OpenGL.pm' => '$(INST_LIBDIR)/Client/private/DC/OpenGL.pm', - 'DC/Texture.pm' => '$(INST_LIBDIR)/Client/private/DC/Texture.pm', - 'DC/DB.pm' => '$(INST_LIBDIR)/Client/private/DC/DB.pm', - 'DC/UI.pm' => '$(INST_LIBDIR)/Client/private/DC/UI.pm', - 'DC/MessageDistributor.pm' => '$(INST_LIBDIR)/Client/private/DC/MessageDistributor.pm', - 'DC/UI/Canvas.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Canvas.pm', - 'DC/UI/Dockable.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Dockable.pm', - 'DC/UI/Dockbar.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Dockbar.pm', - 'DC/UI/Inventory.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Inventory.pm', - 'DC/UI/SpellList.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/SpellList.pm', - 'DC/UI/Canvas.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Canvas.pm', - 'DC/UI/ChatView.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/ChatView.pm', - 'DC/Item.pm' => '$(INST_LIBDIR)/Client/private/DC/Item.pm', - 'DC/Pod.pm' => '$(INST_LIBDIR)/Client/private/DC/Pod.pm', - 'DC/MapWidget.pm' => '$(INST_LIBDIR)/Client/private/DC/MapWidget.pm', - 'DC/Macro.pm' => '$(INST_LIBDIR)/Client/private/DC/Macro.pm', - 'docwiki.pst' => '$(INST_LIBDIR)/Client/private/resources/docwiki.pst', - (map +($_ => "\$(INST_LIBDIR)/Client/private/$_"), manifest_resources), - } -); +extutils_cxx { + WriteMakefile( + dist => { + PREOP => 'pod2text bin/deliantra | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', + COMPRESS => 'gzip -9v', + SUFFIX => '.gz', + }, + NAME => "Deliantra::Client", + INC => $INC, + LIBS => [$LIBS], + LDDLFLAGS => $lddlflags, + EXE_FILES => [qw(bin/deliantra)], + VERSION_FROM => "DC.pm", + PREREQ_PM => { + common::sense => 3.6, + BDB => 1.83, + Deliantra => 1.31, + Time::HiRes => 0, + EV => 3.42, + Guard => 1, + AnyEvent => 4.331, + Compress::LZF => 3.41, + Pod::POM => 0.27, + LWP => 0, + JSON::XS => 2.2222, + IO::AIO => 4, + AnyEvent::AIO => 1, + Coro => 6, + Coro::EV => 0, + Urlader => 1, + }, + depend => { + "Client.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c rendercache.c', + }, + clean => { FILES => 'docwiki.pst' }, + PM => { + 'Client.pm' => '$(INST_LIBDIR)/Client.pm', + 'DC.pm' => '$(INST_LIBDIR)/Client/private/DC.pm', + 'DC/Main.pm' => '$(INST_LIBDIR)/Client/private/DC/Main.pm', + 'DC/Protocol.pm' => '$(INST_LIBDIR)/Client/private/DC/Protocol.pm', + 'DC/Audio.pm' => '$(INST_LIBDIR)/Client/private/DC/Audio.pm', + 'DC/OpenGL.pm' => '$(INST_LIBDIR)/Client/private/DC/OpenGL.pm', + 'DC/Texture.pm' => '$(INST_LIBDIR)/Client/private/DC/Texture.pm', + 'DC/DB.pm' => '$(INST_LIBDIR)/Client/private/DC/DB.pm', + 'DC/UI.pm' => '$(INST_LIBDIR)/Client/private/DC/UI.pm', + 'DC/MessageDistributor.pm' => '$(INST_LIBDIR)/Client/private/DC/MessageDistributor.pm', + 'DC/UI/Canvas.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Canvas.pm', + 'DC/UI/Dockable.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Dockable.pm', + 'DC/UI/Dockbar.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Dockbar.pm', + 'DC/UI/Inventory.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Inventory.pm', + 'DC/UI/SpellList.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/SpellList.pm', + 'DC/UI/Canvas.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/Canvas.pm', + 'DC/UI/ChatView.pm' => '$(INST_LIBDIR)/Client/private/DC/UI/ChatView.pm', + 'DC/Item.pm' => '$(INST_LIBDIR)/Client/private/DC/Item.pm', + 'DC/Pod.pm' => '$(INST_LIBDIR)/Client/private/DC/Pod.pm', + 'DC/MapWidget.pm' => '$(INST_LIBDIR)/Client/private/DC/MapWidget.pm', + 'DC/Macro.pm' => '$(INST_LIBDIR)/Client/private/DC/Macro.pm', + 'docwiki.pst' => '$(INST_LIBDIR)/Client/private/resources/docwiki.pst', + (map +($_ => "\$(INST_LIBDIR)/Client/private/$_"), manifest_resources), + } + ); +}; sub MY::postamble { my $self = shift;