--- deliantra/Deliantra-Client/Makefile.PL 2006/04/12 20:06:36 1.16 +++ deliantra/Deliantra-Client/Makefile.PL 2006/05/14 22:58:24 1.39 @@ -5,8 +5,23 @@ *** microsoft compatibility forced us to only support manual configuration *** by editing Makefile.PL. complain to microsoft. +*** opengl 1.2 is required to run this client + +*** 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 CFClient.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -14,22 +29,32 @@ SUFFIX => '.gz', }, NAME => "CFClient", - 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 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz"], + INC => $INC, + LIBS => [$LIBS], EXE_FILES => [qw(bin/pclient)], 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 => { 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm', + 'CFClient/OpenGL.pm' => '$(INST_LIBDIR)/CFClient/OpenGL.pm', 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm', - 'resources/uifont.ttf' => '$(INST_LIBDIR)/CFClient/resources/uifont.ttf', - 'resources/uifontb.ttf' => '$(INST_LIBDIR)/CFClient/resources/uifontb.ttf', - 'resources/uifonti.ttf' => '$(INST_LIBDIR)/CFClient/resources/uifonti.ttf', - 'resources/uifontbi.ttf' => '$(INST_LIBDIR)/CFClient/resources/uifontbi.ttf', - 'resources/d1_bg.png' => '$(INST_LIBDIR)/CFClient/resources/d1_bg.png', - 'resources/d1_border_top.png' => '$(INST_LIBDIR)/CFClient/resources/d1_border_top.png', - 'resources/d1_border_bottom.png' => '$(INST_LIBDIR)/CFClient/resources/d1_border_bottom.png', - 'resources/d1_border_left.png' => '$(INST_LIBDIR)/CFClient/resources/d1_border_left.png', - 'resources/d1_border_right.png' => '$(INST_LIBDIR)/CFClient/resources/d1_border_right.png', - 'resources/b1_button_active.png' => '$(INST_LIBDIR)/CFClient/resources/b1_button_active.png', + 'CFClient/MapWidget.pm' => '$(INST_LIBDIR)/CFClient/MapWidget.pm', + (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), + , + , + , + , + , + , + , + , + ), } );