Skip to content

Commit

Permalink
Merge pull request #4235 from pygame/portmidi-fix
Browse files Browse the repository at this point in the history
buildconfig: Add fallback to portmidi if porttime is not found
  • Loading branch information
illume committed May 19, 2024
2 parents 438b2d5 + a9bd75e commit 2ffcd18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildconfig/config_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ def get_porttime_dep():
if portmidi_as_porttime:
return Dependency('PORTTIME', 'porttime.h', 'libportmidi.so', ['portmidi'])
else:
return Dependency('PORTTIME', 'porttime.h', 'libporttime.so', ['porttime'])
dep = Dependency('PORTTIME', 'porttime.h', 'libporttime.so', ['porttime'])
if not dep.found:
return Dependency('PORTTIME', 'porttime.h', 'libportmidi.so', ['portmidi'])

def find_freetype():
""" modern freetype uses pkg-config. However, some older systems don't have that.
Expand Down

0 comments on commit 2ffcd18

Please sign in to comment.