Check out the Apbuild tool from the
Autopackage.org guys:
http://autopackage.org/download-tools.html
And see this instructions at the wx.wiki:
http://wiki.wxwidgets.org/wiki.pl?Linking_With_Gtk_And_Running_On_Any_Linux
These should provide useful inspiration.
-Richard