Passing swiftly over previous 'answers'
Port tuning could be one of two thing: that (rightly) mentioned regarding the damping of output from the port - ie as a simple means of reducing port efficiency, and thus reducing overall in-room response. Or, it could be that at the design stage - matching the port to the enclosure to the drive unit (in this case a bass or mid-bass).
If the latter, then it is primarily about efficiency. Efficiency of (increased) output, and also efficiency of extension - ie maximising the 'depth' of bass response. How does it achieve this efficiency?. Simply by taking advantage of the 'work' done by the rear of the drive unit - bear in mind that the'normal' output from the front of thedrive unit is matched by an equal but opposite'output' from the rear.
Now, also bear in mind that this rearward output is opposite to that from the front (ie in opposite phase, or phase shifted by 180 degrees). So, that if it were simply allowed out of a 'hole' in the enclosure it would 'sum destructively' with the front-ward output, ie they would cancel each other out.
The role of the port, then, is to generate an output (energised from the rearward 'work' of the bass/mid-bass drive unit) that is in phase with that from the front, so that they 'sum constructively', or combine. Hence the increase in efficiency, and (with careful 'placement' of the tuning frequency), the potential increase in extension.
How the port does what it does is a little more complex. Very basically it contains it's own volume of air, or air mass. This is entirely seperate from that in the enclosure, but itworks with that in the enclosure - ie they are interdependant. This air mass (through design, ie sizing) has a resonant frequency, usually chosen to coincide with that of the drive unit. Above resonace the port 'appears' as a solid bung, ie it has no function. At and around resonance the air mass is made to vibrate (basically as a result of varying air pressures within the enclosure as a result of the motion of the drive unit), and does so in phase with the output from the front of the drive unit, increasing efficiency. Below tuning the port appears as a hole, output from it and front of the drive unit cancel, and output drops off rapidly.
At and around tuning, the port 'loads' the drive unit, meaning that the drive unit's motion is controlled, with most of the output coming from the port. This is how plugs and bungs are used to 'tune' the port's response. They limit the control of the drive unit, at the same time as limiting output from the port.
As for transmission lines, well, they are a different kettle of fish all together. One thing is for certain, though - they are not like ported speakers in their operation.
Hope, this, erm, helped?