Firefighters aided by calmer winds are gaining control of wildfires raging across drought-hit Portugal.