ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/PDL-Audio/Makefile.PL
Revision: 1.2
Committed: Thu Mar 3 17:36:58 2005 UTC (19 years, 2 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_1
Changes since 1.1: +5 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 require 5.006; # lower versions of perl not supported
2    
3     use Config;
4     use ExtUtils::MakeMaker;
5     use PDL::Core::Dev;
6    
7     {
8     local $ENV{CC} = "$Config{cc} $Config{cppflags} $Config{ccflags} $Config{cccdlflags}";
9     print "$ENV{CC}\n";
10     system "cd sndlib && ./configure";
11     }
12    
13     @pack = ["audio.pd",Audio,PDL::Audio];
14     %hash = pdlpp_stdargs(@pack);
15    
16     $hash{depend}{'Audio.o'} = 'xlib.h remez.h';
17     $hash{depend}{'xlib.o'} = 'xlib.h remez.h';
18     $hash{OBJECT} = "Audio.o xlib.o remez.o";
19    
20     do "./config.pl";
21    
22     $hash{PM}{'Scales.pm'} = '$(INST_LIBDIR)/Audio/Scales.pm';
23     $hash{PM}{'Pitches.pm'} = '$(INST_LIBDIR)/Audio/Pitches.pm';
24    
25     push @{$hash{DIR}}, "sndlib";
26    
27     WriteMakefile(%hash,
28 root 1.2 'dist' => {
29     PREOP => 'pod2text Audio.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
30     COMPRESS => 'gzip -9v',
31     SUFFIX => '.gz',
32     },
33 root 1.1 MYEXTLIB => "sndlib/sndlib.a",
34     VERSION_FROM => 'audio.pd',
35     DIR => [],
36     XS => {
37     "Audio.xs" => "Audio.c",
38     },
39     );
40    
41     sub MY::postamble {
42     my $self=shift;
43     pdlpp_postamble(@pack)."
44    
45     .EXPORT_ALL_VARIABLES:
46    
47     force:
48    
49     \$(MYEXTLIB): force
50     cd sndlib && \$(MAKE)
51    
52     ";
53     }