I was looking into doing something similar for FreeBSD, so that you could do just:
portinstal www/openacs
and be almost done with... Unfortunately, so far it only fetches allrequired stuff, but does not build anything but AOLServer and PostgreSQl (and that is only because there is dependency info in port Makefile)...