"Fossies" - the Fresh Open Source Software Archive

Member "libspf2-1.2.10/perl/Makefile.PL" (28 Jan 2012, 865 Bytes) of package /linux/privat/libspf2-1.2.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 require 5.005002;
    2 use strict;
    3 use ExtUtils::MakeMaker;
    4 
    5 my $cflags = q[-DHAVE_CONFIG_H];
    6 $cflags .= q[ -Wall -g -O0] if -d '/home/shevek';   # Maintainer/gcc stuff
    7 
    8 WriteMakefile(
    9     NAME            => 'Mail::SPF_XS',
   10     VERSION_FROM    => 'SPF_XS.pm',
   11     ABSTRACT_FROM   => "SPF_XS.pm",
   12     AUTHOR          => 'Shevek <cpan@anarres.org>',
   13     PREREQ_PM       => {
   14                     # 'Mail::SPF'       => 0.30,
   15                     'String::Escape'    => 0,
   16                     'Test::More'        => 0,
   17                         },
   18     OPTIMIZE        => $cflags,
   19     LIBS            => [ '-L../src/libspf2/.libs -lspf2', ],
   20 );
   21 
   22 sub MY::postamble {
   23     my $self = shift;
   24     my $old = $self->MM::postamble(@_);
   25     chomp($old);
   26     my $new = <<'EON';
   27 
   28 $(INST_DYNAMIC) : ../src/libspf2/.libs/libspf2.so.*
   29 
   30 .PHONY : aux dep readme clean check
   31 
   32 aux : readme dep
   33 
   34 readme : SPF_XS.pm
   35     perldoc -t SPF_XS.pm > README
   36 
   37 check :: test
   38     # Could use valgrind here.
   39 
   40 clean ::
   41     rm -f Makefile.old
   42 
   43 EON
   44     return $old . $new;
   45 }