ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/PLIB-PUI/Makefile.PL
Revision: 1.2
Committed: Sat Jul 18 05:58:51 2009 UTC (14 years, 10 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +23 -1 lines
Log Message:
riddify us of meta.yml garbage in manifest

File Contents

# Content
1 use ExtUtils::MakeMaker;
2
3 print <<EOF;
4
5 ***
6 *** IMPORTANT: PLIB::PUI requires a C++ compiler that is compatible
7 *** with your perl. You need to specify by overriding CC manually, as in:
8 ***
9 *** perl Makefile.PL CC=g++
10 ***
11
12 EOF
13
14 sub MY::postamble {
15 my $postamble =<<'END';
16
17 clean::
18 -cd pui && $(MAKE) clean
19
20 $(MYEXTLIB):
21 cd pui && $(MAKE) CC="$(CC)" CFLAGS="$(OPTIMIZE) $(CFLAGS) $(CCCDLFLAGS)" all
22
23 END
24 }
25
26 WriteMakefile(
27 dist => {
28 PREOP => 'pod2text PUI.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
29 COMPRESS => 'gzip -9v',
30 SUFFIX => '.gz',
31 },
32 NAME => "PLIB::PUI",
33 MYEXTLIB => 'pui/libplibpu.a',
34 VERSION_FROM => "PUI.pm",
35 );
36