You can just remove it.
/opt
doesn't exist on a clean installation of OS X. If you want to completely uninstall MacPorts, you should anyway just have uninstalled the ports first. You can later install most applications again, through Homebrew, which also has OpenSSL.
To remove all currently installed ports – which you probably can't do because you already uninstalled MacPorts:
sudo port -fp uninstall --follow-dependents installed
This would also remove the binaries in /opt/local/bin
. The rest is cleanup of additional directories, including /opt/local
, which is just the MacPorts prefix. It's unlikely anything else would write files there.
This is all explained in the official uninstall instructions as well. Full removal includes removing some other directories as well, like:
/Applications/DarwinPorts
/Applications/MacPorts
/Library/LaunchDaemons/org.macports.*
/Library/Receipts/DarwinPorts*.pkg
/Library/Receipts/MacPorts*.pkg
/Library/StartupItems/DarwinPortsStartup
/Library/Tcl/darwinports1.0
/Library/Tcl/macports1.0
~/.macports