1 diff --git a/mido/backends/portmidi_init.py b/mido/backends/portmidi_init.py
2 index 84bb128..5efcdaa 100644
3 --- a/mido/backends/portmidi_init.py
4 +++ b/mido/backends/portmidi_init.py
5 @@ -10,13 +10,7 @@ from ctypes import (CDLL, CFUNCTYPE, POINTER, Structure, c_char_p,
6 create_string_buffer, byref)
10 -if sys.platform == 'darwin':
11 - dll_name = ctypes.util.find_library('libportmidi.dylib')
12 -elif sys.platform in ('win32', 'cygwin'):
13 - dll_name = 'portmidi.dll'
15 - dll_name = 'libportmidi.so'
16 +dll_name = '@libportmidi@'