File: Makefile.PL

package info (click to toggle)
libsgml-parser-opensp-perl 0.994-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 408 kB
  • sloc: perl: 225; makefile: 10
file content (46 lines) | stat: -rw-r--r-- 1,333 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
35
36
37
38
39
40
41
42
43
44
45
46
use 5.008;
use ExtUtils::MakeMaker;

my %options;

if ($^O eq "MSWin32")
{
    $options{LIBS} = "-l" . prompt("Where is the OpenSP link library?",
                                   "T:\\osp\\lib\\Release\\osp152.lib");
    $options{CC}   =        prompt("Which compiler should be used?",
                                   "cl -TP -EHsc -IT:/osp/");
}
else
{
    # assume some compatible Linux
    $options{CC}   = $ENV{CXX} || "g++";
    $options{LD}   = $options{CC};
    $options{LIBS} = "-lstdc++ -losp";
}

WriteMakefile(
    NAME              => 'SGML::Parser::OpenSP',
    VERSION_FROM      => 'lib/SGML/Parser/OpenSP.pm',
    PREREQ_PM         => {
      Class::Accessor => 0,
      Test::Exception => 0,
      File::Temp      => 0,
    },
    ($] >= 5.005 ?
      (ABSTRACT_FROM  => 'lib/SGML/Parser/OpenSP.pm',
       AUTHOR         => 'Bjoern Hoehrmann <bjoern@hoehrmann.de>') : ()),

    # SP_MULTI_BYTE is needed iff OpenSP is built with SP_MULTI_BYTE
    DEFINE            => '-DSP_MULTI_BYTE=1',

    INC               => '', # e.g., '-I/usr/include/other'
    XSOPT             => '-C++',

    LICENSE           => 'perl',
    'dist'            => {
      PREOP     => 'chmod 600 Makefile.PL',
      TARFLAGS	=> '--group=cpan --owner=bjoern -cvf',
    },

    %options
);