ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Makefile.PL
Revision: 1.24
Committed: Mon Apr 17 21:42:50 2006 UTC (18 years ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.23: +9 -27 lines
Log Message:
improve \!windows config

File Contents

# User Rev Content
1 root 1.1 use ExtUtils::MakeMaker;
2    
3 root 1.2 print <<EOF;
4    
5     *** microsoft compatibility forced us to only support manual configuration
6     *** by editing Makefile.PL. complain to microsoft.
7    
8 root 1.23 *** HINT: BerkeleyDB must be linked against version 4.4 or above of libdb
9    
10 root 1.2 EOF
11    
12 root 1.24 if ($^O =~ /win32/i or $^O =~ /mswin/) {
13     warn "do manual configuration, please\n";
14     $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";
15     $LIBS = "-lSDL -lSDL_image -lSDL_mixer -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz",
16     } else {
17     $INC = join " ", qx<sdl-config --cflags>, qx<pkg-config pangoft2 --cflags>;
18     $LIBS = join " ", qx<sdl-config --libs>, "-lSDL_image -lSDL_mixer", qx<pkg-config pangoft2 --libs>;
19     }
20 root 1.17
21 root 1.1 WriteMakefile(
22     dist => {
23 root 1.13 PREOP => 'pod2text CFClient.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
24 root 1.1 COMPRESS => 'gzip -9v',
25     SUFFIX => '.gz',
26     },
27 root 1.13 NAME => "CFClient",
28 root 1.10 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',
29 root 1.17 LIBS => ["-lSDL -lSDL_image -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz"],
30 root 1.2 EXE_FILES => [qw(bin/pclient)],
31 root 1.13 VERSION_FROM => "CFClient.pm",
32 root 1.21 PREREQ_PM => {
33 root 1.22 BerkeleyDB => 0.27,
34     SDL => 2.1,
35     Crossfire => 0.1,
36     Time::HiRes => 0,
37     Event => 1.01,
38     AnyEvent => 0,
39     Compress::LZF => 1.6,
40 root 1.21 },
41 elmex 1.7 PM => {
42 root 1.13 'CFClient.pm' => '$(INST_LIBDIR)/CFClient.pm',
43 root 1.14 'CFClient/UI.pm' => '$(INST_LIBDIR)/CFClient/UI.pm',
44 root 1.24 (map +($_ => "\$(INST_LIBDIR)/CFClient/$_"), <resources/*.ttf>, <resources/*.png>, <resources/sounds/*.wav>),
45 elmex 1.7 }
46 root 1.1 );