# The chdir needs to be successful or our make -V invocation
# will fail.
chdir "$PortsDirectory/$origin" or next;
next unless -r "Makefile";
open PKGNAME, "$GetPkgNameCommand|";
$pkgname = <PKGNAME>;