Changes between Version 3 and Version 4 of PerlMapScriptBuild35


Ignore:
Timestamp:
May 19, 2010, 5:34:24 AM (14 years ago)
Author:
lfilak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PerlMapScriptBuild35

    v3 v4  
    1515
    1616The default module name is "mapscript". However, you may want to use something version specific, especially if you have multiple versions installed. To do this:
    17 
    18     1) edit mapscript.i and change the line "%module mapscript" to "%module yourname"
    19     2) remove mapscript.pm if it's present. SWIG will create yourname.pm and the presence of mapscript.pm will confuse the intall.
    20     3) re-SWIG it (install SWIG and the type swig -shadow -perl5 mapscript.i)
    21     4) edit Makefile.PL and change the line "'NAME' => 'mapscript'," to "'NAME' => 'yourname',"
    22     5) build as normal
    23 
     17{{{
     18    1) edit mapscript.i and change the line "%module mapscript" to "%module yourname", ie. "mapscript563".
     19    2) in plmodule.i. Look for lines of the form: "mapscript::RFC24_ADD_PARENT_REF(..." and change mapscript to "mapscript563::...".
     20    3) remove mapscript.pm if it's present. SWIG will create yourname.pm and the presence of mapscript.pm will confuse the install.
     21    4) re-SWIG it (install SWIG and the type swig -shadow -perl5 mapscript.i)
     22    5) edit Makefile.PL and change the line "'NAME' => 'mapscript'," to "'NAME' => 'yourname',"
     23    6) build as normal
     24}}}
    2425You should now be able to do "use yourname" in your perl scripts.
    2526