xref: /openbsd-src/gnu/usr.bin/perl/dist/Thread-Queue/Makefile.PL (revision f2a19305cfc49ea4d1a5feb55cd6c283c6f1e031)
1# Module makefile for Thread::Queue (using ExtUtils::MakeMaker)
2
3require 5.008;
4
5use strict;
6use warnings;
7
8use ExtUtils::MakeMaker;
9
10# Construct make file
11WriteMakefile(
12    'NAME'          => 'Thread::Queue',
13    'AUTHOR'        => 'Jerry D. Hedden <jdhedden AT cpan DOT org>',
14    'VERSION_FROM'  => 'lib/Thread/Queue.pm',
15    'ABSTRACT_FROM' => 'lib/Thread/Queue.pm',
16    'PREREQ_PM'     => {
17        'threads::shared'   => 1.21,
18        'Scalar::Util'      => 1.10,
19        'Test::More'        => 0.50,
20        'Thread::Semaphore' => 0,
21    },
22    'INSTALLDIRS'   => (($] < 5.011) ? 'perl' : 'site'),
23
24    ((ExtUtils::MakeMaker->VERSION() lt '6.25') ?
25        ('PL_FILES' => { })            : ()),
26    ((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
27        ('LICENSE'  => 'perl_5')       : ()),
28);
29
30# Additional 'make' targets
31sub MY::postamble
32{
33    return <<'_EXTRAS_';
34fixfiles:
35	@dos2unix `cat MANIFEST`
36	@$(CHMOD) 644 `cat MANIFEST`
37	@$(CHMOD) 755 examples/*.pl
38_EXTRAS_
39}
40
41# EOF
42