The author of aspcud, Roland Kaminski, has looked at the difficulties in porting to the *BSD systems, and  made various changes upstream that should
make this work much easier. In particular, the shell script is gone, and replaced by a C program, and the sed file is gone too.

Here is the changelog and the url to the upstream version

 aspcud-1.9.0
   * added support for old-style criteria
   * added an install target (supports DESTDIR)
   * replaced bash/python script with a small C program
   * should build on MacOS X without problems now

http://svn.code.sf.net/p/potassco/code/trunk/aspcud/