Merge pull request #1702 from dustinlacewell/sdl_ttf_linker_update

Adds some flexibility to the lib name of SDL_ttf to allow for newer dist...
This commit is contained in:
Andreas Rumpf 2014-12-04 01:29:58 +01:00
commit 04820ca69d
2 changed files with 3 additions and 2 deletions

View file

@ -46,6 +46,7 @@ else:
# Note: The enumerations are mapped to Window's constants. # Note: The enumerations are mapped to Window's constants.
when defined(ssl): when defined(ssl):
type type
SSLError* = object of Exception SSLError* = object of Exception

View file

@ -163,7 +163,7 @@ elif defined(macosx):
ttfLibName = "libSDL_ttf-2.0.0.dylib" ttfLibName = "libSDL_ttf-2.0.0.dylib"
else: else:
const const
ttfLibName = "libSDL_ttf.so(|.1|.0)" ttfLibName = "libSDL_ttf(|-2.0).so(|.1|.0)"
const const
MAJOR_VERSION* = 2 MAJOR_VERSION* = 2
MINOR_VERSION* = 0 MINOR_VERSION* = 0