--- deliantra/Deliantra-Client/Makefile.PL 2006/04/09 02:44:50 1.11 +++ deliantra/Deliantra-Client/Makefile.PL 2006/07/24 08:23:27 1.55 @@ -2,30 +2,79 @@ print <, qx; + $LIBS = join " ", qx, "-lSDL_image -lSDL_mixer", qx, "-lGL"; + + $INC =~ s/\n/ /g for $INC, $LIBS; +} WriteMakefile( dist => { - PREOP => 'pod2text Client.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', + PREOP => 'pod2text CFClient.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', }, - NAME => "Crossfire::Client", - INC => '-I/usr/include/SDL -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2', - LIBS => ["-lSDL -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz"], - EXE_FILES => [qw(bin/pclient)], - VERSION_FROM => "Client.pm", + NAME => "CFClient", + INC => $INC, + LIBS => [$LIBS], + EXE_FILES => [qw(bin/cfplus)], + VERSION_FROM => "CFClient.pm", + PREREQ_PM => { + BerkeleyDB => 0.27, + Crossfire => 0.1, + Time::HiRes => 0, + Event => 1.01, + AnyEvent => 0, + Compress::LZF => 1.6, + Pod::POM => 0.15, + YAML => 0.58, + }, + depend => { + "CFClient.o" => 'glfunc.h pangoopengl.h pango-font.c pango-fontmap.c pango-render.c texcache.c', + }, PM => { - 'Client.pm' => '$(INST_LIBDIR)/Client.pm', - 'Client/Widget.pm' => '$(INST_LIBDIR)/Client/Widget.pm', - 'resources/uifont.ttf' => '$(INST_LIBDIR)/resources/uifont.ttf', - 'resources/d1_bg.png' => '$(INST_LIBDIR)/resources/d1_bg.png', - 'resources/d1_border_top.png' => '$(INST_LIBDIR)/resources/d1_border_top.png', - 'resources/d1_border_bottom.png' => '$(INST_LIBDIR)/resources/d1_border_bottom.png', - 'resources/d1_border_left.png' => '$(INST_LIBDIR)/resources/d1_border_left.png', - 'resources/d1_border_right.png' => '$(INST_LIBDIR)/resources/d1_border_right.png', + 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm', + 'CFClient/Protocol.pm' => '$(INST_LIBDIR)/CFClient/Protocol.pm', + 'CFClient/OpenGL.pm' => '$(INST_LIBDIR)/CFClient/OpenGL.pm', + 'CFClient/Texture.pm' => '$(INST_LIBDIR)/CFClient/Texture.pm', + 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', + 'CFClient/Pod.pm' => '$(INST_LIBDIR)/CFClient/Pod.pm', + 'CFClient/MapWidget.pm' => '$(INST_LIBDIR)/CFClient/MapWidget.pm', + 'CFClient/BindingEditor.pm' => '$(INST_LIBDIR)/CFClient/BindingEditor.pm', + (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), + , + , + , + , + , + , + , + , + , + , + ), } );