Allow java/java3d to build with a Custom PREFIX and LOCALBASE.
No portrevision bump required, as it wouldn't custom PREFIX
and LOCALBASE wouldn't work installed without this patch.
This may fix it with _same_ PREFIX and LOCALBASE, but the logic is wrong
- prefix is where the app is installed, and localbase is where it uses
libraries/includes from. So this change likely needs to use localbase.
I'll take it.
Committed, with minor changes. Thanks!