At 22:30 Uhr -0500 21.02.2001, Larry Moore wrote:
>
>The last patch from Chris Nandor to 5.6. seems to have done the trick. running under
>MacOS 9.0.4 and MPW I recompiled the Bit-ShiftReg files (slight mods to your
>worksheet - nothing major,) installed into the 5.6 hierarchy. It passed all the tests.
>
Hi Larry,
you even don't need the worksheets, they are intended for MP 5.004. With MP 5.6.x, the
build process
for extensions when using the Apple compilers/linkers is the same as with the
Metrowerks compilers/linkers as described in the Mac XS tutorial [1]. And this
procedure matches as closely as possible the build process under Unix.
Just run
perl Makefile.PL
buildprogram dynamic
buildprogram install_dynamic
on the MPW command line.
'buildprogram install _dynamic' will die at PerlInstall, because File::Find currently
doesn't work properly, but it will create the 'blib' installation directory.
However, for Bit::ShiftReg, you have to add a define to the Makefile.PL. Hack
Makefile.PL to the following
WriteMakefile(
'NAME' => 'Bit::ShiftReg',
'VERSION_FROM' => 'ShiftReg.pm', # finds $VERSION
'LIBS' => [''], # e.g., '-lm'
'DEFINE' => '-d MPW_HAS_BOOL', #<=== add this
'INC' => '', # e.g., '-I/usr/include/other'
'dist' => { COMPRESS=>"gzip -9", SUFFIX=>"gz" }
);
and use the changed 'lib_defs.h' header file from my Bit-ShiftReg binary distribution.
Best regards,
--Thomas
[1] http://macperl.com/depts/Tutorials/XS/Mac_XS.sea.hqx
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com