As with any porting project, porting Berkeley DB to a new platform consists of the following process:
Determine the modifications that you need to make in the base code and create a working executable of Berkeley DB on the target platform as described in Creating a New Berkeley DB Binary.
Perform final test and quality assurance functions on the target platform as described in Testing and Certifying the Port.