UPasConf is a small build system for Free Pascal and Lazarus. It allows you to create a program for your project that mimics the script ./configure, and, based on the parameters of the command line, generates a Makefile (and / or other files according to your needs) which is able to build, install and package your project.
This version improves support of lazarus projects and enables cross-compilation.
http://yann.merignac.free.fr/unit-upasconf.html