These are the main prerequisites for the build process to succeed:
The usual Ciao software requirements also apply, the build process should complain if anything is missing.
./ciao-boot.sh gen_pbundle --kind=macport produces a MacPorts Portfile which depends on a source tgz distribution. If the tarball is available in the package directory the command will automatically produce it. Notice that because the portfile includes a checksum of the tarball source distribution it is dependent on this archive. Since macports are used online the tarball used to produce the portfile should be the same as the one available online on the Ciao website.
./ciao-boot.sh gen_pbundle --kind=pkg produces a pkg (i.e., a standard "Managed Install" MacOs Package) wrapped into a dmg image disk. This command assumes that binaries and documentation have been locally built using correct configure options.
The system comprises a skeleton for the MacPorts Portfile (Portfile.skel) that should be updated in case of changes in ciao_builder's commands and options but also in case of changes in the Ciao website.
Since the MacPorts Portfile includes the electronic address where the tarball source distribution resides (on the Ciao website) then any change in the architecture of the website should be reflected here.