File: Makefile.PL

package info (click to toggle)
libevent-perl 1.06-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 712 kB
  • ctags: 588
  • sloc: ansic: 3,020; perl: 1,128; makefile: 46
file content (34 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This -*- perl -*- script makes the Makefile

require 5.005; #most likely

use ExtUtils::MakeMaker;

# MakeMaker doesn't know about arch :(
sub MY::libscan {
  my ($self, $path) = @_;
  my ($dirs,$file) = ($self->splitpath($path))[1,2];

  return '' if grep /^(?:\.arch-ids|{arch}|,,.*|\+\+.*)$/,
    $self->splitdir($dirs), $file;
  return $self->MM::libscan($path);
}

# Parasoft's Insure++!
push @Safe, OPTIMIZE => '-g' if 0;
push @Safe, CC => 'insure', LD => 'insure', OPTIMIZE => '-g' if 0;

my @opt=(PREREQ_PM => { Test => 1 },
	 VERSION_FROM	=> "./lib/Event.pm",
	 NAME      	=> "Event",
	 TYPEMAPS       => ['./lib/Event/typemap'],
	 INC		=> '-Ic -Ilib/Event',
	 H		=> [glob("c/*"), glob("*.h"), "lib/Event/EventAPI.h"],
	 @Safe,
	 'clean'   	=> {FILES => join(" ",
					  map { "$_ */$_ */*/$_" }
					  qw(*% *.html *.b[ac]k *.old *.orig))
			   },
	);

WriteMakefile(@opt);