use 5.006;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence the contents
# of the Makefile that is written.
WriteMakefile(
    'NAME'             => 'Pidgin',
    'VERSION'          => '@VERSION@',
    ($] >= 5.005 ? ## Add these new keywords supported since 5.005
      ('ABSTRACT_FROM' => '@srcdir@/Pidgin.pm', # finds $ABSTRACT
       'AUTHOR'        => 'Pidgin <https://pidgin.im/>') :  ()),
    'DEFINE'        => '@DEBUG_CFLAGS@ -Wno-float-equal',
    'dynamic_lib'       => { 'OTHERLDFLAGS' => '@LDFLAGS@' },
    'INC'           => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_builddir@ -I@top_srcdir@/libpurple -I@top_srcdir@/pidgin @GTK_CFLAGS@ @WEBKIT_CFLAGS@ -DHAVE_CONFIG_H',
    'OBJECT'        => '$(O_FILES)', # link all the C files too
    'TYPEMAPS'      => ["@top_srcdir@/libpurple/plugins/perl/common/typemap"],
#    'OPTIMIZE'      => '-g', # For debugging.
    'INSTALLDIRS'          => 'vendor',
    'INSTALL_BASE'         => '$(prefix)',
    'INSTALLVENDORARCH'    => '$(libdir)/pidgin/perl',
    'INSTALLVENDORMAN3DIR' => '$(mandir)/man3',
    'macro'                => {
        'prefix'      => '@prefix@',
        'exec_prefix' => '@exec_prefix@',
        'libdir'      => '@libdir@',
        'mandir'      => '@mandir@',
        'datarootdir' => '@datarootdir@',
    },
);
