Dave Page seems to think that Portugal is responsible for the 90/180 days restriction but, in fact, the Shengen rules are made by the EU and Portugal has to apply the rules so the only alternative is Residencia (or a personal exit).
Jim G, Faro, By email