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
|
use ExtUtils::MakeMaker;
## If this is being installed with Atoms of with Ifeffit, then
## $ENV{INSTALLING_WITH} will be set by Atoms' topmost Makefile.PL.
my $blib;
SWITCH : {
$blib = "blib", last SWITCH if (not $ENV{INSTALLING_WITH});
$blib = "../blib", last SWITCH if ($ENV{INSTALLING_WITH} eq 'atoms');
$blib = "../blib", last SWITCH if ($ENV{INSTALLING_WITH} eq 'horae');
$blib = "../../blib", last SWITCH if ($ENV{INSTALLING_WITH} eq 'ifeffit');
};
## fixup shbang lines in the scripts
@ARGV = qw(formula tkformula formula.cgi formula_noabs);
do 'fixin';
WriteMakefile(
'NAME' => 'Chemistry::Formula',
#'DISTNAME' => '',
'VERSION_FROM' => 'Formula.pm', # finds $VERSION
'dist' => { COMPRESS => 'gzip -f', SUFFIX => 'gz' },
'PM' =>
{ # module and data
#'tkformula' => "$blib/bin/tkformula",
'Formula.pm' => "$blib/lib/Chemistry/Formula.pm",
'formula.dat' => "$blib/lib/Chemistry/formula.dat",
'morter.xbm' => "$blib/lib/Chemistry/morter.xbm",
},
);
|