an example of configuring and building differently form one source is vim: https://anonscm.debian.org/cgit/pkg-vim/vim.git
an example of configuring and building differently form one source is vim: https://anonscm.debian.org/cgit/pkg-vim/vim.git