The attached create_fpc_deb.sh is the latest working copy.
# create native ./create_fpc_deb.sh fpc ~/lazarus/fpc # create win32 cross compiler # script couldn't guess BINUTILSPREFIX as it begins with i586 not i386 OS_TARGET=win32 CPU_TARGET=i386 BINUTILSPREFIX=i586-mingw32msvc- ./create_fpc_deb.sh fpc ~/lazarus/fpc # create powerpc linux OS_TARGET=linux CPU_TARGET=powerpc ./create_fpc_deb.sh fpc ~/lazarus/fpc /etc/fpc.cfg has: #include /usr/lib/fpc/fpc-cross.cfg which has entries like: #if 2.3.1 = $fpcversion #include /usr/lib/fpc/2.3.1/fpc-cross.cfg #end added. I have to do this because fpc doesn't interpolate the $fpcversion in #include statements even though it does in the error message generated by failed include statements! (as strace shows, it looks for a file with literally $fpcversion in the name). These various files are correctly managed in postinst and prerm. BUGS: The cross-fpc package has the cross compiler in, so you can't install two cross packages for the same CPU. There ought to be a separate package for each cross compiler and additional packages for each OS target depending on the CPU package. However I will not fix up this script to handle that, I will adjust the main fpc makefile so that it creates a debian folder with the right control files for all these packages in it; at such time this script will be reduced to a make-dist on the svn, and the deb_build on that. Sam
create_fpc_deb.sh
Description: application/shellscript
