Fix link variable naming for ports containing dashes

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>