--- deliantra/Deliantra-Client/Makefile.PL 2006/04/09 02:44:50 1.11 +++ deliantra/Deliantra-Client/Makefile.PL 2006/05/17 15:18:57 1.41 @@ -5,27 +5,59 @@ *** microsoft compatibility forced us to only support manual configuration *** by editing Makefile.PL. complain to microsoft. +*** opengl 1.1 is required to run this client +*** opengl 1.2 is recommended to run this client +*** opengl 2.0 helps some more.... + +*** HINT: BerkeleyDB must be linked against version 4.3 or higher of libdb + EOF +if ($^O =~ /win32/i or $^O =~ /mswin/) { + warn "\ndo manual configuration by editing Makefile.PL, please\n\n"; + $INC = "-I/gtk/include -I/gtk/include/pango-1.0 -I/gtk/include/glib-2.0 -I/gtk/lib/glib-2.0/include/ -I/gtk/include/freetype2 -I/gtk/include/cairo"; + $LIBS = "-L/gtk/lib -lSDL -lSDL_image -lSDL_mixer -lpangoft2-1.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lcairo -lfontconfig -lz -lopengl32 -lm", +} else { + $INC = join " ", qx, qx, qx; + $LIBS = join " ", qx, "-lSDL_image -lSDL_mixer", qx, qx; + + $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"], + NAME => "CFClient", + INC => $INC, + LIBS => [$LIBS], EXE_FILES => [qw(bin/pclient)], - VERSION_FROM => "Client.pm", + VERSION_FROM => "CFClient.pm", + PREREQ_PM => { + BerkeleyDB => 0.27, + Crossfire => 0.1, + Time::HiRes => 0, + Event => 1.01, + AnyEvent => 0, + Compress::LZF => 1.6, + }, 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/OpenGL.pm' => '$(INST_LIBDIR)/CFClient/OpenGL.pm', + 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', + 'CFClient/MapWidget.pm' => '$(INST_LIBDIR)/CFClient/MapWidget.pm', + (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), + , + , + , + , + , + , + , + , + , + ), } );