1use ExtUtils::MakeMaker;
2
3use Config;
4my $define='';
5if ($Config{longsize} ne '4') { $define='-DMY_64bit_FIX_NEEDED'; }
6
7WriteMakefile(
8	NAME      => 'Crypt::Tea_JS',
9	VERSION_FROM => 'Tea_JS.pm',
10	EXE_FILES => [ glob "bin/*" ],
11	AUTHOR    => 'PJB, Peter Billam, www.pjb.com.au/comp/contact.html',
12	ABSTRACT  => 'The New Tiny Encryption Algorithm in Perl and JS',
13	dist      => {COMPRESS=>'gzip -9f', SUFFIX => 'gz'},
14	LIBS      => [''], # e.g., '-lm'
15	DEFINE    => $define, # e.g., '-DHAVE_SOMETHING'
16	INC       => '-I.', # e.g., '-I. -I/usr/include/other'
17);
18
19#do './Tea_JS.pm';   # this fails when installing with cpan :-(
20# now incuded in tarball
21#if (open(F, '>Tea_JS.js')) {
22#	print F Crypt::Tea_JS::tea_in_javascript();
23#	close F;
24#}
25