(Continuation of another topic, concerning fixes for the indy installation)
If I've not proposed my patches for the Indy installation here before, it's because I intended to propose them for the "official" fulgan releases. But as I've postponed to make my proposal a couple of times in the past and so, as it's still not done, here are them; at least for test purposes. Hopefully, they'll be included into the future indy releases, and/or similar fixes will be provided.
Basically, the changes concerns the package script (in order to use the provided sub-directories during the installation process), and the resource files (in order to get the 256 colors icons inside the Lazarus IDE).
Once you've downloaded the indy fulgan version (currently, version Indy10_5004) and unzipped it, here are the steps for the installation (anyhow, most of them are common to any lazarus package installation):
Preliminary note: As you may have already noticed, only the \Lib subdirectory of Indy is needed for the installation. In fact only \Lib\Core, Lib\System\ and \Lib\Protocols, and not all the files; but that's another matter...
1/ Copy the "\Lib" subdirectory in its final place : for instance in an "indy" directory created inside the "components" subdirectory of Lazarus (i.e. $(LazarusDir)components\indy ).
2/ Replace the "indylaz.lpk" file present into the \Lib subdirectory with the one provided with this post (i.e. attached file "Indylaz (for Indy10_5004).zip"). This script has been prepared for the 5004 release, but anyhow the only difference for all of the releases is an indication of the release version inside the script. You can modify it by yourself, or leave it as this. In this later case, the display for the package inside Lazarus will be incorrect; that's all (there is no other difference).
3/ Replace the resources files present into the concerned subdirectories of "\Lib" with the ones provided here, as follows:
- "IdRegisterCore.lrs" into "\Lib\Core"
- "IdRegister.lrs" into "\Lib\Protocols"
4/ Start Lazarus and open the lazarus package (as in my previous sample, "$(LazarusDir)components\indy\indylaz.lpk").
5/ Compile it. Compile it one more time (yes, twice !).
6/ Mark it for installation.
7/ Finally, recompile the Lazarus IDE (optimized version being most preferable). You should now see the new indy icons at the end of the palette toolbar.
Final note: 2 compilations are needed because of an FPC compiler issue, and because subdirectories are used in the package script. The second compilation is done automatically during the recompilation of the Lazarus IDE internally, when only one directory is used with all the needed files (but you have to manually transfer them in this case).
If you look at the messages into the message box after the second compilation that I've indicated (look at all messages, included those hidden), you'll see that one file has been recompiled indeed:
...
Compiling indylaz.pas
Compiling .\System\IdStreamVCL.pas
...
In case of any problem, question, observation,... please feel free to post them in response.