File: Makefile.PL

package info (click to toggle)
pdl 2.005-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,200 kB
  • ctags: 3,301
  • sloc: perl: 14,876; ansic: 7,223; fortran: 3,417; makefile: 54; sh: 16
file content (33 lines) | stat: -rw-r--r-- 684 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

# should now be handled by ../Makefile.PL
#
#BEGIN {
#  PDL::Core::Dev->import();
#  $skip = 0;
#  if ($^O =~ /win32/i) {
#    write_dummy_make(unsupported('PDL::Graphics::OpenGLQ','win32'));
#    $skip=1;
#  }
#}
#
#goto SKIP if $skip;

use ExtUtils::MakeMaker;

 PDL::Core::Dev->import();

@pack = (["openglq.pd",OpenGLQ,PDL::Graphics::OpenGLQ]);
%hash = pdlpp_stdargs_int(@::pack);
foreach (@{$hash{LIBS}}) {
	$_ .= ' '.$PDL_CONFIG{OPENGL_LIBS};
}
$hash{DEFINE} .= ' '.$PDL_CONFIG{OPENGL_DEFINE};
$hash{INC} .= ' '.$PDL_CONFIG{OPENGL_INC};
${$hash{LIBS}}[0] .= ' -lm';
WriteMakefile(%hash);

sub MY::postamble {
	pdlpp_postamble_int(@::pack);
}  # Add genpp rule

# SKIP: return;