Find where the portfile is:
sudo port file ngspiceNext, you have to edit it to add --with-ngshared:
configure.args --enable-cider \ --enable-xspice \ --enable-pss \ --with-editline \ --with-x \ --enable-debug=no \ --with-ngsharedFinally, you can build the port. If you have already installed it, you need to upgrade it:
sudo port -sn upgrade --force ngspiceI wish that there was some way to append a configuration argument via the command line, but I just cannot seem to make it work, even though there's a facility for it.